CN115906355A - Method and device for drawing satellite network communication line and storage medium - Google Patents

Method and device for drawing satellite network communication line and storage medium Download PDF

Info

Publication number
CN115906355A
CN115906355A CN202211441839.XA CN202211441839A CN115906355A CN 115906355 A CN115906355 A CN 115906355A CN 202211441839 A CN202211441839 A CN 202211441839A CN 115906355 A CN115906355 A CN 115906355A
Authority
CN
China
Prior art keywords
communication line
satellite
node
satellite network
topology
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211441839.XA
Other languages
Chinese (zh)
Inventor
王楚楠
刘江
赵泰博
查玄阅
王春龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Network Communication and Security Zijinshan Laboratory
Original Assignee
Network Communication and Security Zijinshan Laboratory
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 Network Communication and Security Zijinshan Laboratory filed Critical Network Communication and Security Zijinshan Laboratory
Priority to CN202211441839.XA priority Critical patent/CN115906355A/en
Publication of CN115906355A publication Critical patent/CN115906355A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a method, a device and a storage medium for drawing a satellite network communication line, wherein the method comprises the following steps: creating a target instance; the target instance is used for rendering a three-dimensional digital earth; displaying real-time operation dynamics of a satellite constellation in the three-dimensional digital earth based on the target instance and the acquired satellite constellation information; and drawing the topology of the satellite network communication line based on the real-time operation dynamic of the satellite constellation and the communication line information acquired at the current moment. According to the method for drawing the satellite network communication line, the satellite network communication line topology is drawn on the three-dimensional digital earth through the communication line information acquired at the current moment, so that the three-dimensional satellite network communication line topology is dynamically drawn in a complex space-time background in real time, the real-time change of the satellite network communication line is displayed in real time, the user experience is improved, and the visual simulation and visual operation of the satellite network communication can be realized.

Description

Method and device for drawing satellite network communication line and storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for drawing a satellite network communication line topology and a storage medium.
Background
The satellite network is a communication system consisting of a plurality of satellites on different orbits, has the advantages of wide coverage range, flexible networking, no geographic limitation, irrelevant communication cost and distance and the like, can be widely applied to various fields, and plays an important role in the development of future networks.
Because the communication satellite moves at a high speed in space, and a satellite network formed by the satellite nodes has a highly dynamic topological structure, the topological state of a satellite network communication line is difficult to directly observe through the time-varying recording of background data of the satellite communication network, so that the user experience is low.
For software such as a satellite network communication simulation system, a satellite network controller system and the like, a topological graph of a satellite network communication line is generally drawn on an interface through a plane topological graph, and the plane topological graph is refreshed in real time according to background data. However, as the satellite nodes move along with time, the spatial positions between satellites and between the satellites and the ground station are constantly changed, and a simple planar topological graph cannot visually display the time-space relationship between the current topological graph and the operating position of each satellite node in a satellite constellation, so that the limitation is large.
Disclosure of Invention
The invention provides a method, a device and a storage medium for drawing a satellite network communication line, which are used for solving the defect that a planar topological graph in the prior art cannot visually display the time-space relationship between the current topological graph and the operation position of each satellite node in a satellite constellation, and realizing the real-time and dynamic drawing of the satellite network communication line topology in a time-space background.
The invention provides a method for drawing topology of a satellite network communication line, which comprises the following steps:
creating a target instance; the target instance is used for rendering a three-dimensional digital earth;
displaying real-time operation dynamics of a satellite constellation in the three-dimensional digital globe based on the target instance and the acquired satellite constellation information;
and drawing the topology of the satellite network communication line based on the real-time operation dynamic state of the satellite constellation and the communication line information acquired at the current moment.
In some embodiments, the displaying real-time operational dynamics of a satellite constellation in the three-dimensional digital earth based on the target instance and the acquired satellite constellation information includes:
determining a target file corresponding to the satellite constellation information based on the obtained satellite constellation information;
and displaying real-time operation dynamics of a satellite constellation in the three-dimensional digital earth based on the target instance and the target file.
In some embodiments, after displaying the real-time operational dynamics of the satellite constellation in the three-dimensional digital earth based on the target instance and the target file, the method further comprises:
analyzing the target file and determining nodes defined in the target file; the nodes comprise a satellite node and a ground station node;
and determining a node entity list based on the entity corresponding to the node.
In some embodiments, the mapping a satellite network communication line topology based on the real-time operation dynamics of the satellite constellation and the communication line information obtained at the current time includes:
analyzing the communication line information acquired at the current moment into a node link array based on the acquired node information list and the node link list;
traversing the node link array, and determining a head node and a tail node corresponding to each link;
acquiring a corresponding head entity and a corresponding tail entity in the node entity list based on the head node and the tail node corresponding to each link respectively;
and drawing a satellite network communication line topology on the three-dimensional digital earth based on the head entity and the tail entity.
In some embodiments, after the mapping the satellite network communication line topology based on the real-time operation dynamics of the satellite constellation and the communication line information obtained at the current time, the method further includes:
converting the three-dimensional digital earth into a two-dimensional digital earth;
and displaying the satellite network communication line topology on the two-dimensional digital earth.
In some embodiments, before the mapping the satellite network communication line topology based on the real-time operation dynamics of the satellite constellation and the communication line information obtained at the current time, the method further includes:
determining whether the path of the communication line at the current moment is the same as the path at the previous moment or not based on the communication line information acquired at the current moment and the communication line information acquired at the previous moment;
and determining whether the topology of the satellite network communication line needs to be drawn or not based on whether the path of the communication line at the current moment is the same as the path at the last moment or not.
In some embodiments, the list of node entities comprises: node entity identification, node entity name, node entity description, node entity location, node entity availability, and node entity visibility.
The invention also provides a device for drawing the topology of the satellite network communication line, which comprises:
a creation module for creating a target instance; the target instance is used for rendering a three-dimensional digital earth;
the display module is used for displaying the real-time operation dynamics of the satellite constellation in the three-dimensional digital earth based on the target example and the acquired satellite constellation information;
and the drawing module is used for drawing the topology of the satellite network communication line based on the real-time operation dynamic state of the satellite constellation and the communication line information acquired at the current moment.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the method for drawing the topology of the satellite network communication line.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the satellite network communication line topology drawing method as described in any one of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements a method for mapping a topology of a satellite network communication line as described in any one of the above.
According to the method, the device and the storage medium for drawing the satellite network communication line, the real-time operation dynamic state of the satellite constellation is shown on the three-dimensional digital earth in real time, the topology of the satellite network communication line is drawn on the three-dimensional digital earth according to the communication line information obtained at the current moment, the three-dimensional satellite network communication line topology is drawn dynamically in real time in a complex space-time background, the real-time change of the satellite network communication line is shown in real time, the user experience is improved, and the visual simulation and the visual operation of the satellite network communication can be realized more simply.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for drawing a communication line of a satellite network according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a system for mapping communication lines of a satellite network according to an embodiment of the present invention;
fig. 3 is a second flowchart illustrating a method for drawing a communication line of a satellite network according to an embodiment of the present invention;
fig. 4 is a third flowchart illustrating a method for mapping a communication line of a satellite network according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a satellite network communication line drawing device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow diagram of a method for drawing a satellite network communication line according to an embodiment of the present invention, and referring to fig. 1, the method for drawing a satellite network communication line according to an embodiment of the present invention may include:
step 101, creating a target instance; the target instance is used for rendering a three-dimensional digital earth;
102, displaying real-time operation dynamics of a satellite constellation in the three-dimensional digital earth based on the target instance and the acquired satellite constellation information;
and 103, drawing the topology of the satellite network communication line based on the real-time operation dynamic state of the satellite constellation and the communication line information acquired at the current moment.
In step 101, a target instance is created; the target instance is used to render a three-dimensional digital earth.
Alternatively, a target instance may be created on the Web interface, which may render a three-dimensional digital globe on the interface. The target instance may be created based on Cesium, worldWind, openWebGlobe, googleEarth, or ArcGis, among others.
The following explains the method for drawing a communication line of a satellite network provided by the present invention by taking cesum as an example to create a target example.
Cesium is a cross-platform, cross-browser javascript library that shows the three-dimensional earth and maps. The epsilon supports 3D, 2D, 2.5D forms of map display, can draw graphics by itself, highlight areas, and provide good touch support, and support most browsers.
Optionally, before step 101, further comprising: and acquiring satellite constellation information, a node information list, a node link list and a satellite network communication line list.
The Satellite constellation (Satellite constellation) refers to a group of satellites working together as an integral System, also known as a Distributed-Satellite System (DSS). Unlike a single satellite, a complete constellation of satellites can provide permanent global (or near global) coverage, such that at least one satellite is visible at any point on the earth at any time. The satellites are typically placed in complementary orbital planes and can be connected to distributed ground stations. Information may also be communicated between each satellite in the constellation via inter-satellite communication techniques.
The satellite constellation information, node links, and satellite network communication lines contain information as shown in table 1.
TABLE 1
Figure BDA0003948624940000061
Figure BDA0003948624940000071
Wherein the satellite constellation information includes: constellation name, constellation description, and constellation czml file name.
The node information includes: node name, node type, node address and node identification.
The node link includes: link name, link identification, link start node identification, and link target node identification.
The satellite network communication line includes: communication line identification, communication line status, primary path of the communication line, and backup path of the communication line.
In step 102, real-time operation dynamics of a satellite constellation are displayed in the three-dimensional digital globe based on the target instance and the acquired satellite constellation information.
Further, the displaying real-time operation dynamics of a satellite constellation in the three-dimensional digital earth based on the target instance and the acquired satellite constellation information includes:
determining a target file corresponding to the satellite constellation information based on the obtained satellite constellation information;
and displaying real-time operation dynamics of a satellite constellation in the three-dimensional digital earth based on the target instance and the target file.
Optionally, according to the obtained satellite constellation information, determining a czml file name of the satellite constellation in the satellite constellation information, and according to the czml file name, determining a czml file, namely a target file, corresponding to the satellite constellation information.
Optionally, the format of the target file is associated with the manner in which the target instance is created, for example: in the case where the target instance is created based on google earth, the format of the target file is a kml file. The czml file and the kml file may be converted to each other by the tool.
czml is a language describing the json architecture of dynamic scenes and can be used to describe the appearance, state, geographical location, etc. of points, lines, models and other primitives, as well as define how the description values of each of these primitives change over time.
When the constellation is designed, the czml file of the satellite constellation is generated by using STK software or other professional tools according to the design indexes of the constellation, such as the indexes of satellite orbit parameters and the like.
And loading, analyzing and executing the czml file on the target instance, so that the running animation of the current satellite constellation, namely the real-time running dynamics of the satellite constellation can be displayed on the three-dimensional digital earth.
In step 103, a satellite network communication line topology is drawn based on the real-time operation dynamics of the satellite constellation and the communication line information obtained at the current time.
Optionally, according to the communication line information acquired at the current time, the real-time operation condition of the satellite constellation in the three-dimensional digital earth of the Web interface is combined, and the communication line is drawn in the real-time operation satellite constellation in real time, so that the three-dimensional satellite network communication line topology is obtained.
According to the method for drawing the satellite network communication line, the real-time operation dynamic state of the satellite constellation is displayed on the three-dimensional digital earth in real time, the topology of the satellite network communication line is drawn on the three-dimensional digital earth according to the communication line information acquired at the current moment, the topology of the three-dimensional satellite network communication line is drawn dynamically in real time in a complex space-time background, the real-time change of the satellite network communication line is displayed in real time, the user experience is improved, and the visual simulation and the visual operation of the satellite network communication can be realized more simply.
In some embodiments, after displaying the real-time operational dynamics of the satellite constellation in the three-dimensional digital earth based on the target instance and the target file, the method further comprises:
analyzing the target file and determining nodes defined in the target file; the nodes comprise a satellite node and a ground station node;
and determining a node entity list based on the entity corresponding to the node.
Optionally, the czml file is parsed by the created target instance, and primitives such as a satellite, a ground station, and the like defined in the czml file are stored in the Cesium instance dataSource in a list form as entity objects for subsequent operations.
And after the target instance loads the czml file, converting the nodes defined in the czml file into an entity object list for storage.
For example, using the interface of Cesium, the front-end javascript code may define an API function that operates on entity objects, such as obtaining a list of node entities via the viewer. These API functions will be used in subsequent mapping of the satellite network communication line topology.
In some embodiments, the node entity list comprises: node entity identification, node entity name, node entity description, node entity location, node entity availability, and node entity visibility.
Optionally, the attribute of the node entity concerned in this embodiment is as shown in table 2, and it is mainly an attribute such as a dynamic space coordinate position, an ID, and the like of the node on the digital globe.
TABLE 2
Figure BDA0003948624940000091
Figure BDA0003948624940000101
According to the method for drawing the satellite network communication line, the target file is analyzed, the satellite nodes and the ground station nodes defined in the target file are determined, the entities are determined according to the nodes, the fixed node entity list is formed, and a drawing basis is provided for drawing the satellite network communication line on three-dimensional numbers in the follow-up process.
In some embodiments, the mapping a satellite network communication line topology based on the real-time operation dynamics of the satellite constellation and the communication line information obtained at the current time includes:
analyzing the communication line information acquired at the current moment into a node link array based on the acquired node information list and the node link list;
traversing the node link array, and determining a head node and a tail node corresponding to each link;
acquiring corresponding head entities and tail entities in the node entity list based on the head nodes and tail nodes corresponding to each link respectively;
and drawing a satellite network communication line topology on the three-dimensional digital earth based on the head entity and the tail entity.
Optionally, before the drawing the topology of the satellite network communication line based on the real-time operation dynamics of the satellite constellation and the communication line information obtained at the current time, the method further includes:
determining whether the path of the communication line at the current moment is the same as the path at the last moment or not based on the communication line information acquired at the current moment and the communication line information acquired at the last moment;
and determining whether the topology of the satellite network communication line needs to be drawn or not based on whether the path of the communication line at the current moment is the same as the path at the previous moment or not.
Optionally, the real-time data of the satellite network communication line may be obtained regularly, and when the interface operation command specifies that a certain satellite network communication line needs to be subjected to topology drawing, the Web end obtains the real-time line data of the certain satellite network communication line regularly from the back end.
And recording the communication line real-time data obtained currently each time and the communication line real-time data obtained last time.
If the real-time line data of the communication line is requested for the first time, the topology of the satellite network communication line is drawn on the three-dimensional digital earth, and the currently acquired communication line is assigned to the communication line real-time data acquired last time.
If the communication line real-time line data is not requested for the first time, comparing the currently acquired communication line real-time data with the last acquired communication line real-time data, if the communication line changes, drawing a satellite network communication line topology on the digital globe according to the currently acquired communication line real-time data, and assigning the currently acquired communication line to the last acquired communication line real-time data; if the communication line has not changed, no drawing is performed.
Under the condition that the topology of the satellite network communication line needs to be drawn, the communication line information acquired at the current moment needs to be analyzed. The analysis can be performed as follows:
and analyzing the communication line real-time information acquired at regular time into a section of node link array between the satellite nodes or the ground station nodes according to the node information list and the node link list.
Each record of the node link array is a head node and a tail node of one link, and corresponding head node and tail node entities are obtained in the three-dimensional digital earth in the subsequent steps according to the record, and lines among the entities are drawn.
The node link array is traversed and a multi-segment (polyline) entity for each link is generated.
Traversing the node link array to obtain a head node (src node) and a tail node (dstNode) of each hop link, and obtaining entities (Entity) corresponding to the src node and the dstNode, namely a head Entity (src Entity) and a tail Entity (dstEntity) from a data source of the digital earth by using a self-developed Cesium Entity object operation API based on javascript.
And a polyline entity is established between the src entity and the dstEntity, and the polyline entity can define a connecting line in the Cesium, wherein the attributes required in the definition comprise attributes such as connecting line type, width, color, material, position and the like.
The position attribute locations of polyline can utilize a position attribute array (API center. Position PropertyArray) of Cesum to transmit the positions of srcNentty and dstEntity to carry out the association of polyline entities and head and tail node entities, so that the three-dimensional digital earth can automatically draw the added polyline between the srcNode and the dstNode, and the line can move along with the movement of the head and tail nodes in the constellation running animation.
And clearing polyline entities corresponding to the drawn target satellite network communication line on the digital earth, and sequentially adding the newly generated polyline entities to the digital earth to finish the topology drawing of the satellite network communication line once.
According to the satellite network communication line drawing method provided by the embodiment of the invention, whether the communication line information acquired at the current moment needs to be further drawn on the digital earth is judged before the topology is drawn every time, so that the performance of a Web end can be improved, and the interface redrawing is reduced.
In addition, according to the method for drawing the satellite network communication line provided by the embodiment of the invention, the topology of the satellite network communication line is drawn on the three-dimensional digital earth in real time according to the real-time operation dynamic state of the satellite constellation and the communication line information acquired at the current moment, so that the three-dimensional satellite network communication line topology is drawn dynamically in real time in a complex space-time background, the real-time change of the satellite network communication line is displayed in real time, the user experience is improved, and the visual simulation and the visual operation of the satellite network communication can be realized more simply.
In some embodiments, after the mapping the satellite network communication line topology based on the real-time operation dynamics of the satellite constellation and the communication line information obtained at the current time, the method further includes:
converting the three-dimensional digital earth into a two-dimensional digital earth;
and displaying the satellite network communication line topology on the two-dimensional digital globe.
Optionally, the Web interface provides a button for three-dimensional/two-dimensional switching of the digital earth, and clicking the button can realize the three-dimensional/two-dimensional switching of the digital earth by calling a function for morphing the viewer scene into 3DCesium (viewer.
According to the method for drawing the satellite network communication line, the three-dimensional digital earth is converted into the two-dimensional digital earth after the topology of the satellite network communication line is drawn on the three-dimensional digital earth, so that the drawn topology of the satellite network communication line can be displayed on the two-dimensional digital earth in real time, different requirements are met, the drawing flexibility is improved, and the user experience is further improved.
Fig. 2 is a schematic structural diagram of a satellite network communication line drawing system according to an embodiment of the present invention, and as shown in fig. 2, the satellite network communication controller module, the digital earth engine module, the data acquisition module, and the topology drawing module of the satellite network communication line drawing system according to the embodiment of the present invention.
The satellite network communication controller module has the functions of communication satellite constellation management, inter-satellite link management, satellite-to-ground link management, network line management and the like.
And the data acquisition module runs at a Web end and can acquire data such as constellation information, a node information list, a node link list, communication line real-time data and the like from the satellite network communication controller module.
The digital earth engine module is realized on the basis of Cesium and is used as a WebGL visual earth and map engine realized by javascript, the module renders the digital earth on a Web interface, analyzes space-time data of satellite operation, and renders and displays real-time satellite constellation operation animation in the digital earth.
And the topology drawing module is used for drawing the communication line in a satellite constellation running in real time by combining the real-time running condition of the satellite constellation in the digital earth of the Web interface according to the data acquired from the back end by the data acquisition module.
Optionally, the satellite network communication controller module provides an HTTP interface for a Web call, and for example, may include: the system comprises a constellation information query interface, a node information list query interface, a constellation link query interface, a communication line data query interface and a satellite constellation czml file loading interface.
The interface of the module preferably interacts data with the Web site via json-format data. The json format data is concise, light in weight and high in compatibility, front-end processing logic and memory occupation can be reduced by using the json format data, and front-end interface performance is improved. The czml file loading interface of the satellite constellation returns the czml file of the satellite constellation.
Optionally, the data obtaining module may call an interface provided by the satellite communication controller module, obtain data such as constellation information, a node information list, a node link list, communication line real-time data, and a satellite constellation czml file, and preprocess the data to facilitate subsequent topology drawing. Here, the node information list includes network nodes such as satellite nodes and ground station nodes.
For a rear-end deployed constellation, the constellation information, the node information list and the node link list information without on-off state do not change along with time, a corresponding interface can be called after the Web interface is loaded, and data is stored in a foreground for subsequent processes.
For a communication line, due to the influences of factors such as the operation of a satellite, the on-off state of satellite equipment and the like, the path change of the communication line, the switching of a main path and a standby path and the like may change along with the time-space change, so that a Web interface which needs real-time data of the communication line is obtained from the background at regular time when a topological graph is drawn.
The acquisition mode is that the front end can call an HTTP interface in a polling mode to acquire data from the background, or the background is pushed to the front end in a WebSocket mode.
After the communication line real-time data is acquired each time, the topology drawing module can be informed to draw the topology of the satellite network communication line on the digital earth engine module according to the acquired communication line real-time data.
Further, in order to improve performance and reduce the drawing times of topology, the front end may compare the real-time data of the communication line with the data obtained last time after obtaining the real-time data of the communication line each time, and if the active/standby path of the communication line at the current time is unchanged from the active/standby path at the last time, topology drawing may not be performed on the communication line at the current time.
Optionally, the digital earth engine module is implemented based on ceium, runs in a Web interface, and renders the digital earth. The Cesium can parse the czml file of the satellite constellation and render and display the satellite constellation running animation in the digital earth.
The czml is a language for describing json architecture of dynamic scenes, and can be used for describing appearance, state, geographical position and other description values of points, lines, models and other primitives, and defining how the description values of the primitives change with time.
When the constellation is designed, the czml file of the satellite constellation is generated by using STK software or other professional tools according to the design indexes of the constellation, such as the indexes of satellite orbit parameters and the like.
After the cesum finishes loading the czml, primitives defined in the czml, including satellite equipment nodes of the constellation, are stored in the cesum instance dataSource as an entity object entities list for subsequent operations.
Optionally, the topology drawing module provides the functions of operating javascript API on the ceium entity object, analyzing real-time data of the communication line, drawing topology of the communication line, rendering streamer material of the drawn connection line, and the like.
The module accurately draws the topology of the satellite network communication line with dynamic effect in a satellite constellation in which the digital earth dynamically operates, and shows the dynamic change of the line in real time under the conditions of line node change, master-slave line switching and the like.
Meanwhile, the drawn topology supports three-dimensional and two-dimensional switching display, namely when the digital earth is switched between the three-dimensional earth and the two-dimensional map, the topology can still be displayed accurately, efficiently and intuitively.
On the basis of the above module division, fig. 3 is a second schematic flow chart of the method for drawing a satellite network communication line according to the embodiment of the present invention, and the method steps of the present invention are specifically described as follows:
step 1, initializing a Web interface.
After the browser runs, the Web interface inquires satellite constellation information, a node information list, a node link list and a satellite network communication line list.
And 2, loading the digital earth.
The Web interface loads a digital earth module based on the Cesium, and renders the digital earth at the interface to generate a Cesium instance.
And 3, loading and analyzing a satellite constellation czml file.
And according to the satellite constellation information, loading a czml file of a corresponding constellation by the Cesium instance, analyzing and executing, and displaying the current satellite constellation running animation on the digital globe.
And 4, processing the data defined in the czml.
The Cesium takes the nodes defined in the czml file, such as primitives of satellites, ground stations and the like as Entity objects Entity, and stores the Entity objects Entity in a Cesium instance database in a list form for subsequent operation.
And 5, selecting a certain satellite network communication line, and starting topology drawing.
A certain satellite network communication line is appointed to be subjected to topology drawing through a Web interface operation command, and variables currentData and lastData are defined, wherein the former is used for recording the communication line real-time data acquired at each time, and the latter is used for recording the last acquired communication line real-time data.
And 6, acquiring real-time data of the satellite network communication line at regular time.
When the interface operation command specifies that a certain satellite network communication line needs to be subjected to topology drawing, the Web end acquires real-time line data of the communication line from the back end at regular time and assigns the data to currentData.
And 7, judging whether currentData needs to be further drawn on the digital globe.
If the real-time line data of the communication line is requested for the first time, currentData is drawn on the digital globe, and the currentData is assigned to lastData;
if the real-time line data of the communication line is not requested for the first time, currentData is compared with lastData, if the communication line is changed, currentData is drawn on the digital earth, and meanwhile currentData is assigned to lastData; if the communication line has not changed, currentData is not drawn.
And 8, analyzing the real-time data of the satellite network communication line.
And analyzing the currentData of the communication line obtained at regular time into a section of node link array topoLinkArray between the satellite nodes or the ground station nodes according to the node information list and the node link list.
Each record in the array is a head node and a tail node of one link, and in the subsequent steps, corresponding head node and tail node Entity entities are obtained in a Cesium digital earth according to the record, and the lines among the entities are drawn.
And 9, traversing the link array topoLinkArray and generating a polyline entity of each link.
Traversing the node link array obtained in the step 8, obtaining head and tail nodes of each hop link, namely, an src Entity and a dstNode, and obtaining the Entity corresponding to the src node and the dstNode, namely, the src Entity and the dstEntity, from the data source of the digital earth by using a self-developed Cesium Entity object operation API based on javascript.
And then creating a polyline entity between the src entity and the dstEntity, wherein the polyline entity can define a connecting line in the Cesium, and the attribute required in the definition comprises attributes such as the type, the width, the color, the material, the position and the like of the connecting line.
The most important position attribute locations of polyline can utilize the positions of the API Cesium. PositionPropertyArray of Cesium, which are transmitted into src Entity and dstEntity, to associate polyline entities with head and tail node entities, so that the digital globe can automatically draw the added polyline between the head and tail node Entity, and the connection line can move along with the movement of the head and tail nodes in the constellation operation animation.
And step 10, clearing polyline entities corresponding to the target satellite network communication line drawn on the digital earth, and sequentially adding the polyline entities newly generated in the step 9 to the digital earth to finish the topology drawing of the satellite network communication line once.
Step 11, if the Web interface closes the line topology drawing, stopping obtaining real-time data of the satellite network communication line at regular time, and cleaning a polyline entity drawn on the digital earth; otherwise, the step 6 to the step 10 are executed in a loop until the Web interface closes the line topology drawing.
Fig. 3 is a second flowchart of a method for drawing a satellite network communication line according to an embodiment of the present invention, and fig. 4 is a third flowchart of the method for drawing a satellite network communication line according to an embodiment of the present invention. The method for drawing the communication line of the satellite network provided by the invention is further explained in the following by combining fig. 3 and fig. 4, and the specific embodiment.
The embodiment of the invention is a constitution module of a space satellite network simulation platform, which is used for drawing a real-time three-dimensional topology of a specified satellite communication line in a digital earth of a Web interface, and simultaneously the drawn topology can be synchronously and dynamically changed along with the time, the space-time motion of the satellite and the earth, the switching state of a main line and a standby line, the three-dimensional/two-dimensional switching of the digital earth and the like.
The key implementation process is as follows:
(1) When a user opens a Web interface in a browser, a javascript code in a webpage sends an HTTP request to a satellite network communication controller module of a server through a data acquisition module to acquire satellite constellation information, a node information list, a node link list and a satellite network communication line list, and data structures returned by the requests are respectively shown in Table 1.
According to the visual and interactive design of the webpage, the satellite constellation information, the network node list and the satellite network communication line list are displayed at the designated position of the webpage, and meanwhile, each line of the satellite network communication line list is provided with a designed switch, and the topology of the satellite network communication line of the line can be drawn by operating the switch to open/close the satellite network communication line.
(2) The Web interface runs cesum and renders a three-dimensional digital earth, an example of cesum.
(3) And the Cesium instance loads the czml file of the corresponding constellation from the server through the data acquisition module, analyzes and displays the running animation of the satellite constellation in the three-dimensional digital earth.
(4) After the Cesium instance loads the czml file, the nodes defined in the czml are converted into the entity object list to be stored in the dataSource. Using the interface of Cesium, the front javascript code may define an API function that operates on an entity object, such as obtaining a node entity list through a viewer. These API functions will be used in the subsequent mapping of the satellite network communication line topology. The node entity attributes concerned in this embodiment are shown in table 2, and are mainly attributes such as the dynamic space coordinate position and ID of the node on the digital globe.
(5) And opening a topology drawing switch in a satellite network communication line list in the Web interface, and defining variables currentData and lastData.
currentData is used for recording the communication line real-time data currently acquired each time, and lastData is used for recording the last acquired communication line real-time data.
(6) In the embodiment, real-time data of a satellite network communication line is acquired at fixed time, which is implemented by using a set time interval (setInterval) of javascript, and the line real-time data acquired at fixed time each time is assigned to currentData.
In this embodiment, currentData includes information of a main path, a backup path, a line state, and the like of the satellite network communication line at the current time, and a key data structure of the currentData is shown in table 1.
(7) In this embodiment, before the topology is drawn each time, it is determined whether currentData needs to be further drawn on the digital globe, so as to improve the performance of the Web end and reduce redrawing of the interface. The determination flow is shown in fig. 4.
(8) And after the step of judging to be drawn, analyzing the line path into a node link array according to the node information list and the node link list.
In the embodiment of the present invention, because of the universal Unique Identifier (uuid) of the node link recorded by the path in the real-time line data, which node link corresponds to each hop of the path and information of nodes at both ends of the link can be found according to the association of the uuid.
In addition, in a specific scenario of the embodiment of the present invention, a satellite network communication line has a primary path and a backup path, so currentData is analyzed as a node link array topolinklarray 1 of the primary path and a node link array topolinklay 2 of the backup path.
(9) Respectively traversing topoLinkArray1 and topoLinkArray2, generating polyline entities of each link, and finally obtaining polyline entity arrays polyline1 of the main path and polyline entity arrays polyline2 of the standby path.
Polyline's position attribute associates the head and tail node entities at both ends of the link through the center API position.
Further, in order to show the flow direction of data in the topological drawing, the appearance and material of polyline are set according to specific conditions. For example, in the embodiment of the present invention, it is determined according to the state value of the communication line that if the main path is normal, the material of each polyline entity in polyline1 is set as a green streamer, and the spare path is not drawn; if the main path is abnormal, the main-standby switching occurs, the material of each polyline entity in polyline1 is a green virtual solid line, and the material of each polyline entity in polyline2 is set as a blue stream light.
(10) If the target satellite network communication line is drawn in the Cesium example, firstly, a polyline entity corresponding to the drawn target satellite network communication line on the digital earth is cleaned by using a viewer.
And if the target satellite network communication line is not drawn in the Cesium example, directly and sequentially adding polyline entities in polyline1 and polyline2 to the digital earth through a viewer.
(11) The Web interface provides a button for three-dimensional/two-dimensional switching of the digital earth, the button is clicked, the three-dimensional/two-dimensional switching of the digital earth can be realized by calling a viewer.
(12) And closing the topology drawing switch in the satellite network communication line list in the Web interface, and then cleaning the drawn satellite network communication line on the digital earth, namely removing the corresponding polyline entity in the Cesium instance through the viewer.
The method for drawing the satellite network communication line provided by the embodiment of the invention realizes the real-time and dynamic drawing of the topology of the satellite network communication line in a complex space-time background, visually displays the real-time change of the satellite network communication line in an interface, and solves the limitation that a plane topological graph cannot visually display the space-time coordinate relationship between the topological graph and the satellite node. The method can be applied to Web interfaces of software such as satellite network communication simulation, a satellite network controller system and the like, can provide effective support for functions such as simulation, test, management and control and the like of satellite network communication, improves user experience, and can simply realize visual simulation and visual operation of satellite network communication.
The following describes a topology drawing device of a satellite network communication line according to the present invention, and the topology drawing device of the satellite network communication line described below and the topology drawing method of the satellite network communication line described above may be referred to each other.
Fig. 5 is a schematic structural diagram of a satellite network communication line drawing device according to an embodiment of the present invention, and referring to fig. 5, the satellite network communication line drawing device according to the embodiment of the present invention may include:
a creation module 510 for creating a target instance; the target instance is used for rendering a three-dimensional digital earth;
a display module 520, configured to display real-time operation dynamics of a satellite constellation in the three-dimensional digital earth based on the target instance and the acquired satellite constellation information;
a drawing module 530, configured to draw a topology of a satellite network communication line based on the real-time operation dynamics of the satellite constellation and the communication line information obtained at the current time.
According to the satellite network communication line drawing device provided by the embodiment of the invention, the real-time operation dynamic state of the satellite constellation is shown on the three-dimensional digital earth in real time, and the topology of the satellite network communication line is drawn on the three-dimensional digital earth according to the communication line information obtained at the current moment, so that the real-time and dynamic drawing of the topology of the three-dimensional satellite network communication line in a complex space-time background is realized, the real-time change of the satellite network communication line is shown in real time, the user experience is improved, and the visual simulation and visual operation of the satellite network communication can be realized more simply.
Optionally, the method further comprises:
the first determining module is used for determining a target file corresponding to the satellite constellation information based on the acquired satellite constellation information;
and displaying real-time operation dynamics of a satellite constellation in the three-dimensional digital earth based on the target instance and the target file.
Optionally, the method further comprises:
the analysis module is used for analyzing the target file and determining nodes defined in the target file; the nodes comprise a satellite node and a ground station node;
and determining a node entity list based on the entity corresponding to the node.
Optionally, the drawing module 530 is further configured to:
analyzing the communication line information acquired at the current moment into a node link array based on the acquired node information list and the node link list;
traversing the node link array, and determining a head node and a tail node corresponding to each link;
acquiring a corresponding head entity and a corresponding tail entity in the node entity list based on the head node and the tail node corresponding to each link respectively;
and drawing a satellite network communication line topology on the three-dimensional digital earth based on the head entity and the tail entity.
Optionally, the method further comprises:
the conversion module is used for converting the three-dimensional digital earth into a two-dimensional digital earth;
and displaying the satellite network communication line topology on the two-dimensional digital earth.
Optionally, the method further comprises:
the second determining module is used for determining whether the path of the communication line at the current moment is the same as the path at the last moment or not based on the communication line information acquired at the current moment and the communication line information acquired at the last moment;
and determining whether the topology of the satellite network communication line needs to be drawn or not based on whether the path of the communication line at the current moment is the same as the path at the previous moment or not.
Optionally, the node entity list includes: node entity identification, node entity name, node entity description, node entity location, node entity availability, and node entity visibility.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor) 610, a communication Interface 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 complete communication with each other through the communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform a satellite network communication line topology drawing method comprising:
creating a target instance; the target instance is used for rendering a three-dimensional digital earth;
displaying real-time operation dynamics of a satellite constellation in the three-dimensional digital globe based on the target instance and the acquired satellite constellation information;
and drawing the topology of the satellite network communication line based on the real-time operation dynamic state of the satellite constellation and the communication line information acquired at the current moment.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer readable storage medium, when the computer program is executed by a processor, the computer can execute the method for mapping the topology of the satellite network communication line provided by the above methods, the method includes:
creating a target instance; the target instance is used for rendering a three-dimensional digital earth;
displaying real-time operation dynamics of a satellite constellation in the three-dimensional digital globe based on the target instance and the acquired satellite constellation information;
and drawing the topology of the satellite network communication line based on the real-time operation dynamic state of the satellite constellation and the communication line information acquired at the current moment.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the satellite network communication line topology drawing method provided by the above methods, the method including:
creating a target instance; the target instance is used for rendering a three-dimensional digital earth;
displaying real-time operation dynamics of a satellite constellation in the three-dimensional digital globe based on the target instance and the acquired satellite constellation information;
and drawing the topology of the satellite network communication line based on the real-time operation dynamic state of the satellite constellation and the communication line information acquired at the current moment.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for drawing topology of communication lines of a satellite network is characterized by comprising the following steps:
creating a target instance; the target instance is used for rendering a three-dimensional digital earth;
displaying real-time operation dynamics of a satellite constellation in the three-dimensional digital globe based on the target instance and the acquired satellite constellation information;
and drawing the topology of the satellite network communication line based on the real-time operation dynamic state of the satellite constellation and the communication line information acquired at the current moment.
2. The method for mapping the topology of the communication line of the satellite network according to claim 1, wherein the displaying the real-time operation dynamics of the satellite constellation in the three-dimensional digital earth based on the target instance and the acquired satellite constellation information comprises:
determining a target file corresponding to the satellite constellation information based on the obtained satellite constellation information;
and displaying real-time operation dynamics of a satellite constellation in the three-dimensional digital earth based on the target instance and the target file.
3. The method for mapping the topology of the communication lines of the satellite network according to claim 2, wherein after displaying the real-time operation dynamics of the satellite constellation in the three-dimensional digital earth based on the target instance and the target file, further comprising:
analyzing the target file and determining nodes defined in the target file; the nodes comprise a satellite node and a ground station node;
and determining a node entity list based on the entity corresponding to the node.
4. The method for drawing the topology of the communication line of the satellite network according to claim 3, wherein the drawing the topology of the communication line of the satellite network based on the real-time operation dynamics of the satellite constellation and the communication line information acquired at the current moment comprises:
analyzing the communication line information acquired at the current moment into a node link array based on the acquired node information list and the node link list;
traversing the node link array, and determining a head node and a tail node corresponding to each link;
acquiring a corresponding head entity and a corresponding tail entity in the node entity list based on the head node and the tail node corresponding to each link respectively;
and drawing a satellite network communication line topology on the three-dimensional digital earth based on the head entity and the tail entity.
5. The method for drawing the topology of the communication line of the satellite network according to any one of claims 1 to 4, wherein after drawing the topology of the communication line of the satellite network based on the real-time operation dynamics of the satellite constellation and the communication line information obtained at the current time, the method further comprises:
converting the three-dimensional digital earth into a two-dimensional digital earth;
and displaying the satellite network communication line topology on the two-dimensional digital earth.
6. The method for drawing the topology of the communication line of the satellite network according to any one of claims 1 to 4, wherein before drawing the topology of the communication line of the satellite network based on the real-time operation dynamics of the satellite constellation and the communication line information obtained at the current time, the method further comprises:
determining whether the path of the communication line at the current moment is the same as the path at the previous moment or not based on the communication line information acquired at the current moment and the communication line information acquired at the previous moment;
and determining whether the topology of the satellite network communication line needs to be drawn or not based on whether the path of the communication line at the current moment is the same as the path at the previous moment or not.
7. The method according to claim 3, wherein the node entity list comprises: node entity identification, node entity name, node entity description, node entity location, node entity availability, and node entity visibility.
8. A device for mapping a topology of a communication line in a satellite network, comprising:
a creation module for creating a target instance; the target instance is used for rendering a three-dimensional digital earth;
the display module is used for displaying the real-time operation dynamics of the satellite constellation in the three-dimensional digital earth based on the target example and the acquired satellite constellation information;
and the drawing module is used for drawing the topology of the satellite network communication line based on the real-time operation dynamic state of the satellite constellation and the communication line information acquired at the current moment.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for mapping the topology of the satellite network communication line according to any one of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the satellite network communication line topology drawing method according to any one of claims 1 to 7.
CN202211441839.XA 2022-11-17 2022-11-17 Method and device for drawing satellite network communication line and storage medium Pending CN115906355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211441839.XA CN115906355A (en) 2022-11-17 2022-11-17 Method and device for drawing satellite network communication line and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211441839.XA CN115906355A (en) 2022-11-17 2022-11-17 Method and device for drawing satellite network communication line and storage medium

Publications (1)

Publication Number Publication Date
CN115906355A true CN115906355A (en) 2023-04-04

Family

ID=86470521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211441839.XA Pending CN115906355A (en) 2022-11-17 2022-11-17 Method and device for drawing satellite network communication line and storage medium

Country Status (1)

Country Link
CN (1) CN115906355A (en)

Similar Documents

Publication Publication Date Title
CN110765620B (en) Aircraft visual simulation method, system, server and storage medium
CN109540142A (en) A kind of method, apparatus of robot localization navigation calculates equipment
CN102782729A (en) Integrated Gis system with interactive 3D interface
CN110855482A (en) Three-dimensional dynamic communication network analog simulation method, system and storage medium
CN109992108A (en) The augmented reality method and system of multiusers interaction
CN112256790A (en) WebGL-based three-dimensional visualization display system and data visualization method
CN110084853A (en) A kind of vision positioning method and system
CN108074278A (en) Video presentation method, device and equipment
CN109934892A (en) Inertial navigation motion profile method for drafting, device and computer equipment
CN115546377B (en) Video fusion method and device, electronic equipment and storage medium
WO2017143896A1 (en) Route information-related interactive method, electronic apparatus, and computer storage medium
CN113282697A (en) Dojo-based GIS (geographic information System) for realizing multi-platform heterogeneous compatibility and design and deployment methods thereof
CN110213265A (en) Image acquiring method, device, server and storage medium
CN114372107A (en) GIS-based method and system for visualizing homeland improvement and ecological restoration data
CN106846431B (en) Unified Web graph drawing system supporting multiple expression forms
CN114913182A (en) Image segmentation method, device, equipment and storage medium
CN115170740A (en) Special effect processing method and device, electronic equipment and storage medium
CN110349504A (en) A kind of museum guiding system based on AR
CN111475565B (en) Visual playback system and method for target historical geographic information data
CN115906355A (en) Method and device for drawing satellite network communication line and storage medium
TWI499998B (en) Physical simulation engine , processing system for handling a visual simulation loop and system for streamlining the process of creating computer- generated imagery
CN117078888A (en) Virtual character clothing generation method and device, medium and electronic equipment
CN115979262A (en) Aircraft positioning method, device, equipment and storage medium
Oliveira et al. Incremental scenario representations for autonomous driving using geometric polygonal primitives
CN107038176B (en) Method, device and equipment for rendering web graph page

Legal Events

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