Inertial measurement system digital switching value detection device and method thereof
By designing a general inertial testing system switching quantity detection device, using configuration files to manage switching quantity information, decouple the testing process and hardware interface, the problem of wasted resources and long development time during different inertial products is solved, and the rapid and efficient construction of test solutions and improvement of work efficiency is achieved.
Patent Information
- Application Number
- CN202311485483.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-09
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2043-11-09
AI Technical Summary
When testing different inertial products, the inertial testing system needs to be adjusted according to the specific hardware ports and communication protocols of the product, resulting in waste of resources and long development time.
A general inertial measurement system switching quantity detection device is designed, including a monitoring and control display module, a configuration file module, a digital switching quantity analysis combination module and a underlying hardware communication interface module. Through configuration file management, the test process and hardware interface are decoupled to quickly build a test solution.
This device makes the inertial testing system development faster and the testing solution more flexible. It can quickly and efficiently realize the switching quantity detection of different inertial products, significantly improving work efficiency.
Smart Images

Figure CN119958600A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a digital switch quantity detection technology, in particular to a universal detection device and method for digital switch quantity in an inertial measurement system. Background Art
[0002] Digital switch signals are very important for the operation control, status monitoring and fault query of inertial products. In the inertial measurement system, it is generally necessary to test the digital switch quantity of the inertial product in order to confirm the performance of the inertial product. Usually, different inertial products correspond to different switch quantity quantities, related hardware ports, communication protocols, etc. In addition, when the inertial product is working, there will be a certain sequence between the switch quantities or cross-mixing with other signals, which causes the inertial measurement system to require coordination between software and hardware engineers when docking with new inertial products in the early stage, which consumes a lot of time and energy.
[0003] According to the actual workflow of inertial products, the inertial measurement system needs to detect each switch signal one by one in a certain order, and both the input and output must be tested, and the relationship between the input and output must be confirmed, so as to verify the working performance of the inertial product. The inertial measurement system performs targeted tests on each inertial product, and there are the following problems: 1. When the switch port or communication protocol of the same inertial product is changed, the inertial measurement system needs to be changed accordingly; 2. Different inertial products require the inertial measurement system to produce different test plans and test processes, resulting in a waste of resources in the production process. Summary of the invention
[0004] The technical problem solved by the present invention is to provide a universal inertial measurement system switch quantity detection device, through which the inertial measurement system development and test protocol can be isolated, and the test process can be isolated from the inertial product, so that the inertial measurement system test plan can be quickly and efficiently constructed, making the inertial measurement system development faster, the test plan more flexible, and improving work efficiency. The present invention also provides a universal inertial measurement system switch quantity detection method, which also solves the above technical problems.
[0005] A digital switch quantity detection device for an inertial measurement system, comprising a monitoring control display module, a configuration file module, a digital switch quantity analysis and combination module, and a bottom hardware communication interface module;
[0006] The monitoring control display module realizes the switch quantity status, fault display and switch quantity control operation. The displayed content is consistent with the content in the configuration file. The operation control information is transmitted to the digital switch quantity analysis combination module through message transmission. The digital switch quantity analysis combination module combines the digital quantity information configuration content to convert it into the underlying hardware communication information, which is used for the underlying hardware communication interface module to control the inertial product.
[0007] Configuration file module, all switch quantity information is saved in the configuration file for management. Before starting the test, the switch quantity information in the configuration file is loaded into the computer memory for monitoring control display and switch quantity control, as well as underlying hardware communication; the switch quantity information parameter configuration file is loaded, analyzed, and interpreted and stored in the computer memory. Each switch quantity information is managed by a data structure and stored in the memory. All switch quantity information is saved in the system memory in the form of a linked list. When applied, the specified switch quantity information is found by the unique identification number;
[0008] The digital switch quantity analysis and combination module converts the contents in the configuration file into information that can be used for monitoring, control and display by applying the information in the switch quantity chain table, and converts the operation control information in the monitoring, control and display management into the underlying hardware communication interface information through the information in the switch quantity chain table. At the same time, it also converts the switch quantity status information read in real time by the underlying hardware communication module into information that can be used for monitoring, control and display;
[0009] The bottom hardware communication interface module reads the digital switch quantity status of the inertial product in real time and transmits the switch quantity status information to the digital switch quantity analysis combination module; first determine whether the switch quantity status has changed. If there is no change, no processing is performed. If there is a change, the switch quantity information configuration content is used to determine the unique identifier of the change, thereby notifying the monitoring control display module to update the interface display.
[0010] Furthermore, in the monitoring and control display module, the digital quantity information is in the form of digital lights, which are displayed in bright or dark according to the state of the switch quantity, so that the user can confirm the current state of the switch quantity; for the input switch quantity, only the current state is displayed; for the output switch quantity, both the state is displayed and the opening or closing of the switch quantity is controlled in the display interface.
[0011] Furthermore, in the configuration file module, the switch quantity information configuration content includes serial number, port / bit number, name, valid state, type, and remarks.
[0012] Furthermore, the underlying hardware communication interface module, through the method of class and inheritance, enables the module to adaptively match the corresponding hardware driver interface to control the digital switch quantity of the inertial product when applied.
[0013] The detection method using the above-mentioned inertial measurement system digital switch quantity detection device comprises:
[0014] Input switch quantity display: After the configuration file is loaded and the interface is initialized, the underlying hardware interface module reads the switch quantity status of the inertial product in real time and passes the switch quantity status to the switch quantity analysis and packaging module; the switch quantity analysis and packaging module determines whether the switch quantity status has changed. If the switch quantity status has not changed, no processing is performed; if the switch quantity status has changed, the changed switch quantity information is determined according to the switch quantity port number / bit number and switch quantity type, and the monitoring control display module is notified to update the interface information. The monitoring control display module changes the switch quantity status to make the indicator light corresponding to the switch quantity turn on or off. The whole process is repeated until the user stops the test;
[0015] Output switch quantity control: After the configuration file is loaded and the interface is initialized, the user selects an output switch quantity on the interface to control its state to change; the monitoring control display module transmits the change to the digital switch quantity analysis combination module through message passing, and the digital switch quantity analysis combination module converts it according to the switch quantity type and port / bit number information and sends it to the underlying hardware interface module; the underlying hardware interface module adaptively matches the corresponding hardware driver interface according to the switch quantity type to control the switch quantity state of the inertial product.
[0016] The beneficial effects of the present invention are:
[0017] The switch quantity detection device and method based on parameter configuration proposed in the present invention can quickly and efficiently realize the switch quantity detection of different inertial products by configuring parameters, effectively shortening the switch quantity detection implementation time. It can free up the work of software personnel in the early stage of inertial product docking, greatly improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Architecture diagram;
[0019] Figure 2 Switch quantity information;
[0020] Figure 3 Switch quantity information linked list;
[0021] Figure 4 Functional decomposition of digital switch quantity analysis combination module;
[0022] Figure 5 Switch configuration file loading process;
[0023] Figure 6 Switch quantity detection workflow;
[0024] Figure 7 DI and DO module interface display diagram. DETAILED DESCRIPTION
[0025] The present invention will be further described below in conjunction with the accompanying drawings.
[0026] The digital switch quantity detection device of the inertial measurement system of the present invention is mainly composed of four parts: monitoring control display module, digital switch quantity analysis and combination module, configuration file module, and bottom hardware communication interface module. Figure 1 .
[0027] The monitoring control display module mainly realizes the switch quantity status, fault display and switch quantity control operation. The digital quantity information is designed in the form of digital lights, which can be displayed in bright or dark according to the switch quantity status, so that users can confirm the current switch quantity status. For the input switch quantity, only the current status needs to be displayed; for the output switch quantity, the status can be displayed, and the switch quantity can be turned on or off intuitively in the display interface. The content displayed by the monitoring control display module is consistent with the content in the configuration file management. When the user changes the content in the configuration file, the content in the monitoring control display module will change accordingly.
[0028] All switch quantity information is saved in the configuration file for management. Before starting the test, the switch quantity information in the configuration file is loaded into the computer memory for monitoring, control, display and switch quantity control, and also for the underlying hardware communication. The switch quantity information parameter configuration content is shown in Table 1. The switch quantity information parameter configuration file is loaded, analyzed, and interpreted and stored in the computer memory. Each switch quantity information is managed by a data structure and stored in the memory. All switch quantity information is saved in the system memory in the form of a linked list. The storage method in the memory is shown in Table 1. Figure 2 , Figure 3 When applied, the specified switch quantity information can be found through the unique identification number.
[0029] Table 1 Switch parameter configuration
[0030]
[0031] The underlying hardware communication interface module mainly encapsulates two different hardware driver interfaces for two types of switch quantities. Through the class and inheritance method, the module can adaptively match the corresponding hardware driver interface to control the digital switch quantity of the inertial product when applied. The underlying hardware communication interface module reads the digital switch quantity status of the inertial product in real time and passes the switch quantity status information to the digital switch quantity analysis combination module.
[0032] The main function of the digital switch quantity analysis combination module is to convert the content in the configuration file into information that can be used for monitoring, control and display by applying the information in the switch quantity chain table, and to convert the operation control information in the monitoring, control and display management into the underlying hardware communication interface information through the information in the switch quantity chain table. At the same time, it also converts the switch quantity status information read in real time by the underlying hardware communication module into information that can be used for monitoring, control and display. The main functions of the digital switch quantity analysis combination are shown in Figure 4 .
[0033] The digital switch quantity analysis and combination module converts the content in the configuration file into information that can be used for monitoring, control and display. It mainly traverses the switch quantity chain list and displays the names of all switch quantity information in the monitoring, control and display module. The unique identifier can quickly and effectively find relevant information in the chain list. The digital switch quantity analysis and combination module establishes a mutual connection between the information displayed in the monitoring, control and display module and the switch quantity information.
[0034] The operation control information in the monitoring control display module is transmitted to the digital switch quantity analysis combination module through message transmission. The digital switch quantity analysis combination module converts it into the underlying hardware communication information according to the digital quantity type, port / bit number and other information, so as to facilitate the underlying hardware communication interface module to control the inertial product.
[0035] The bottom hardware communication interface module reads the switch quantity status of the inertial product in real time and passes it to the digital switch quantity analysis combination module. The digital switch quantity analysis combination module first determines whether the switch quantity status has changed. If there is no change, no processing is performed. If there is a change, the port number / bit number and type are used to determine the unique identifier of the change, thereby notifying the monitoring control display module to update the interface display.
[0036] The present invention also provides a switch quantity detection working method. Figure 6 , the working process is divided into two parts: input switch quantity display and output switch quantity control.
[0037] 1. Input switch quantity display process: After the configuration file is loaded and the interface is initialized, the underlying hardware interface module reads the switch quantity status of the inertial product in real time and passes the switch quantity status to the switch quantity analysis and packaging module. The switch quantity analysis and packaging module determines whether the switch quantity status has changed. If the switch quantity status has not changed, no processing is performed. If the switch quantity status has changed, the changed switch quantity information is determined according to the switch quantity port number / bit number and switch quantity type, and the monitoring control display module is notified to update the interface information. The monitoring control display module changes the switch quantity status to make the indicator light corresponding to the switch quantity on or off. The whole process is repeated until the user stops the test.
[0038] 2. Output switch quantity control process: After the configuration file is loaded and the interface is initialized, the user selects a certain output switch quantity in the interface to control its state change. The monitoring control display module transmits the change to the digital switch quantity analysis combination module through message transmission. The digital switch quantity analysis combination module converts it according to the switch quantity type, port / bit number and other information and sends it to the underlying hardware interface module. The underlying hardware interface module adaptively matches the corresponding hardware driver interface according to the switch quantity type to control the switch quantity state of the inertial product.
[0039] The following is a specific embodiment:
[0040] The digital switch quantity detection device of the inertial measurement system of the present invention mainly consists of four parts: Figure 1 As shown, it includes a monitoring control display module, a digital switch quantity analysis and combination module, a configuration file module, and a bottom hardware communication interface module.
[0041] First follow Figure 2 The switch quantity information content shown is used to compile the switch quantity configuration file information. For details, please refer to Table 2, Table 3, Table 4, and Table 5.
[0042] Table 2 DI0
[0043]
[0044]
[0045] Table 3 DI1
[0046] Serial number Port / Bit Number name Valid status type 1 0 Insurance agency power supply 1 (DI) 1 0 Di 2 1 Insurance power supply 2 (DI) 1 0 Di 3 2 Secondary release 1(DI) 1 0 Di 4 3 Secondary release 2 (DI) 1 0 Di 5 4 Long-distance release 1 (DI) 1 0 Di 6 5 Long-distance release 2 (DI) 1 0 Di 7 6 Device separation (DI) 1 0 Di 8 7 Disconnection (DI) 1 0 Di 9 8 Battery activated power supply 1 (DI) 1 0 Di 10 9 Battery activated power supply 2 (DI) 1 0 Di 11 10 Main battery power (DI) 1 0 Di 12 11 Servo battery power supply (DI) 1 0 Di 13 12 Engine I (DI) 1 0 Di 14 13 Engine I2 (DI) 1 0 Di 15 14 Engine Dipulse 1 (DI) 1 0 Di 16 15 Engine Dipulse 2 (DI) 1 0 Di
[0047] Table 4 DO0
[0048]
[0049]
[0050] Table 5DO1
[0051]
[0052]
[0053] Before the test starts, press Figure 5 The switch configuration file loading process loads all switch configuration file information. After reading a switch information in the configuration file, it generates a switch information object after parsing. The switch information object is managed in a memory linked list. During the switch configuration file loading process, a memory index number, i.e. a unique identification number, is added for switch information query. The form of the linked list in memory is shown in Figure 3 .
[0054] Initialize the interface according to the linked list information, and finally form an interface such as Figure 7 shown.
[0055] From the above implementation examples, it can be seen that the switch quantity related parameters are all in the configuration file, and the configuration file is dynamically loaded before testing, so there is no need to worry about changes in the switch quantity port / bit number, type, etc., which simplifies the workload.
[0056] The characteristics of the present invention are as follows:
[0057] 1) All switch parameters are saved in the configuration file. The parameter configuration file can be dynamically configured according to different test requirements. Once the switch parameters are changed, you only need to reconfigure the parameter file according to the change requirements;
[0058] 2) The monitoring control display interface is dynamically generated according to the configuration file, which is convenient for software development or users to change the switch detection scheme, and does not rely on other software and hardware content;
[0059] 3) The switch quantity information is managed in an object manner and stored in a data linked list. Each object has a unique index number for easy query, which improves the real-time performance of the test;
[0060] 4) Different types of switch quantities can be managed in a unified manner and adaptively matched to different hardware driver interfaces, thereby meeting the specific requirements of most switch quantity detections, making the application of the present invention more extensive.
[0061] The above description of the preferred embodiments of the present invention is merely exemplary in nature and is not intended to limit the present invention, its application or use. Therefore, the protection scope of the present invention is not limited to these schemes and details. Without departing from the basic principles of the present invention, those skilled in the art can make modifications or equivalent substitutions to these schemes and details, and the modified or substituted embodiments will also fall within the protection scope of the present invention.
Claims
1. A digital switch quantity detection device for an inertial measurement system, characterized in that: It includes monitoring control display module, configuration file module, digital switch quantity analysis combination module, and bottom hardware communication interface module; The monitoring control display module realizes the switch quantity status, fault display and switch quantity control operation. The displayed content is consistent with the content in the configuration file. The operation control information is transmitted to the digital switch quantity analysis combination module through message transmission. The digital switch quantity analysis combination module combines the digital quantity information configuration content to convert it into the underlying hardware communication information, which is used for the underlying hardware communication interface module to control the inertial product. Configuration file module: all switch quantity information is saved in the configuration file for management. Before starting the test, the switch quantity information in the configuration file is loaded into the computer memory for monitoring control display and switch quantity control, as well as underlying hardware communication; The switch quantity information parameter configuration file is loaded, analyzed, interpreted and stored in the computer memory. Each switch quantity information is managed by a data structure and stored in the memory. All switch quantity information is saved in the system memory in the form of a linked list. When applied, the specified switch quantity information is found by the unique identification number. The digital switch quantity analysis and combination module converts the contents in the configuration file into information that can be used for monitoring, control and display by applying the information in the switch quantity chain table, and converts the operation control information in the monitoring, control and display management into the underlying hardware communication interface information through the information in the switch quantity chain table. At the same time, it also converts the switch quantity status information read in real time by the underlying hardware communication module into information that can be used for monitoring, control and display; The bottom hardware communication interface module reads the digital switch quantity status of the inertial product in real time and transmits the switch quantity status information to the digital switch quantity analysis combination module; first determine whether the switch quantity status has changed. If there is no change, no processing is performed. If there is a change, the switch quantity information configuration content is used to determine the unique identifier of the change, thereby notifying the monitoring control display module to update the interface display.
2. The digital switch quantity detection device of the inertial measurement system according to claim 1, characterized in that: Monitoring control display module, digital quantity information is in the form of digital lights, which are displayed in bright or dark according to the switch quantity status, so that users can confirm the current switch quantity status; for input switch quantity, only the current status is displayed; for output switch quantity, both the status is displayed and the switch quantity is turned on or off in the display interface.
3. The digital switch quantity detection device of the inertial measurement system according to claim 1, characterized in that: Configuration file module, the switch information configuration content includes serial number, port / bit number, name, valid state, type, and remarks.
4. The digital switch quantity detection device of the inertial measurement system according to claim 1, characterized in that: The underlying hardware communication interface module uses classes and inheritance to enable the module to adaptively match the corresponding hardware driver interface to control the digital switch quantity of the inertial product when applied.
5. A detection method using the inertial measurement system digital switch quantity detection device according to any one of claims 1 to 4, characterized in that: include: Input switch quantity display: After the configuration file is loaded and the interface is initialized, the underlying hardware interface module reads the switch quantity status of the inertial product in real time and passes the switch quantity status to the switch quantity analysis and packaging module; The switch quantity analysis and packaging module determines whether the switch quantity state has changed. If the switch quantity state has not changed, no processing is performed; if the switch quantity state has changed, the changed switch quantity information is determined according to the switch quantity port number / bit number and the switch quantity type, and the monitoring control display module is notified to update the interface information. The monitoring control display module changes the switch quantity state to make the indicator light corresponding to the switch quantity turn on or off. The whole process is repeated until the user stops the test; Output switch quantity control: After the configuration file is loaded and the interface is initialized, the user selects an output switch quantity on the interface to control its state to change; the monitoring control display module transmits the change to the digital switch quantity analysis combination module through message passing, and the digital switch quantity analysis combination module converts it according to the switch quantity type and port / bit number information and sends it to the underlying hardware interface module; the underlying hardware interface module adaptively matches the corresponding hardware driver interface according to the switch quantity type to control the switch quantity state of the inertial product.
Citation Information
Patent Citations
Fault detection method of inertial system state selector
CN101929871A
Document-Oriented Monitoring Information Display Software System and Design Methodology
CN102279747A
Automatic testing system and method based on Linux
CN108732443A
Configurable general test platform for inertial product
CN115683158A
General test system for inertial product
CN115683160A