Satellite external interface conversion method and device and storage medium

By receiving satellite external interface information and converting it into a unified internal interface, the code modification problem caused by the addition of new external users and satellite interfaces is solved, system risks are reduced, and unified interface adaptation and business stability are achieved.

CN119248692APending Publication Date: 2025-01-03AEROSPACE INFORMATION RES INST CAS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411258485.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In the prior art, the new external satellite interface requires the modification of the receiving system code, resulting in increased workload and increased system risks, making it difficult to adapt to the interfaces of different satellites, affecting business stability.

Method used

By receiving satellite external interface information, converting it into an internal interface in the target form based on the internal interface baseline information, including adjusting the format and field form, adding plug-in adaptation, extracting node information, unifying interface standards, and reducing code modification and system risks.

Benefits of technology

It avoids code modification problems caused by the addition of new external users, reduces workload, reduces system risks, ensures unified adaptation to all external users and satellite interfaces, and improves business stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248692A_ABST
    Figure CN119248692A_ABST
Patent Text Reader

Abstract

The invention provides a satellite external interface conversion method and device and a storage medium, and the method comprises the steps: receiving satellite external interface information, the satellite external interface information comprises internal interface baseline information, and the internal interface baseline information comprises necessary information needed when a receiving system carries out the resource allocation of a satellite; and converting the satellite external interface into an internal interface in a target form based on the internal interface baseline information. According to the satellite external interface conversion method and device and the storage medium provided by the invention, the satellite external interface information is received, and the satellite external interface is converted into the internal interface in the target form according to the internal interface baseline information in the satellite external interface information, so that the code modification problem caused by adding external users can be avoided, the workload is reduced, and the user experience is improved. And the system risk caused by updating is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a satellite external interface conversion method, device and storage medium. Background Art

[0002] The ground receiving system usually has many external users who need to use the ground receiving system to perform receiving tasks. External users drive the ground receiving system to perform receiving tasks by sending tasks to the ground receiving system. Since external users come from different companies, many of these companies have their own interface forms, and it is difficult to require all external users to follow the interface established by the ground receiving system. The current situation of the ground receiving system is that when adding external users, the code of the program for receiving external tasks is modified to adapt to the new external user interface. Modifying the code increases the workload and introduces the risk of updating the program. Each code update may affect the function of the entire program for receiving external tasks. If the update fails, it may not be possible to receive all external users' tasks, resulting in significant business losses.

[0003] In addition to serving different external users, the ground receiving system also needs to receive different satellites. With the increase in the number of satellites, it is difficult for all satellites to adapt to one interface. The increase in the number of satellites also makes it difficult to unify the interface. Summary of the invention

[0004] The present invention provides a satellite external interface conversion method, device and storage medium, which are used to solve the technical problem in the prior art that a new satellite external interface needs to be added, which leads to increased system risk.

[0005] The present invention provides a satellite external interface conversion method, comprising the following steps.

[0006] Receiving satellite external interface information, wherein the satellite external interface information includes internal interface baseline information, and the internal interface baseline information includes necessary information required by a receiving system to allocate resources to the satellite; The satellite external interface is converted into an internal interface in a target form based on the internal interface baseline information.

[0007] In some embodiments, converting the satellite external interface into an internal interface of a target form based on the internal interface baseline information comprises: The format and / or field format of the satellite external interface information is adjusted based on the target format.

[0008] In some embodiments, when the satellite external interface information further includes first information different from the internal interface baseline information, the method further includes: A new interface plug-in is added based on the first information.

[0009] In some embodiments, the receiving satellite external interface information includes: Determining the interface format type of the satellite external interface information; Node information in the satellite external interface information is extracted based on the interface format type, where the node information includes root node information and child node information.

[0010] In some embodiments, extracting the node information in the satellite external interface information based on the interface format type includes: Extracting root node information in the satellite external interface information based on the interface format type, wherein the root node information includes subnode information; The type of the child node is determined based on the child node information.

[0011] In some embodiments, the internal interface baseline information includes one or more of the following information: Satellite code; Track number; Digital transmission mode; Downlink channel number; Sensor code; Ground station code; Pit stop time; Departure time; Receiving start time; Receiving end time.

[0012] The present invention also provides a satellite external interface conversion device, comprising the following modules: A receiving module, used for receiving satellite external interface information, wherein the satellite external interface information includes internal interface baseline information, and the internal interface baseline information includes necessary information required by a receiving system for allocating resources to the satellite; A conversion module is used to convert the satellite external interface into an internal interface in a target form based on the internal interface baseline information.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, any one of the satellite external interface conversion methods described above is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the satellite external interface conversion method as described in any one of the above is implemented.

[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the satellite external interface conversion method as described above is implemented.

[0016] The satellite external interface conversion method, device and storage medium provided by the present invention can avoid code modification problems caused by newly added external users, reduce workload and reduce system risks caused by updates by receiving satellite external interface information and converting the satellite external interface into a target form of internal interface according to internal interface baseline information in the satellite external interface information. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 The present invention is a flowchart of a satellite external interface conversion method.

[0019] Figure 2 This is an example diagram of the interface template provided by the present invention.

[0020] Figure 3 This is an example diagram of the converted internal interface file provided by the present invention.

[0021] Figure 4 It is a schematic diagram of the process of extracting node information provided by the present invention.

[0022] Figure 5 It is a structural schematic diagram of the satellite external interface conversion device provided by the present invention.

[0023] Figure 6 It is a schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] Figure 1 FIG. 1 is a flow chart of a satellite external interface conversion method provided by the present invention, such as Figure 1As shown, the method includes the following: Step 101: Receive satellite external interface information, where the satellite external interface information includes internal interface baseline information, and the internal interface baseline information includes necessary information required by a receiving system to allocate resources to the satellite.

[0026] Step 102: Convert the satellite external interface into an internal interface in a target form based on the internal interface baseline information.

[0027] Specifically, in order to solve the above technical problems, the satellite external interface conversion method provided by the present invention consists of two parts: interface information extraction and interface generation. The interface information extraction method reads the satellite external interface information, and determines the internal interface baseline information from the satellite external interface information by establishing a unified internal interface baseline standard. The internal interface baseline is based on the common part of the existing interface, and the internal interface baseline contains all necessary items for receiving resource allocation, including satellite name, receiving time and other information.

[0028] The interface generation generates the target internal interface according to the configuration based on the extracted internal interface baseline information.

[0029] The target format may be a file format including a preset format, and the preset format may be used to make the generated internal interface a unified universal internal interface.

[0030] The satellite external interface conversion method provided by the present invention receives satellite external interface information and converts the satellite external interface into an internal interface of a target form according to internal interface baseline information in the satellite external interface information, thereby avoiding code modification problems caused by newly added external users, reducing workload, and reducing system risks caused by updates.

[0031] In some embodiments, the internal interface baseline information includes one or more of the following information: Satellite code; Track number; Digital transmission mode; Downlink channel number; Sensor code; Ground station code; Pit stop time; Departure time; Receiving start time; Receiving end time.

[0032] Specifically, the internal interface baseline is shown in Table 1 below.

[0033] Table 1. Internal interface baseline content table

[0034] The satellite external interface conversion method provided by the present invention receives satellite external interface information and converts the satellite external interface into an internal interface of a target form according to internal interface baseline information in the satellite external interface information, thereby avoiding code modification problems caused by newly added external users, reducing workload, and reducing system risks caused by updates.

[0035] In some embodiments, converting the satellite external interface into an internal interface of a target form based on the internal interface baseline information comprises: The format and / or field format of the satellite external interface information is adjusted based on the target format.

[0036] Specifically, for newly added satellite external interface items where the content items remain unchanged and only the format or field form is different, the interface content and interface template are extracted, and mapped between the template and the interface content to uniformly convert them into internal interfaces for adaptation, thus avoiding code modification.

[0037] Figure 2 is an example diagram of the interface template provided by the present invention, Figure 3 is an example diagram of the converted internal interface file provided by the present invention, such as Figure 2 and Figure 3 As shown, although the external user may have different interfaces, the element contents of the interfaces are generally similar. Therefore, a unified internal interface can be designed for the receiving system, and the external user interface can be converted into an internal interface through a general interface conversion method. The internal interface drives the receiving system to perform tasks.

[0038] The interface template is an internal interface template containing a target form. The internal interface in the target form can be obtained by adjusting the format and / or field form of the satellite external interface information according to the target form.

[0039] The satellite external interface conversion method provided by the present invention adjusts the format and / or field form of satellite external interface information according to the target form when only the format or field form is different, thereby avoiding code modification problems caused by newly added external users, reducing workload, and reducing system risks caused by updates.

[0040] In some embodiments, when the satellite external interface information further includes first information different from the internal interface baseline information, the method further includes: A new interface plug-in is added based on the first information.

[0041] Specifically, in case that the content item of the newly added satellite external interface changes, that is, the satellite external interface information also includes the first information, the information of the internal interface baseline part contained in the newly added external interface can be extracted and converted into an internal interface through an interface template, and the newly added content item, that is, the first information, is adapted through the newly added plug-in.

[0042] The satellite external interface conversion method provided by the present invention realizes interface conversion by configuring or adding plug-ins to adapt to different users and satellites, with small workload and low risk, and will not cause failure to receive other external user tasks due to the addition of new external user interfaces.

[0043] In some embodiments, the receiving satellite external interface information includes: Determining the interface format type of the satellite external interface information; Node information in the satellite external interface information is extracted based on the interface format type, where the node information includes root node information and child node information.

[0044] Specifically, interface information extraction reads the tasks assigned by external users, parses, extracts information elements, and structures them.

[0045] Interface information extraction reads the tasks issued by external users and converts the interface content into the target form, such as HashMap<String,Object> The current external interfaces mainly have data in two formats: json and xml.

[0046] First determine the interface format type. If it is in json format, convert it directly to HashMap<String,Object> If it is in XML format, extract the information. Each node in XML format corresponds to a HashMap.

[0047] For example, the xml root node corresponds to a HashMap<String,Object> , the child nodes of the root node also correspond to a HashMap<String,Object> , the key value of the child node HashMap is the child node name, and the value value is the attribute value of the child node. Add the HashMap of each child node to the value of the HashMap of the root node to form the HashMap of the root node. The key value of the root node is the node name of the root node, and the value of the root node is the HashMap formed by each child node.

[0048] The satellite external interface conversion method provided by the present invention receives satellite external interface information and converts the satellite external interface into an internal interface of a target form according to internal interface baseline information in the satellite external interface information, thereby avoiding code modification problems caused by newly added external users, reducing workload, and reducing system risks caused by updates.

[0049] In some embodiments, extracting the node information in the satellite external interface information based on the interface format type includes: Extracting root node information in the satellite external interface information based on the interface format type, wherein the root node information includes subnode information; The type of the child node is determined based on the child node information.

[0050] Specifically, Figure 4 It is a schematic diagram of the process of extracting node information provided by the present invention, such as Figure 4 As shown, the process of extracting information from XML is as follows: 1. Read the XML content and extract the root node. 2. The information of each node in the XML content is extracted using a recursive function, as described below: Take the root node as input and set the HashMap<String,Object> To store the root node content, the root node name is used as the key, the root node attribute value is used as the value, and the root node value is composed of each child node. Determine whether the root child node is an element node or a node. Each child node is also a HashMap<String,Object> Type, if it is an element node, extract the element attribute name and element value, and use the element attribute name as a HashMap<String,Object> The key of the HashMap<String,Object> If it is a node, a HashMap will be generated.<String,Object> Record the node value and add it to the root node HashMap<String,Object> In the value of the above node HashMap<String,Object> 3. For repeated nodes, first determine the HashMap<String,Object> Is there an identical key value (key is the node name) in the list? If so, get the value of the key value and generate a key with the node name + List. At the same time, put the HashMap of the node and the previously repeated HashMap into the HashMap with the key value of the node name + List.

[0051] The satellite external interface conversion method provided by the present invention receives satellite external interface information and converts the satellite external interface into an internal interface of a target form according to internal interface baseline information in the satellite external interface information, thereby avoiding code modification problems caused by newly added external users, reducing workload, and reducing system risks caused by updates.

[0052] Figure 5 Schematic diagram of the structure of the satellite external interface conversion device provided by the present invention. Figure 5 As shown, the satellite external interface conversion device provided in the embodiment of the present application includes a receiving module 501 and a conversion module 502, wherein: A receiving module 501 is used to receive satellite external interface information, wherein the satellite external interface information includes internal interface baseline information, and the internal interface baseline information includes necessary information required by a receiving system to allocate resources to the satellite; The conversion module 502 is used to convert the satellite external interface into an internal interface of a target form based on the internal interface baseline information.

[0053] Specifically, the above-mentioned satellite external interface conversion device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned satellite external interface conversion method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.

[0054] Figure 6 is a schematic diagram of the physical structure of the electronic device provided by the present invention, such as Figure 6 As shown, the electronic device may include: a processor 610, a communications interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communications interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the satellite external interface conversion method, which includes: Receiving satellite external interface information, wherein the satellite external interface information includes internal interface baseline information, and the internal interface baseline information includes necessary information required by a receiving system to allocate resources to the satellite; The satellite external interface is converted into an internal interface in a target form based on the internal interface baseline information.

[0055] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0056] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the satellite external interface conversion method provided by the above methods, the method includes: Receiving satellite external interface information, wherein the satellite external interface information includes internal interface baseline information, and the internal interface baseline information includes necessary information required by a receiving system to allocate resources to the satellite; The satellite external interface is converted into an internal interface in a target form based on the internal interface baseline information.

[0057] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the satellite external interface conversion method provided by the above methods is implemented, and the method includes: Receiving satellite external interface information, wherein the satellite external interface information includes internal interface baseline information, and the internal interface baseline information includes necessary information required by a receiving system to allocate resources to the satellite; The satellite external interface is converted into an internal interface in a target form based on the internal interface baseline information.

[0058] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they 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 scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0059] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0060] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A satellite external interface conversion method, characterized in that: include: Receiving satellite external interface information, wherein the satellite external interface information includes internal interface baseline information, and the internal interface baseline information includes necessary information required by a receiving system to allocate resources to the satellite; The satellite external interface is converted into an internal interface in a target form based on the internal interface baseline information.

2. The satellite external interface conversion method according to claim 1, characterized in that: The converting the satellite external interface into an internal interface in a target form based on the internal interface baseline information comprises: The format and / or field format of the satellite external interface information is adjusted based on the target format.

3. The satellite external interface conversion method according to claim 1, characterized in that: In a case where the satellite external interface information further includes first information different from the internal interface baseline information, the method further includes: A new interface plug-in is added based on the first information.

4. The satellite external interface conversion method according to claim 1, characterized in that: The receiving satellite external interface information includes: Determining the interface format type of the satellite external interface information; Node information in the satellite external interface information is extracted based on the interface format type, where the node information includes root node information and child node information.

5. The satellite external interface conversion method according to claim 4, characterized in that: The extracting the node information in the satellite external interface information based on the interface format type comprises: Extracting root node information in the satellite external interface information based on the interface format type, wherein the root node information includes subnode information; The type of the child node is determined based on the child node information.

6. The satellite external interface conversion method according to claim 1, characterized in that: The internal interface baseline information includes one or more of the following information: Satellite code; Track number; Digital transmission mode; Downlink channel number; Sensor code; Ground station code; Pit stop time; Departure time; Receiving start time; Receiving end time.

7. A satellite external interface conversion device, characterized in that: include: A receiving module, used for receiving satellite external interface information, wherein the satellite external interface information includes internal interface baseline information, and the internal interface baseline information includes necessary information required by a receiving system for allocating resources to the satellite; A conversion module is used to convert the satellite external interface into an internal interface in a target form based on the internal interface baseline information.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the satellite external interface conversion method according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the satellite external interface conversion method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the satellite external interface conversion method according to any one of claims 1 to 6 is implemented.