CN106850546B - Map module software organization method of radar terminal - Google Patents

Map module software organization method of radar terminal Download PDF

Info

Publication number
CN106850546B
CN106850546B CN201611159142.8A CN201611159142A CN106850546B CN 106850546 B CN106850546 B CN 106850546B CN 201611159142 A CN201611159142 A CN 201611159142A CN 106850546 B CN106850546 B CN 106850546B
Authority
CN
China
Prior art keywords
map
radar terminal
radar
terminal
loading module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611159142.8A
Other languages
Chinese (zh)
Other versions
CN106850546A (en
Inventor
陈斯
卢华
方金康宏
陈维
张林兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Binhu Electronic Co ltd
Original Assignee
Wuhan Binhu Electronic 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 Wuhan Binhu Electronic Co ltd filed Critical Wuhan Binhu Electronic Co ltd
Priority to CN201611159142.8A priority Critical patent/CN106850546B/en
Publication of CN106850546A publication Critical patent/CN106850546A/en
Application granted granted Critical
Publication of CN106850546B publication Critical patent/CN106850546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

The invention belongs to the content of the field of software modularization, and particularly relates to a map module software organization method of a radar terminal. The invention operates a radar terminal and a map module on the same machine; the radar terminal and the map loading module can transmit data through a local loopback address; the map loading module is always in a message waiting state until a request for drawing a map from the radar terminal is received; when the radar terminal is started or the map state of the radar terminal is changed, the radar terminal transmits map parameters to the map loading module through the local loopback address; and the map loading module receives the map parameters, processes the map parameters and generates a corresponding map to feed back to the radar terminal. The method and the system can separate the built-in map loading function of the radar terminal, and hardly influence the overall running speed of the radar terminal.

Description

Map module software organization method of radar terminal
Technical Field
The invention belongs to the content of the field of software modularization, and particularly relates to a map module software organization method of a radar terminal.
Background
At present, most active radars use a software radar terminal and are provided with an electronic map. The data of the electronic map is provided by a plurality of units according to different radar models. This directly leads to uncertainty in the source of the map data: the map data may be provided in the form of a dynamic link library, an executable file, or other forms such as a packaged class, and the interfaces provided for reading the map data in different ways are completely different. The realization of the radar terminal function is based on map data provided by a map provider, and every time the data provider changes (map updating or even directly changing a unit providing the map data), all parts related to map parameters in terminal software need to be modified and maintained, as shown in fig. 1. This makes the maintenance work of radar terminal increase a lot of unnecessary work load, has wasted a large amount of manpower and materials.
On the other hand, the radar is frequently modified according to the requirements of users. And the modification of the radar and the modification of the terminal software require many changes. After each software change, for reasons such as confidentiality, the user needs to apply for the map data provider and obtain permission to use the map normally. No matter how much the software is changed, the application process is inevitable, and therefore the efficiency of radar transformation is greatly reduced.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a map module software organization method of a radar terminal. The invention adds the independent map loading module, so that the communication mode between the map loading module and the radar terminal is fixed, the communication content is fixed, the map loading module is not required to be modified no matter the content in the radar terminal or a map database file is changed, and the workload of software maintenance, software upgrading and the like is reduced.
The technical scheme of the invention is as follows: a map module software organization method of a radar terminal comprises the following steps:
step 1: the radar terminal and the map loading module can transmit data through a local loopback address;
step 2: the map loading module is always in a message waiting state until a request for drawing a map from the radar terminal is received;
and step 3: when the radar terminal is started or the map state of the radar terminal is changed, the radar terminal transmits data to the map loading module through the local loopback address;
and 4, step 4: after receiving the message from the radar terminal, the map loading module immediately reads the parameters of the map database file, draws a map in a bitmap format according to the parameters and stores the map in a clipboard, and transmits the drawn map in the bitmap format to the radar terminal through the local loopback address after the map in the bitmap format is drawn;
and 5: and the radar terminal receives and reads the bitmap map to realize the function of loading the map.
The map module software organization method of the radar terminal is characterized in that: and the message transmission between the radar terminal and the map loading module adopts a socket communication mode.
The map module software organization method of the radar terminal is characterized in that: the carrier of the map data can be in various forms such as a dynamic link library, a packaged class file, an executable program and the like.
The map module software organization method of the radar terminal is characterized in that: and image data are transmitted between the radar terminal and the map loading module by using a clipboard function built in the system.
The invention has the beneficial effects that: the built-in map loading function of the radar terminal can be separated, and the overall running speed of the radar terminal is hardly influenced. In the design of a radar terminal with a new model, the module software organization method can be directly applied, and a debugging program does not need to be repeatedly programmed. When the map data changes every time, the normal operation can be realized only by debugging and modifying the map loading module. In summary, the module software organization method provides a uniform interface, and the radar terminal can realize the relevant functions of loading the map by using the interface.
Drawings
FIG. 1 is a functional block diagram of a radar terminal (before modularization);
FIG. 2 is a functional block diagram of a radar terminal (after modularization);
FIG. 3 is a flow chart of the map load module operation;
fig. 4 is a flow chart of the operation of the radar terminal program.
Detailed Description
The noun explains:
radar terminal: the mobile terminal device is a program which runs on a computer and the like, and the program links the collected signals with map information and synchronously displays the map information to a user so that the user can judge the geographical position of a signal target.
In order to make the technical problems, technical schemes and beneficial effects to be solved by the invention more clear and obvious. The present invention will be described in detail in steps with reference to the accompanying drawings.
As shown in fig. 2 to 4, the present invention provides a method for organizing a map module software of a radar terminal, the method comprising the steps of:
step 1: and running the radar terminal and the map module on the same machine. The radar terminal and the map loading module can transmit data through a local loopback address.
Step 2: the map loading module is always in a message waiting state until a request for drawing a map from the radar terminal is received.
The map data provider can provide the library file of the map data, and when the map is drawn, the interface function of the map data provider is called or the data in the map data provider is directly read, so that the map in the bitmap format can be drawn. The map loading module has the function of loading the library files independently and drawing the required map.
It can be seen that how the independent map loading module and the radar terminal perform accurate communication without affecting performance is the key content of the invention. In the invention, the message transmission between the radar terminal and the map loading module adopts a socket communication mode, namely, the data transmission between processes is realized through the local loopback address. And the two modules are respectively added with a communication module and appoint a port number, and data frame transmission is carried out through a UDP protocol. The beneficial effects are that: the method for sending the data frame through the local loopback address has high applicability, the transmission of the data frame is completed through the memory, the influence on the operation efficiency of the radar terminal is extremely small, and no consumption is caused on the network.
And step 3: when the radar terminal is started or the map state of the radar terminal is changed, relevant parameters are sent to a map loading module in the mode of the step 1, and then the radar terminal enters a state of waiting for feedback;
when the radar terminal is started or an operator needs to redraw the map, parameters (geographical position information, measuring range, central point position and map elements) required for drawing the map are automatically stored in the data frame and are sent to the map loading module through the communication mode in the step 1. After the sending is finished, the terminal immediately enters a message waiting state until receiving a feedback message sent by the map loading module and used for finishing the map drawing.
And 4, step 4: after receiving the message from the radar terminal, the map loading module immediately reads the parameters in the message, draws a map according to the parameters and stores the map in a clipboard, and after the map is drawn, the drawn message is fed back to the terminal in the mode in the step 1;
the map data carrier may have various forms such as a dynamic link library, a packaged class file, an executable program or a simple data file, but the map loading module only has two ways of reading and drawing a map. One is to call an interface appointed with the carrier to acquire map data, and the other is to read the map data directly from a file containing the map data by reading the file or the like. The specific implementation method is determined by the provider of the map data.
Image data are transmitted between the radar terminal and the map loading module by using a clipboard function built in the system. The clipboard built in the system is a continuous memory space which changes with the size of the stored information and is shared by different applications. Most systems have built-in clipboard functionality. No matter what operating system the radar terminal needs to run under, as long as the system has a graphical interface, the requirement can be realized through the function of the clipboard.
The content to be transmitted by the map loading module is a bitmap image, and other local transmission modes need to store the bitmap into a character string according to bytes, then carry out data transmission, and read the bitmap from the character string after receiving. The clipboard can be used for different application programs to directly store and read bitmap data, and the efficiency is higher than that of other transmission modes.
The clipboard is shared by the local application program, and in order to prevent the clipboard from being influenced by other programs or keyboard input in the process communication process, the map loading module stores the map into the clipboard, and then the clipboard is set to be in a read-only state and sends a drawing completion message to the radar terminal until the bitmap is completely read in step 5.
And 5: and the radar terminal reads the bitmap after receiving the message and realizes the related function of loading the map.
After receiving the message sent by the map loading module, the map data can be read from the clipboard and drawn. And releasing the locking state of the clipboard after the reading is finished. The time from storing the bitmap to taking out the bitmap is extremely short, and the operation of other programs is basically not influenced.
The method firstly realizes the modularization of the map loading module, and then realizes the local communication between the map loading module and the radar terminal by combining UDP Socket communication and a clipboard, so that the map loading module and the radar terminal are two modules which are independent from each other, and data exchange can be flexibly and quickly carried out, thereby achieving the purpose of the modularization of the map function. The two inter-process communication modes selected by the method are all multi-platform and multi-system universal, have strong compatibility and are not easily influenced by abnormal conditions (such as memory overflow) generated by other programs. Through testing, the time spent on data transmission in the whole process is very little and is not obviously changed from the time spent before modularization. The method is suitable for terminal reconstruction of active radar and terminal design of novel radar.

Claims (3)

1. A map module software organization method of a radar terminal comprises the following steps:
step 1: the method comprises the steps that a radar terminal and a map loading module run on the same machine, the radar terminal and the map loading module can transmit data through a local loopback address, and a socket communication mode is adopted for message transmission between the radar terminal and the map loading module;
step 2: the map loading module is always in a message waiting state until a request for drawing a map from the radar terminal is received;
and step 3: when the radar terminal is started or the map state of the radar terminal is changed, the radar terminal transmits data to the map loading module through the local loopback address;
and 4, step 4: after receiving the message from the radar terminal, the map loading module immediately reads the parameters of the map database file, draws a map in a bitmap format according to the parameters and stores the map in a clipboard, and transmits the drawn message to the radar terminal through a local loopback address after the drawing is finished;
and 5: and the radar terminal receives and reads the bitmap map to realize the function of loading the map.
2. The map module software organization method of radar terminals according to claim 1, characterized in that: the map data carrier is in the form of a dynamic link library, a packaged class file or an executable program.
3. The map module software organization method of radar terminals according to claim 1, characterized in that: and image data are transmitted between the radar terminal and the map loading module by using a clipboard function built in the system.
CN201611159142.8A 2016-12-15 2016-12-15 Map module software organization method of radar terminal Active CN106850546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611159142.8A CN106850546B (en) 2016-12-15 2016-12-15 Map module software organization method of radar terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611159142.8A CN106850546B (en) 2016-12-15 2016-12-15 Map module software organization method of radar terminal

Publications (2)

Publication Number Publication Date
CN106850546A CN106850546A (en) 2017-06-13
CN106850546B true CN106850546B (en) 2020-04-17

Family

ID=59140269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611159142.8A Active CN106850546B (en) 2016-12-15 2016-12-15 Map module software organization method of radar terminal

Country Status (1)

Country Link
CN (1) CN106850546B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111562951B (en) * 2020-05-11 2022-05-03 电子科技大学 Radar application component service implementation method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438007A (en) * 2011-10-11 2012-05-02 武汉滨湖电子有限责任公司 Virtual bus module organization method of radar terminal
CN103823721A (en) * 2014-02-26 2014-05-28 京信通信***(广州)有限公司 Interprocess communication method and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EA201170293A1 (en) * 2008-07-31 2011-08-30 Джама Текнолоджи Корп. METHOD OF PUBLICATION AND SUBSCRIPTIONS FOR MONITORING OF EVENTS IN THE REAL TIME MODE IN THE SYSTEM FOR MANAGING A SET OF DIFFERENT NETWORKS
CN102291464B (en) * 2011-08-29 2013-11-27 普元信息技术股份有限公司 System and method for dynamically generating Web Service by business flow in BPM (Business Process Management)
CN105842715A (en) * 2016-04-22 2016-08-10 桂林电子科技大学 Beidou positioning and communication integrated universal system and configuration method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438007A (en) * 2011-10-11 2012-05-02 武汉滨湖电子有限责任公司 Virtual bus module organization method of radar terminal
CN103823721A (en) * 2014-02-26 2014-05-28 京信通信***(广州)有限公司 Interprocess communication method and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Windows环境下数据交换及其在C++下的实现;张兴滔;《计算机***应用》;19950131(第1期);第21-25页 *

Also Published As

Publication number Publication date
CN106850546A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN109684054B (en) Information processing method and device, electronic equipment and memory
CN109634728B (en) Job scheduling method and device, terminal equipment and readable storage medium
CN109740222B (en) Testing device and system for automobile networking scene
CN111159049A (en) Automatic interface testing method and system
CN105450476A (en) Regression test system and test method
CN104268074A (en) Application software online debugging method based on DCS
CN110309065B (en) Concurrent execution method, device and equipment of test tasks and storage medium
CN111026634A (en) Interface automation test system, method, device and storage medium
CN103309784B (en) Test system and method for testing
CN112631937A (en) Automatic CAN operation testing method and device for T-Box
CN114465937B (en) Network card testing method, device, server and medium
CN109684148B (en) Airborne embedded software virtual bus communication construction method based on ARINC653
CN106850546B (en) Map module software organization method of radar terminal
CN104219280A (en) Intelligent application data transmission channel
CN113760242A (en) Data processing method, device, server and medium
CN114466047B (en) Method, platform, equipment and medium for conveniently accessing Internet of things equipment to Internet of things platform
CN114675930A (en) Host computer simulation communication instrument
CN113805854A (en) Method, system and device for realizing Hook of application layer based on Linux system and storage medium
CN111124907A (en) Mobile phone game testing method and device and server
CN117130318B (en) Industrial data acquisition method, device, system and readable storage medium
CN114095303B (en) Communication device, data transmission method and electronic device
CN109995587B (en) Communication method and simulation system
CN104331281B (en) A kind of proxy server and method that remote control function is provided for LXI modules
CN111124923B (en) Running state query method and device, server equipment and storage medium
CN115729552A (en) Method and device for setting parallelism of operator level

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
GR01 Patent grant
GR01 Patent grant