Equipment communication software graphical generation system and method

Through the graphic generation system of the device communication software, the modular design and graphical interface are used to dynamically generate ICDs and configure communication channels, solving the problem of repeated development of device communication software in software development, and achieving rapid generation and flexible expansion of communication software.

CN119847508APending Publication Date: 2025-04-18CHENGDUSCEON TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411968414.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

During the software development process, device communication software needs to be written according to different interface types and data protocols, resulting in each device communication software that needs to be redeveloped and consumes a lot of human resources.

Method used

Provides a graphical generation system for device communication software, including ICD generation module, communication channel configuration module, device management module, message processing configuration module and code generation module. Through graphical interface and modular design, ICDs are dynamically generated, communication channels and device relationships are configured, and communication codes are automatically generated.

Benefits of technology

It realizes the rapid generation and configuration of device communication software, reduces the consumption of human resources, supports dynamic expansion of new communication methods, and improves software development efficiency and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847508A_ABST
    Figure CN119847508A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment communication software graphical generation system and method, and the system comprises the steps: an ICD generation module records a simulator interface, and generates a corresponding ICD C + + class file according to the interface recorded by a user; the communication channel configuration module configures a communication channel for the simulator or the message exciter to communicate with the outside; the equipment management module is used for managing external equipment needing to be communicated by the equipment communication software graphical generation tool; the message processing configuration module processes the processing logic of each message; and the code generation module automatically generates a compilable project file and automatically completes compiling according to the configuration of each configuration module, and a user directly runs the compiled software and tests the software project of the user. According to the scheme, the dynamically generated ICD, the communication channel, the configuration mode of associating the devices through user operation and the communication type are dynamically expanded through the implementation plug-in.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software development, and in particular to a graphical generation system and method for device communication software. Background Art

[0002] The software development process involves data intercommunication with other systems. Software developers need to write communication software according to different interface types and data protocols. Redeveloping the communication software for each device will consume a lot of human resources. Summary of the invention

[0003] In view of the above technical problems, the present invention provides a graphical generation system and method for device communication software.

[0004] The present invention is implemented by adopting the following technical scheme: a graphical generation system of device communication software, comprising the following modules: ICD generation module: Input simulator interface. The user inputs the specific information of all peer interface messages that communicate with the current device according to the interface protocol. The ICD generation module generates the corresponding ICD C++ class file based on the interface input by the user. Communication channel configuration module: configures the communication channel between the simulator or message stimulator and the external communication, and the user edits the channel type and communication parameters; Device management module: manages the external devices that the device communication software graphical generation tool needs to communicate with, and the user is responsible for setting the communication channel between each device and the specific ICD class that each channel needs to send and receive; Message processing configuration module: handles the processing logic of each message and is edited by the user; Code generation module: According to the configuration of each configuration module, it automatically generates compilable project files and automatically completes the compilation. Users can directly run the compiled software to test their own software projects.

[0005] Specifically, the system also includes an interface module, which provides a UI for user input, guides the user to perform each step of the operation in the form of a flowchart, and allows the user to return to the previous step for re-editing at any time.

[0006] Specifically, the specific information of the ICD generation module interface message includes the transmitted data type, data length and sequence information.

[0007] Specifically, the types of channels edited by the communication channel configuration module user include UDP, TCP and serial port.

[0008] Specifically, the communication channel configuration module further includes: for non-built-in channel types, the user derives and extends them according to a unified interface file.

[0009] Specifically, the processing logic of each message of the message processing configuration module includes the processing logic of each ICD, setting the message identification character, and when the message identification character is an initialization connection, the processing logic is to send the defined ICD structure.

[0010] Specifically, the ICD structure includes a start character, a message length, a message identifier, a switched channel number, a CRC check, and an end character.

[0011] The device communication software graphical generation method is implemented based on the device communication software graphical generation system, and includes the following steps: Create a new simulator project in the system and enter ICD in the new project; Configure the communication channels required for communication in the project and configure the corresponding communication parameters; Edit the communication device and add the ICD that sends and receives through the channel to the configured channel; Edit the device communication relationship and set the processing mode of each ICD, including which ICD to use to respond to the received message and which ICD to send periodically; Configure the path information for the generated project and generate the project, and use the generated project for testing.

[0012] The beneficial effects of the present invention are as follows: the configuration mode in which the dynamically generated ICD, communication channel and equipment are associated through user operation; the communication type is dynamically expanded by implementing a plug-in; the external connection relationship of the communication software is drawn in a graphical manner; according to the user's entry of the system interface, the interface control file code that can be used for software development is automatically generated; according to the user's description of the communication relationship between systems, the corresponding communication code is automatically generated; through the method of graphic dragging, the processing of each message is simply logically processed; the generated communication software can automatically receive and process various messages sent by other systems, and automatically forward messages, respond or process services according to the configuration relationship; for new communication methods, dynamic expansion can be carried out in the form of interface plug-ins. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0014] Figure 1 The figure is a schematic diagram of the graphical generation process of the device communication software in an embodiment of the present invention. DETAILED DESCRIPTION

[0015] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0016] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0017] The following is combined with Figure 1 , some embodiments of the present invention are described in detail. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0018] The present invention proposes a device communication software graphical generation system, comprising the following modules: ICD generation module: Input simulator interface. The user inputs the specific information of all peer interface messages that communicate with the current device according to the interface protocol. The ICD generation module generates the corresponding ICD C++ class file based on the interface input by the user. Communication channel configuration module: configures the communication channel between the simulator or message stimulator and the external communication, and the user edits the channel type and communication parameters; Device management module: manages the external devices that the device communication software graphical generation tool needs to communicate with, and the user is responsible for setting the communication channel between each device and the specific ICD class that each channel needs to send and receive; Message processing configuration module: handles the processing logic of each message and is edited by the user; Code generation module: According to the configuration of each configuration module, it automatically generates compilable project files and automatically completes the compilation. Users can directly run the compiled software to test their own software projects.

[0019] In this embodiment, the system further includes an interface module, which provides a UI for user input, guides the user to perform each step of the operation in the form of a flowchart, and allows the user to return to the previous step for re-editing at any time.

[0020] In this embodiment, specific information of the ICD generation module interface message includes the type of data to be transmitted, data length, and sequence information.

[0021] In this embodiment, the types of channels edited by the communication channel configuration module user include UDP, TCP and serial port.

[0022] In this embodiment, the communication channel configuration module further includes: for non-built-in channel types, the user derives and expands them according to a unified interface file.

[0023] In this embodiment, the processing logic of each message of the message processing configuration module includes the processing logic of each ICD, and the message identification character is set. When the message identification character is the initialization connection, the processing logic is to send the defined ICD structure.

[0024] In this embodiment, the ICD structure includes a start character, a message length, a message identifier, a switched channel number, a CRC check, and an end character.

[0025] The present invention also proposes a method for graphically generating device communication software. Figure 1 As shown, the following steps are included: Create a new simulator project in the system and enter ICD in the new project; Configure the communication channels required for communication in the project and configure the corresponding communication parameters; Edit the communication device and add the ICD that sends and receives through the channel to the configured channel; Edit the device communication relationship and set the processing mode of each ICD, including which ICD to use to respond to the received message and which ICD to send periodically; Configure the path information for the generated project and generate the project, and use the generated project for testing.

[0026] In one embodiment, the present invention graphically draws the external connection relationship of the communication software, automatically generates the interface control file code that can be used for software development according to the user's entry of the system interface, and automatically generates the corresponding communication code according to the user's description of the communication relationship between the systems. By dragging the graphics, simple logical processing is performed on the processing of each message. The generated communication software can automatically receive and process various messages sent by other systems, and automatically forward messages, respond or process business according to the configuration relationship. For new communication methods, dynamic expansion can be performed in the form of interface plug-ins.

[0027] The technical solutions to the above technical problems are as follows: When designing the device communication software graphical generation tool, the software functions are divided into six parts: ICD generation module, communication channel configuration module, device management module, message processing configuration module, code generation module, and interface: The ICD generation module is responsible for entering the simulator interface. The user enters the specific information of all peer interface messages that communicate with the current device according to the interface protocol (transmitted data type, length, sequence, etc.). The ICD generation module generates the corresponding ICD C++ class file based on the interface entered by the user.

[0028] The communication channel configuration module is responsible for configuring the communication channel between this simulator / message stimulator and the external communication. The user edits the channel type (UDP / TCP / serial port, etc.) and communication parameters. For non-built-in channel types, the user can derive and expand them according to the unified interface file.

[0029] The device management module is responsible for managing the external devices that the device communication software graphical generation tool needs to communicate with. The user is responsible for setting the communication channel between each device and the specific ICD class that each channel needs to send and receive (specific to each message that needs to be communicated).

[0030] The message processing configuration module is responsible for processing the processing logic of each message and is edited by the user. It mainly includes the processing logic of each ICD, such as which messages are sent periodically and which messages are sent in response.

[0031] The code generation module is responsible for automatically generating compilable project files and automatically completing the compilation according to the above configuration. Users can directly run the compiled software to test their own software projects.

[0032] The interface part provides a UI for user input, guiding users to perform each step of the operation in the form of a flowchart, and users can return to the previous step for re-editing at any time.

[0033] Taking an HF anti-aircraft station communicator as an example, the HF anti-aircraft station communicator is used as a test tool for shortwave network controllers, mainly simulating shortwave anti-aircraft stations and airborne platforms in a shortwave ground-to-air networking system.

[0034] Key features: Simulate and generate a complete set of messages sent from the shortwave air station to the shortwave network controller; Simulate air interface messages sent from aerial platforms to the ground; Supports RS232 serial port and UDP to communicate with shortwave network controller; Automatically respond to various messages sent by the shortwave network controller.

[0035] In this embodiment, the implementation process includes: a. Create a new HF air station and air platform simulator project in the equipment communication software graphical generation tool; b. Enter the ICD message between the shortwave network controller and the shortwave air station and air platform in the new construction project; c. Configure the communication channels required for communication in the project, namely one UDP channel and one RS232 serial port channel, and configure the corresponding communication parameters; d. Add a shortwave network controller device in the device editing, and configure the UDP channel and RS232 channel generated in step c) as the communication channels for this device; e. Add the ICDs for sending and receiving through the configured UDP channel and RS232 channel. The ICDs are selected from the ICD files configured in step b); f. Edit the processing methods of each ICD set in step e), including which ICD is used to respond to the received message and which ICDs are sent periodically; g. Click to generate the project and configure information such as the path for generating the project; h. Use the generated HF air-to-ground communicator for testing.

[0036] In one embodiment, the ICD instance: The ICD format for the command to switch the radio channel is shown in Table 1: Table 1

[0037] The automatically generated ICD class declaration for this ICD is as follows: class CICD_SET_CHANNEL: public CBinaryObject { public: / / / <Convert the structure to memory bool Para2Data(s_byte* pData, s_uint32 nSize); / / / <Convert the memory stream to the structure bool Data2Para(s_byte* pData, s_uint32 nSize); public: s_byte m_ucStarFlag; / / / <Start character, fixed value 0xC0 s_uint16 m_usMsgLen; / / / <Message length s_byte m_ucMsgType; / / / <Message identifier, fixed value 0xC2 s_byte m_ucChannel; / / / <Channel number to be switched, value range 0~99 s_byte m_ucCRC; / / / <CRC check s_bytem_ucStarFlag; / / / <End character, fixed value 0xC0 } Set the message processing logic through the interface: set the message identification character to the 4th character (message identifier). When the fourth message character is 0xC1 (indicating initialization of the connection), the processing logic is to send the structure CICD_SET_CHANNEL defined above.

[0038] The technical feature of the present invention is that it can generate the source code of the communication software graphically, and can be used by users without software development background to complete the target software communication configuration, message sending and receiving logic settings and generate software source code in a graphical way. The communication software can be quickly built through this tool during the development of the communication system, and secondary development is supported to meet the customization needs of users.

[0039] For the aforementioned embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily required by the present application.

[0040] The above embodiments describe the basic principles and main features of the present invention and the advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the changes and modifications made by those skilled in the art shall be within the scope of protection of the appended claims of the present invention without departing from the spirit and scope of the present invention.

Claims

1. A graphical generation system for device communication software, characterized in that: Includes the following modules: ICD generation module: Input simulator interface. The user inputs the specific information of all peer interface messages that communicate with the current device according to the interface protocol. The ICD generation module generates the corresponding ICD C++ class file based on the interface input by the user. Communication channel configuration module: configures the communication channel between the simulator or message stimulator and the external communication, and the user edits the channel type and communication parameters; Device management module: manages the external devices that the device communication software graphical generation tool needs to communicate with, and the user is responsible for setting the communication channel between each device and the specific ICD class that each channel needs to send and receive; Message processing configuration module: handles the processing logic of each message and is edited by the user; Code generation module: According to the configuration of each configuration module, it automatically generates compilable project files and automatically completes the compilation. Users can directly run the compiled software to test their own software projects.

2. The device communication software graphical generation system according to claim 1, characterized in that: The system also includes an interface module, which provides a UI for user input, guides the user to perform each step of the operation in the form of a flow chart, and allows the user to return to the previous step for re-editing at any time.

3. The device communication software graphical generation system according to claim 1, characterized in that: The specific information of the ICD generation module interface message includes the transmitted data type, data length and sequence information.

4. The device communication software graphical generation system according to claim 1, characterized in that: The communication channel configuration module allows users to edit channel types including UDP, TCP and serial port.

5. The device communication software graphical generation system according to claim 4, characterized in that: The communication channel configuration module also includes: for non-built-in channel types, the user derives and expands them according to a unified interface file.

6. The device communication software graphical generation system according to claim 1, characterized in that: The processing logic of each message of the message processing configuration module includes the processing logic of each ICD, setting the message identification character, and when the message identification character is the initialization connection, the processing logic is to send the defined ICD structure.

7. The device communication software graphical generation system according to claim 6, characterized in that: The ICD structure includes a start character, a message length, a message identifier, a switched channel number, a CRC check, and an end character.

8. A method for graphically generating device communication software, implemented based on the device communication software graphical generation system according to any one of claims 1 to 7, characterized in that: The following steps are involved: Create a new simulator project in the system and enter ICD in the new project; Configure the communication channels required for communication in the project and configure the corresponding communication parameters; Edit the communication device and add the ICD that sends and receives through the channel to the configured channel; Edit the device communication relationship and set the processing mode of each ICD, including which ICD to use to respond to the received message and which ICD to send periodically; Configure the path information for the generated project and generate the project, and use the generated project for testing.