CN111831457A - Double-channel ground station testing device, working method, computer equipment and storage medium - Google Patents

Double-channel ground station testing device, working method, computer equipment and storage medium Download PDF

Info

Publication number
CN111831457A
CN111831457A CN202010526286.2A CN202010526286A CN111831457A CN 111831457 A CN111831457 A CN 111831457A CN 202010526286 A CN202010526286 A CN 202010526286A CN 111831457 A CN111831457 A CN 111831457A
Authority
CN
China
Prior art keywords
data
queue
ground station
processing
testing device
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
CN202010526286.2A
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.)
Xi'an Standard Information Technology Co ltd
Original Assignee
Xi'an Standard Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xi'an Standard Information Technology Co ltd filed Critical Xi'an Standard Information Technology Co ltd
Priority to CN202010526286.2A priority Critical patent/CN111831457A/en
Publication of CN111831457A publication Critical patent/CN111831457A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a double-channel ground station testing device, a working method, computer equipment and a storage medium, wherein the working method comprises the following steps: 1) acquiring data sent by a ground station, acquiring the data, and putting the acquired data into a first queue; 2) reading data from the first queue, executing three steps of data type judgment, data analysis and data storage in parallel after judging that the data is valid data, and putting the data into a second queue after the data type judgment, the data analysis and the data storage; 3) and reading data from the second queue, processing the data to obtain a preset format, and displaying the preset format. The data acquisition in the invention is not influenced by other operations, the data processing is carried out by adopting multiple threads, the processing time is greatly shortened, and the storage and display of the data respectively adopt a pipeline model, thereby further improving the software running efficiency.

Description

Double-channel ground station testing device, working method, computer equipment and storage medium
Technical Field
The invention belongs to the field of upper computer software, and particularly relates to a dual-channel ground station testing device, a working method, computer equipment and a storage medium.
Background
In the upper computer software, the upper computer software is generally written by adopting text languages such as C language, C + + and VB. Text language programming not only requires the input of a large number of codes, but also requires a programmer to have a good understanding of the underlying layers and perform various operations on the underlying layers. The programming work is heavy and the work efficiency is low.
In addition, when multiple threads are needed, the program need not only write heavy thread code, but also need to consider thread synchronization issues. More programming work presents great difficulties.
Disclosure of Invention
The present invention is directed to overcome the above disadvantages of the prior art, and provides a dual channel ground station testing apparatus, a method of operating the same, a computer device, and a storage medium.
In order to achieve the purpose, the invention adopts the following technical scheme to realize the purpose:
a working method of a double-channel ground station testing device comprises the following steps:
1) acquiring data sent by a ground station, acquiring the data, and putting the acquired data into a first queue;
2) reading data from the first queue, executing three steps of data type judgment, data analysis and data storage in parallel after judging that the data is valid data, and putting the data into a second queue after the data type judgment, the data analysis and the data storage;
3) and reading data from the second queue, processing the data to obtain a preset format, and displaying the preset format.
Further, in the step 1), data acquisition is performed through a LabVIEW timing cycle structure, the data acquisition is performed by a single processor, and the priority of the thread in which the data acquisition is performed is the highest level.
Further, in the step 2), three steps of data type judgment, data processing and data storage are executed in parallel, the three steps form a loop, and the output of the loop operation of the next step is used as the input of the next loop operation of any other step.
Further, the preset formats in the step 3) include column diagrams, oscillograms and text formats, and data in different formats are displayed by adopting a pipeline model.
A dual-channel ground station testing device comprises a data acquisition module, a data judgment processing module and a data display module;
the data acquisition module is used for acquiring data sent by the ground station, acquiring the data and putting the acquired data into a first queue;
the data judgment processing module is used for reading data from the first queue, parallelly executing three steps of data type judgment, data analysis and data storage after judging that the data is valid data, and putting the data into a second queue after the data type judgment, the data analysis and the data storage;
and the data display module is used for reading data from the second queue, processing the data to obtain a preset format and then displaying the preset format.
Furthermore, the data acquisition module is executed by a single processor, and the priority of the thread in which the data acquisition module is located is the highest level.
Further, the data judgment processing module comprises a data judgment submodule and a data processing submodule;
the data judgment submodule is used for reading the data in the first queue, judging the validity of the data and transmitting the valid data to the data processing submodule;
the data processing submodule is used for reading effective data, processing the read data and storing the processed data into the second queue.
Furthermore, the data processing submodule comprises a data type judging unit, a data processing unit and a data storage unit, the three modules are arranged in different threads and run in parallel by adopting a pipeline model;
the data type judging unit is used for judging the type of the data;
the data analysis unit is used for analyzing data;
the data storage unit is used for storing data to the second queue.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the test method for a two-channel ground station test described above when executing the computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for testing of a two-channel ground station test described above.
Compared with the prior art, the invention has the following beneficial effects:
according to the working method of the double-channel ground station testing device, data acquisition is realized through a LabVIEW timing cycle structure and is executed by a single processor, the thread where the data acquisition is located is the highest level, and the data acquisition is not influenced by other operations; the data are processed in three steps after judgment, the data type judgment, the data analysis and the data storage are executed in parallel by adopting a pipeline model, and one cycle time is the time of the step which consumes the longest time in the three steps, so that the running efficiency of the software is improved; the data to be displayed in the data display comprises data display pipeline modes with different formats and different formats, so that the operation efficiency is further improved.
According to the double-channel ground station testing device provided by the invention, the data acquisition module, the data judgment processing module and the data display module are used for consuming numerical values generated by the data acquisition module and the data display module in the sequence, the data acquisition module is operated by the independent processor, and the thread where the data acquisition module is positioned is the highest level, so that the smoothness of data acquisition and operation is ensured; the data processing submodule in the data judging and processing module comprises three units, and the three units are positioned in different threads, so that the parallel execution of the three units is ensured; the data display module can generate data with different formats, and the data with different formats are positioned in different threads, so that the display fluency is ensured; the channel ground station testing device can ensure the fluency of each step in operation.
The invention provides computer equipment and a storage medium for a working method of a double-channel ground station testing device, which are used for realizing the specific steps of the working method.
Drawings
FIG. 1 is a flow chart of a method of operation of the dual channel ground station test apparatus of the present invention;
FIG. 2 is a schematic block diagram of the dual channel ground station test apparatus of the present invention;
FIG. 3 is a schematic block diagram of a data judgment processing module in the dual-channel ground station testing device of the present invention;
FIG. 4 is a schematic block diagram of a data processing sub-module of the data judgment processing module according to the present invention;
FIG. 5 is a schematic diagram of a computer device in an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The invention is described in further detail below with reference to the accompanying drawings:
referring to fig. 1, fig. 1 is a flow chart of a working method of the dual-channel ground station testing device of the present invention; the working method of the double-channel ground station testing device comprises the following steps:
1) acquiring data sent by a ground station, acquiring the data, and putting the acquired data into a first queue; specifically, data acquisition is realized through a LabVIEW timing cycle structure, the priority is set for the cycle by utilizing two wiring sections of priority and processor of the timing cycle, the priority of data acquisition is set as the highest level, and the processor for processing execution is designated, so that the data acquisition part can normally run when other operations with higher priority are available.
Data collection also serves as a 'producer' and enters a first queue for data processing storage 'consumption'.
In the test process, it is found that cyclic data acquisition is realized by adopting a common mode, when a mouse clicks a main window or drags the window, a program is caused to firstly correspond to a mouse message, and other cycles can stop running without temporarily obtaining resources. However, if the ground station is still transmitting data, the buffer will overflow under the condition of high code rate, and then the transmitted data will be disordered, which will affect the normal operation of the system. The data acquisition of the present invention avoids the above-mentioned drawbacks.
2) Reading data from the first queue, executing three steps of data type judgment, data analysis and data storage in parallel after judging that the data is valid data, and putting the data into a second queue after the data type judgment, the data analysis and the data storage; specifically, a pipeline model is adopted in the data processing, the pipeline model is adopted to enable the three parts to be executed in parallel, the output of the next cycle operation of one step is used as the input of the next cycle operation of any other step, and the cycle time of one time is the part which consumes the longest time in each part.
If serial execution is used, the one-cycle execution time is the sum of the parts that are time consuming. Therefore, the pipeline model can well improve the software operation efficiency and improve the software performance.
In addition, the data in the second queue after the data judgment processing is used as a 'producer' in a producer-consumer model of the data judgment processing and data display, and the processed data is put into the second queue so as to facilitate the data display step to carry out 'consumption'.
3) Reading data from the second queue, processing the data to obtain a preset format, and displaying the preset format; in particular, the data display is stored as a "consumer" in a producer-consumer model of the data processing and data display. And reading the data from the second queue, processing the data to respectively obtain a bar chart, a oscillogram and data for text display, and transmitting the data to a display screen for display.
Referring to fig. 2, fig. 2 is a schematic block diagram of the dual channel ground station testing apparatus of the present invention; the double-channel ground station testing device comprises a data acquisition module, a data judgment processing module and a data display module, wherein the data acquisition module is used for acquiring data sent by a ground station, acquiring the data and putting the acquired data into a first queue; the data processing module is used for reading data from the first queue, parallelly executing three steps of data type judgment, data analysis and data storage after judging that the data is valid data, and putting the data into the second queue after the data type judgment, the data analysis and the data storage; and the data display module is used for reading data from the second queue, processing the data to obtain a preset format and then displaying the preset format.
Referring to fig. 3, fig. 3 is a schematic block diagram of a data judgment processing module in the dual-channel ground station testing apparatus of the present invention; the data judgment processing module comprises a data judgment submodule and a data processing submodule; the data judgment submodule is used for reading the data in the first queue, judging the validity of the data and transmitting the valid data to the data processing submodule; the data processing submodule is used for reading effective data, processing the read data and storing the processed data into the second queue.
Referring to fig. 4, fig. 4 is a schematic block diagram of a data processing sub-module in the data judgment processing module according to the present invention; the data processing submodule comprises a data type judging unit, a data analyzing unit and a data storage unit; the data type judging unit is used for judging the type of the data; the data analysis unit is used for analyzing data; the data storage unit is used for storing data to the second queue.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The computer program is executed by a processor to implement a method of operation of a dual channel ground station test apparatus.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring data sent by a ground station, acquiring the data, and putting the acquired data into a first queue; reading data from the first queue, executing three steps of data type judgment, data analysis and data storage in parallel after judging that the data is valid data, and putting the data into a second queue after the data type judgment, the data analysis and the data storage; and reading data from the second queue, processing the data to obtain a preset format, and displaying the preset format.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring data sent by a ground station, acquiring the data, and putting the acquired data into a first queue; reading data from the first queue, executing three steps of data type judgment, data analysis and data storage in parallel after judging that the data is valid data, and putting the data into a second queue after the data type judgment, the data analysis and the data storage; and reading data from the second queue, processing the data to obtain a preset format, and displaying the preset format.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned contents are only for illustrating the technical idea of the present invention, and the protection scope of the present invention is not limited thereby, and any modification made on the basis of the technical idea of the present invention falls within the protection scope of the claims of the present invention.

Claims (10)

1. A working method of a double-channel ground station testing device is characterized by comprising the following steps:
1) acquiring data sent by a ground station, acquiring the data, and putting the acquired data into a first queue;
2) reading data from the first queue, executing three steps of data type judgment, data analysis and data storage in parallel after judging that the data is valid data, and putting the data into a second queue after the data type judgment, the data analysis and the data storage;
3) and reading data from the second queue, processing the data to obtain a preset format, and displaying the preset format.
2. The operating method of the dual-channel ground station testing device as claimed in claim 1, wherein the data collection in step 1) is performed by a LabVIEW timing loop structure, the data collection is performed by a single processor, and the priority of the thread in which the data collection is performed is the highest.
3. The operating method of the dual-channel ground station testing device as claimed in claim 1, wherein the data type determination, the data processing and the data storage are performed in parallel in step 2), the three steps form a loop, and the output of the loop operation of the next step is used as the input of the next loop operation of any other step.
4. The operating method of the dual channel ground station testing device as claimed in claim 1, wherein the preset format in step 3) includes a bar graph, a wave graph and a text format, and data in different formats is displayed by using a pipeline model.
5. A double-channel ground station testing device is characterized by comprising a data acquisition module, a data judgment processing module and a data display module;
the data acquisition module is used for acquiring data sent by the ground station, acquiring the data and putting the acquired data into a first queue;
the data judgment processing module is used for reading data from the first queue, parallelly executing three steps of data type judgment, data analysis and data storage after judging that the data is valid data, and putting the data into a second queue after the data type judgment, the data analysis and the data storage;
and the data display module is used for reading data from the second queue, processing the data to obtain a preset format and then displaying the preset format.
6. The dual channel ground station testing device of claim 5, wherein the data acquisition module is executed by a single processor, and the priority of the thread in which the data acquisition module is located is highest.
7. The dual-channel ground station testing device of claim 5, wherein the data judgment processing module comprises a data judgment sub-module and a data processing sub-module;
the data judgment submodule is used for reading the data in the first queue, judging the validity of the data and transmitting the valid data to the data processing submodule;
the data processing submodule is used for reading effective data, processing the read data and storing the processed data into the second queue.
8. The dual-channel ground station testing device of claim 7, wherein the data processing sub-module comprises a data type judging unit, a data processing unit and a data storage unit, and the three modules are arranged in different threads and run in parallel by adopting a pipeline model;
the data type judging unit is used for judging the type of the data;
the data analysis unit is used for analyzing data;
the data storage unit is used for storing data to the second queue.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the test method for a two-channel ground station test of any one of claims 1-4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for testing a two-channel ground station test according to any one of claims 1 to 4.
CN202010526286.2A 2020-06-09 2020-06-09 Double-channel ground station testing device, working method, computer equipment and storage medium Pending CN111831457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010526286.2A CN111831457A (en) 2020-06-09 2020-06-09 Double-channel ground station testing device, working method, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010526286.2A CN111831457A (en) 2020-06-09 2020-06-09 Double-channel ground station testing device, working method, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111831457A true CN111831457A (en) 2020-10-27

Family

ID=72899149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010526286.2A Pending CN111831457A (en) 2020-06-09 2020-06-09 Double-channel ground station testing device, working method, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111831457A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103489301A (en) * 2013-09-25 2014-01-01 东风汽车公司 Vehicle running information acquisition system and method using dual-processor architecture
US20160299791A1 (en) * 2014-01-14 2016-10-13 Tencent Technology (Shenzhen) Company Limited Method And Apparatus For Processing Computational Task
CN108255553A (en) * 2017-12-22 2018-07-06 西安思丹德信息技术有限公司 A kind of graphic processing method and device of telemetry ground station human-computer interaction interface
CN110648273A (en) * 2019-09-27 2020-01-03 中国科学院长春光学精密机械与物理研究所 Real-time image processing apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103489301A (en) * 2013-09-25 2014-01-01 东风汽车公司 Vehicle running information acquisition system and method using dual-processor architecture
US20160299791A1 (en) * 2014-01-14 2016-10-13 Tencent Technology (Shenzhen) Company Limited Method And Apparatus For Processing Computational Task
CN108255553A (en) * 2017-12-22 2018-07-06 西安思丹德信息技术有限公司 A kind of graphic processing method and device of telemetry ground station human-computer interaction interface
CN110648273A (en) * 2019-09-27 2020-01-03 中国科学院长春光学精密机械与物理研究所 Real-time image processing apparatus

Similar Documents

Publication Publication Date Title
US8578216B2 (en) Execution history tracing method
CN111176996A (en) Test case generation method and device, computer equipment and storage medium
US8839197B2 (en) Automated analysis of composite applications
US11201806B2 (en) Automated analysis and recommendations for highly performant single page web applications
CN103136107A (en) Variable debugging method of embedded program dynamic storage allocation
US20140282428A1 (en) Embedding and executing trace functions in code to gather trace data
CN109471718B (en) Computing resource configuration method, device, equipment and medium based on face recognition
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN113283216A (en) Webpage content display method, device, equipment and storage medium
CN115712422A (en) Form page generation method and device, computer equipment and storage medium
CN104572474A (en) Dynamic slicing based lightweight error locating implementation method
CN103793653A (en) Program dependence relationship analysis method and system based on tree optimization
WO2020259155A1 (en) Method and apparatus for generating alarm data report
CN111831457A (en) Double-channel ground station testing device, working method, computer equipment and storage medium
CN111324463A (en) Engineering file label clearing method, system, device and storage medium
CN112861138A (en) Software security analysis method and analysis device, electronic device, and storage medium
CN113010177B (en) Software-defined instrument, information acquisition method, computer, and storage medium
CN105573885A (en) Method and device for monitoring and counting bottom hardware behaviours
CN114238107A (en) Tracking debugging method, system and computer readable storage medium
CN111291298A (en) Page display method and device, electronic equipment and storage medium
CN113127117A (en) Qt development framework-based interface paging display method, device, system and medium
CN111831555A (en) Universal ground station testing device, working method, computer equipment and storage medium
CN114661980B (en) Webpage data pushing method and system and cloud platform
CN111949005B (en) Method, device and equipment for acquiring frozen frame data and storage medium
Villoria R meets GEMPACK for a monte carlo walk

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