Search

CN-122018894-A - Monitoring receiver service type software architecture, design method and application

CN122018894ACN 122018894 ACN122018894 ACN 122018894ACN-122018894-A

Abstract

The invention belongs to the technical field of electronic measurement software development platforms, and particularly relates to a monitoring receiver service type software architecture, a design method and application. The service system comprises a service architecture module, a general service module and an auxiliary tool module, wherein gRPC services and clients support asynchronous, synchronous and streaming communication modes, serial, parallel and streaming communication of the services is achieved, communication details and communication resource management are packaged, gRPC services and clients are respectively designed and independently communicate, the services and the clients are associated with a Qt signal slot mechanism through a Qt event mechanism, the Web Socket services and the clients uniformly transmit final service processing to gRPC services, and the Web Socket services respond to multithread design. The invention provides a monitoring receiver software architecture based on a service architecture, which realizes reasonable decomposition of architecture functional modules, improves flexibility, improves development efficiency of software, and is beneficial to continuous optimization and platformization.

Inventors

  • MA FENGJUN
  • HE XIAOYU
  • ZHAO QIANG

Assignees

  • 中电科思仪科技股份有限公司

Dates

Publication Date
20260512
Application Date
20260108

Claims (10)

  1. 1. A monitoring receiver services software architecture, comprising: The service architecture module is used for providing service management and communication capacity and comprises a service manager, gRPC service and clients and Web Socket service and clients, wherein the service manager supports registration, cancellation and information inquiry functions of the service, gRPC service and clients support asynchronous, synchronous and streaming communication modes, serial, parallel and streaming communication of the service is realized, communication details and communication resource management are packaged, gRPC service and clients are respectively designed and independently communicated, the service and clients are associated with a Qt signal slot mechanism through a Qt event mechanism, the service and clients provide a universal data interface, the Web Socket service and clients uniformly transmit final service processing to gRPC service, and the Web Socket service and clients internally adopt a multithreading design responded by the Web Socket service; A general service module for providing a directly usable public service for various measuring instruments; the auxiliary tool module comprises a service engineering guide and a service application program guide, and generates a service engineering file and a service source code, and an application program engineering file and a source code respectively; The data format of the service communication supports JSON, SCPI, RAW three formats, and the RAW data includes a 32-bit unsigned integer magic number for identifying the data.
  2. 2. The architecture of claim 1, wherein the service manager implements registration, de-registration and information query functions for services based on namespaces, names, labels of the services.
  3. 3. The architecture of claim 1, wherein gRPC client implements a read-write bi-directional streaming operation through dedicated Stream threads, and sends an asynchronous response event to a gRPC client asynchronous connection object in gRPC client asynchronous helper threads through dedicated asynchronous response release events and Qt event mechanisms, releasing communication resources.
  4. 4. The architecture of claim 1, wherein gRPC server performs a read-write bi-directional streaming operation through dedicated Stream processing objects, and sends signals to gRPC service serial processing connection objects in gRPC service serial processing threads through dedicated gRPC service serial processing threads and Qt signal sink mechanisms.
  5. 5. The monitoring receiver service type software architecture according to claim 1, wherein the Web Socket server side realizes multithreaded service response through a special WebSocekt connection object and thread, and finally transfers the request to gRPC service for processing through a special WebSocket service, so as to realize normalization processing of the service.
  6. 6. The architecture of claim 1, wherein the auxiliary tool module generates service engineering files and customizes service functions by a user through a service engineering wizard, and configures service paths by the service application wizard, compiling the service application.
  7. 7. The method for designing a service-oriented software architecture of a monitoring receiver according to any one of claims 1 to 6, wherein the service-oriented software architecture is developed based on gRPC and WebSocket technologies, then service classification is performed according to characteristics of the monitoring receiver, and then each functional module in the monitoring receiver software architecture is decomposed and reassembled into the service-oriented software architecture according to the service-oriented architecture.
  8. 8. The method of claim 7, wherein the service classes include instrumentation services, custom services, and generic services, the instrumentation services including display interaction services, resident control services, measurement analysis services, data storage services, and status monitoring services, display interaction services corresponding to interface layers, resident control services, measurement analysis services, and status monitoring services corresponding to business layers, and data storage services corresponding to data layers.
  9. 9. The design method according to claim 7, wherein the identification is responsible for or not required by the original data when the magic number of the RAW format data is 0.
  10. 10. The application of a monitoring receiver-service-type software architecture according to any of claims 1-6, applied to a monitoring receiver-software development platform consisting of a service architecture, auxiliary tools and generic services.

Description

Monitoring receiver service type software architecture, design method and application Technical Field The invention belongs to the technical field of electronic measurement software development platforms, and particularly relates to a monitoring receiver service type software architecture, a design method and application. Background The service is a software functional module deployed in the network, which provides functions in the form of "service" through the network, and implements complex functions such as management, service interaction, etc. through service specifications agreed with each other, until it can be combined into one complete instrument software. The existing software development tool is used for developing services, or is used for realizing single discrete services, and is not considered for combined use among the services, so that a communication solution among the services cannot be provided, or the existing software architecture based on the services is usually used for an e-commerce cluster, the requirements on resources are huge, the application of the electronic measurement instrument is far different, and the hardware cost cannot be born. The software architecture of the monitoring receiver is developed by adopting discrete services, and management specifications, communication specifications and business specifications of the services need to be designed from scratch, which leads to the increase of development difficulty, complexity and workload and also causes the increase of post code maintenance cost. The monitoring receiver is a highly precise and complex electronic measuring instrument, which needs to continuously collect data at high speed, analyze suspicious signals and then monitor the suspicious signals in a seamless manner, and can store the collected and analyzed data in a magnetic disk for secondary analysis by third party software in future. The device is limited by the restriction of the hardware and software resources of the device and the continuous change of the monitoring environment, the device can not analyze all signals on site, or store data infinitely, and is limited to use scenes, and the hardware and the software of the device are not convenient to upgrade frequently. The above reasons limit the use of receivers, especially in the field of maintaining electromagnetic security in society and countries. In the software architecture design of the monitoring receiver, the architecture consistency is insufficient, the flexibility is poor, the decomposition and the combination are inconvenient, and the development of a software platform is not facilitated. At present, in a domestic software development platform, there is a distributed micro-service framework of intelligent and phenanthrene technology group limited company, which is a quick service development platform based on Qt, and the product focuses on generality, and does not have the specific design and optimization for the electronic measurement field, for example, does not relate to the special concepts of the fields such as instruments, monitoring receivers, analysis services, data storage services and the like. Meanwhile, a software development platform aiming at the electronic measurement field is not found abroad, and a service type software architecture and a software development platform aiming at the monitoring receiver are not found. Disclosure of Invention In order to solve the problems in the prior art, the invention provides a service type software architecture of a monitoring receiver, a design method and application, which reasonably decompose each functional module in the software architecture of the monitoring receiver into a group of organically cooperated services conforming to the specifications, and normalize the communication rules and data formats among the services. The normative designs realize the consistency of the framework, realize the decomposition and flexibility of the framework, and are favorable for the continuous optimization of the framework along with the development of industry. The technical scheme adopted by the invention for solving the technical problems is as follows, the monitoring receiver service type software architecture comprises: The service architecture module is used for providing service management and communication capacity and comprises a service manager, gRPC service and clients and Web Socket service and clients, wherein the service manager supports registration, cancellation and information inquiry functions of the service, gRPC service and clients support asynchronous, synchronous and streaming communication modes, serial, parallel and streaming communication of the service is realized, communication details and communication resource management are packaged, gRPC service and clients are respectively designed and independently communicated, the service and clients are associated with a Qt signal slot mechanism through a Qt event mechanism, the ser