Signal interfacing method, apparatus, device, and storage medium

By setting a signal conversion rule definition module in the display and control system simulation unit, conversion processing is performed for different types of signals, solving the problems of program adjustment and testing verification when docking the cockpit simulation system with the real aircraft system, and achieving efficient signal docking.

CN118734425BActive Publication Date: 2025-12-19BEIJING BLUESKY AVIATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410614326.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2025-12-19
Estimated Expiration
2044-05-17

AI Technical Summary

Technical Problem

When existing flight simulator cockpit simulation systems interface with real aircraft systems, it is necessary to adjust the program architecture and conduct testing and verification of hardware equipment and interface systems. This involves a wide range of aspects, many processing steps, a large workload, and a long cycle.

Method used

By adding a signal conversion rule definition module to the display and control system simulation unit, different conversion rules can be set for different types of signals, thereby realizing signal type conversion processing and adapting to transmission frequencies and interface protocols without modifying the cockpit simulation equipment.

Benefits of technology

This reduces the workload of signal docking, shortens the processing cycle, and avoids adjustments to the program architecture and testing verification of the cockpit simulation equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734425B_ABST
    Figure CN118734425B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of signal processing, and provides a signal docking method, a signal docking device, equipment and a storage medium, the method comprises the following steps: obtaining to-be-docked signals between a flight simulator cockpit simulation device and a real machine system, obtaining corresponding signal conversion rules according to the signal types of the to-be-docked signals, and performing conversion processing on the to-be-docked signals according to the obtained signal conversion rules to obtain target signals for docking. Different conversion rules are used to perform conversion processing on different types of signals, signal docking between the cockpit simulation device and the real machine system is realized, for different real machine systems, only the conversion rules need to be adaptively modified during signal docking, the cockpit simulation device itself does not need to be modified, so that program architecture adjustment and test verification of the cockpit simulation device and interface protocol change can be avoided, the workload during signal docking is reduced, and the processing period of signal docking is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of signal processing, in particular to a signal docking method, device, equipment and storage medium. BACKGROUND

[0002] For a flight simulator, the simulation cockpit control device (such as a control panel, a control box, etc.) is a common technical means in the software development process of the flight simulation device. The cockpit simulation device usually has a matching hardware interface system, which is a communication bridge between the cockpit simulation device and the iSim real-time simulation running platform system (hereinafter referred to as iSim), and realizes the acquisition and display driving of the operation state signal of the cockpit simulation device through a serial signal, and completes the interactive conversion of the physical quantity change of the hardware device and the software variable of the simulation system. With the continuous increase of user business requirements, the cockpit display and control simulation system needs to be upgraded to adapt to the real machine display and control system transplantation software to provide better simulation experience. Different types of data communication links of the real machine display and control system transplantation software use corresponding virtual bus schemes to realize data interaction of each system simulation module of the iSim platform. The specific implementation is to develop a virtual bus signal communication simulation unit on the iSim platform according to the architecture requirements of the real machine system to interact with the real machine system, to summarize and package the required data published on the iSim platform into the form of a bus protocol, and then send it to the corresponding application of the real machine system to complete the data interaction.

[0003] Since the interface definition and data transmission frequency of the real machine display and control system transplantation software are consistent with the real machine, if the interface docking of the cockpit simulation device and the real machine display and control system transplantation software is to be completed, the protocols and transmission frequencies of the interfaces of the two systems need to be adapted. The existing adaptation method is to change the interface protocols and transmission frequencies of the cockpit display and control system related cockpit simulation devices, hardware interface systems, and complete the corresponding test verification according to the interface requirements of the real machine display and control system. The hardware simulation devices and system software involved are wide in scope, there are many processing links, the workload is large, and the participation and cooperation of multiple professional technicians are required, and the processing period is long. SUMMARY

[0004] The present application provides a signal docking method, device, equipment and storage medium to solve the defects that the existing cockpit simulation system of a flight simulator needs to adjust the program architecture and test verification from the hardware device end and the interface system, change the interface protocol, involve a wide range of hardware devices, have many processing links, a large workload, and a long processing period when docking with a real machine system.

[0005] The present application provides a signal docking method, comprising:

[0006] Obtaining the to-be-docked signal between the cockpit simulation device of the flight simulator and the real machine system;

[0007] determine a signal type of the signal to be docked, and acquire a signal conversion rule corresponding to the signal type;

[0008] convert the signal to be docked according to the signal conversion rule to obtain a target signal for docking.

[0009] According to the signal docking method provided by the application, if the signal to be docked includes a direction value signal, the signal conversion rule includes a first conversion rule corresponding to the direction value signal, and the target signal includes a first target signal corresponding to the direction value signal; the conversion processing of the signal to be docked according to the signal conversion rule to obtain the target signal for docking includes:

[0010] acquire a first running frequency of the flight simulator cockpit simulation device and a second running frequency of the real machine system;

[0011] determine a high frequency end in the flight simulator cockpit simulation device and the real machine system according to the first running frequency and the second running frequency;

[0012] convert the direction value signal in the signal to be docked according to the first conversion rule in the signal conversion rule and the running frequency of the high frequency end to obtain a first target signal for docking.

[0013] According to the signal docking method provided by the application, the conversion processing of the direction value signal in the signal to be docked according to the first conversion rule in the signal conversion rule and the running frequency of the high frequency end to obtain a first target signal for docking includes:

[0014] determine a third running frequency according to the first conversion rule in the signal conversion rule and the running frequency of the high frequency end; the third running frequency is greater than or equal to the running frequency of the high frequency end;

[0015] perform up-sampling on the direction value signal in the signal to be docked based on the third running frequency to obtain an up-sampled signal;

[0016] perform down-sampling on the up-sampled signal based on a running frequency of a receiver of the signal to be docked to obtain a first target signal for docking; the first target signal has the same number of cycles as the direction value signal.

[0017] According to the signal docking method provided by the application, the conversion processing of the direction value signal in the signal to be docked according to the first conversion rule in the signal conversion rule and the running frequency of the high frequency end to obtain a first target signal for docking includes:

[0018] If the high-frequency end is the sender of the signal to be docked, according to the first conversion rule in the signal conversion rule, the signal to be docked is sent to a preset cache area according to the running frequency of the high-frequency end for caching; the caching time length of the signal to be docked in the cache area is the cycle time length difference between the first running frequency and the second running frequency;

[0019] Based on the running frequency of the receiver of the signal to be docked, the cached signal to be docked is obtained from the cache area, and a first target signal for docking is obtained;

[0020] If the high-frequency end is the receiver of the signal to be docked, according to the first conversion rule in the signal conversion rule, the signal to be docked is sent to a preset cache area according to the running frequency of the low-frequency end for caching;

[0021] Based on the running frequency of the high-frequency end, the cached signal to be docked is obtained from the cache area, and a first target signal for docking is obtained.

[0022] According to the signal docking method provided by the application, if the signal to be docked includes a key signal, the signal conversion rule includes a second conversion rule corresponding to the key signal, and the target signal includes a second target signal corresponding to the key signal; the conversion processing of the signal to be docked according to the signal conversion rule to obtain the target signal for docking, comprising:

[0023] According to the second conversion rule in the signal conversion rule, the signal acquisition identifier of the key signal in the signal to be docked is detected, the signal acquisition identifier is used to represent the acquisition state of the key signal, and the acquisition state includes acquired and not acquired;

[0024] If the acquisition state represented by the signal acquisition identifier is not acquired, the key signal is traversed until the first key signal state of the sender of the signal to be docked is true for the key object;

[0025] The ASCII code flag value of the key object is obtained; the ASCII code flag value is used to represent the sending state of the ASCII code of the key object; the sending state includes sent and not sent;

[0026] If the sending state represented by the ASCII code flag value is not sent, the ASCII code value of the key object is obtained, and a second target signal for docking is obtained; the ASCII code value is generated and saved when the key object is defined.

[0027] According to the signal docking method provided by the application, if the signal to be docked includes a switch type signal, the signal conversion rule includes a third conversion rule corresponding to the switch type signal, and the target signal includes a third target signal corresponding to the switch type signal; the conversion processing of the signal to be docked according to the signal conversion rule to obtain the target signal for docking includes:

[0028] According to the third conversion rule in the signal conversion rule, a first switch value of the switch type signal in the signal to be docked is acquired;

[0029] Based on a preset switch value mapping table, a second switch value corresponding to the first switch value is acquired; the switch mapping table is generated when the switch object is defined;

[0030] The first switch value is replaced by the second switch value to obtain the third target signal for docking.

[0031] According to the signal docking method provided by the application, if the signal to be docked includes a light type signal, the signal conversion rule includes a fourth conversion rule corresponding to the light type signal, and the target signal includes a fourth target signal corresponding to the light type signal; the conversion processing of the signal to be docked according to the signal conversion rule to obtain the target signal for docking includes:

[0032] According to the fourth conversion rule in the signal conversion rule, a counting variable is defined, and the light type signal in the signal to be docked is traversed to acquire a value bit of a two-dimensional array of each light type object;

[0033] The light type object is obtained by instance definition of an indicator light of a receiver of the signal to be docked; the two-dimensional array is composed of a device quantity attribute value and a single device signal quantity attribute value, and the device quantity attribute value and the single device signal quantity attribute value are generated when the light type object is defined; the value bit is used to represent the effective state of the light type signal; the light type signal includes a flashing flag bit, a flashing frequency and a light state proportion; the flashing flag bit is used to represent the flashing state of the light type object;

[0034] If the flashing flag bit is true and the value bit is false, a flashing count value of the light type object is determined according to the flashing frequency and the light state proportion; the flashing count value includes a light-off count value and a light-on count value;

[0035] In the case that the accumulated value of the count variable is less than the lamp-out count value, the accumulated value of the count variable is accumulated according to the period of the lamp-type signal until the accumulated value of the count variable is greater than or equal to the lamp-out count value, the numerical position is true, the valid state of the lamp-type signal is converted, a fourth target signal for docking is obtained, and the accumulated value of the count variable is cleared.

[0036] In the case that the flicker flag is true and the numerical position is true, the accumulated value of the count variable is accumulated according to the period of the lamp-type signal until the accumulated value of the count variable is greater than or equal to the lamp-on count value, the numerical position is false, the valid state of the lamp-type signal is converted, a fourth target signal for docking is obtained, and the accumulated value of the count variable is cleared.

[0037] The application further provides a signal docking device, comprising:

[0038] A signal acquisition module is configured to acquire a to-be-docked signal between a flight simulator cockpit simulation device and a real machine system.

[0039] A rule determination module is configured to determine a signal type of the to-be-docked signal and acquire a signal conversion rule corresponding to the signal type.

[0040] A signal conversion rule definition module is configured to convert the to-be-docked signal according to the signal conversion rule to obtain a target signal for docking.

[0041] The application further provides an electronic device comprising a processor and a memory storing a computer program, wherein the processor implements the steps of the signal docking method of the first aspect when executing the program.

[0042] The application further provides a non-transitory computer-readable storage medium storing a computer program, wherein the computer program implements the steps of the signal docking method of the first aspect when executed by a processor.

[0043] The application further provides a computer program product comprising a computer program, wherein the computer program implements the steps of the signal docking method of the first aspect when executed by a processor.

[0044] The signal connection method, device, equipment and storage medium provided by the application, by acquiring the signal conversion rule corresponding to the signal type of the to-be-connected signal, different conversion rules are used for conversion processing for different types of signals to obtain the target signal for connection, realizing the signal connection between the flight simulator cockpit simulation equipment and the real machine system, for different real machine systems, only the conversion rule needs to be adaptively modified during signal connection, without modifying the cockpit simulation equipment itself, thereby avoiding the program architecture adjustment and test verification of the cockpit simulation equipment, and the change of the interface protocol, reducing the workload during signal connection and shortening the processing period of signal connection. BRIEF DESCRIPTION OF DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor under the premise of the drawings.

[0046] Figure 1 is a flowchart of the signal connection method provided by the embodiment of the application;

[0047] Figure 2 is a signal transmission architecture diagram of the cockpit simulation system provided by the embodiment of the application; Figure 3 is one of the input and output signal diagrams of the to-be-connected signal provided by the embodiment of the application;

[0048] Figure 4 is the second input and output signal diagram of the to-be-connected signal provided by the embodiment of the application;

[0049] Figure 5 is a conversion process diagram of the to-be-connected signal provided by the embodiment of the application;

[0050] Figure 6 is a structure diagram of the signal connection device provided by the application;

[0051] Figure 7 is a structure diagram of the electronic device provided by the application. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be described clearly and completely in the following with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0053] It should be noted that the cockpit simulation device related to the display control system mainly includes two display control panels (DCP), two cursor control devices (CCD), two multi-function keyboards (MKB) and a reversion control panel (RCP) and the like. Since the signal types of different cockpit simulation devices are different, different requirements are needed for different types of signals during signal interfacing. When the cockpit simulation device is upgraded and changed to the real machine display control system transplantation software consistent with the real machine, if different models of real machine systems are to be adapted, each time the signal of the cockpit simulation device is interfaced with the real machine system, the cockpit simulation device needs to be adapted and changed according to the signal transmission frequency and interface protocol required by the interfaced real machine system.

[0054] Based on this, the embodiment of the present application provides a signal interfacing method. By adding a signal conversion rule definition module in the display control system simulation unit, different conversion rules are set for different types of signals. The sub-modules in the simulation unit can respectively adopt different conversion rules for converting specific different types of signals when the cockpit simulation device and the real machine system are interfaced, so as to adapt to the transmission frequency and interface protocol of the cockpit simulation device and the real machine system to be interfaced, without the need to adjust and test the program architecture of the cockpit simulation device itself, and without the need to change the interface protocol of the cockpit simulation device.

[0055] Specifically, referring to Figure 1 , Figure 1 The flowchart of the signal interfacing method provided by the embodiment of the present application is based on Figure 1 The signal interfacing method provided by the embodiment of the present application comprises:

[0056] Step 100, acquiring the to-be-interfaced signals between the cockpit simulation device of the flight simulator and the real machine system;

[0057] Step 200, determining the signal type of the to-be-interfaced signals and acquiring the signal conversion rule corresponding to the signal type;

[0058] At step 300, the signal to be docked is converted according to the signal conversion rule to obtain a target signal for docking.

[0059] First, when performing signal docking, the signal to be docked between the flight simulator cockpit simulation device and the real machine system is obtained, which can include one or more types of signals. Preferably, when performing signal docking, the data interaction between the cockpit simulation device and the real machine system is bidirectional, so the sender of the signal to be docked can be either the cockpit simulation device or the real machine system. If the cockpit simulation device is the sender of the signal to be docked, the real machine system is the receiver of the signal to be docked; if the real machine system is the sender of the signal to be docked, the cockpit simulation device is the receiver of the signal to be docked. The following takes the cockpit simulation device as the sender of the signal to be docked and the real machine system as the receiver of the signal to be docked as an example for illustration.

[0060] Further, for the signal to be docked, the signal type of the signal to be docked is determined, which includes one or more, so as to obtain the signal conversion rule corresponding to the signal type of the signal to be docked, and the signal conversion rule is used to convert the signal to be docked to obtain the target signal for docking. It can be understood that different signal types correspond to different signal conversion rules, so the conversion processing mode of the signal to be docked is different when the signal is docked.

[0061] The signal to be docked includes at least one of the direction value signal, the key signal, the switch signal and the lamp signal, and different types of signals are distinguished by different signal types.

[0062] The signal type of the signal to be docked is pre-set in the display control system simulation unit. Specifically, each sub-module in the display control system simulation unit selects the type of the signal to be docked according to the cockpit simulation device corresponding to it, and generates a conversion instance of the signal to be docked. When the signal to be docked is transmitted, the conversion instance of the signal to be docked will convert the signal to be docked according to the corresponding conversion rule.

[0063] For the sub-modules of the display control system simulation unit, when the signal conversion instances of different types are not strictly limited in signal processing delay, the signals of different types can be converted according to different rules in sequence, and when the delay requirement is strict, the signals of different types can be converted in parallel according to different rules, which is not limited here.

[0064] Preferably, based on cockpit simulation equipment such as the display control board (DCP), cursor control device (CCD), multi-function keyboard (MKB), and conversion control board (RCP), the signals to be docked include at least one of the following: directional numerical signals, button signals, switch signals, and light signals. The directional numerical signals further include two types: encoder knobs and single-direction trackballs. Because the cockpit simulation equipment's interface protocol defines the same data format for both types, collectively referred to as directional numerical signals, the same conversion rules can be used for signal conversion.

[0065] Preferably, in one embodiment, the signal docking method provided by this invention is applied to a signal conversion rule definition module. This module can be located within the simulation unit of the iSim real-time simulation platform or it can be a separate iSim platform simulation unit; no specific limitation is made here. This signal conversion rule definition module applies different signal conversion rules to different signal types to perform conversion processing, obtaining a target signal for docking that is compatible with the receiver's transmission frequency and interface protocol. When docking with different real machine systems, only the conversion rules need to be uniformly modified according to the signal transmission frequency and interface protocol required by the real machine system to be docked, without requiring changes to the cockpit simulation equipment.

[0066] In one embodiment, taking the C919Rehost real machine system porting software as an example, refer to... Figure 2 The cockpit simulation system signal transmission architecture shown includes cockpit hardware devices such as DCP, MKB, CCD, RCP, MW (Master Warning, red main warning) warning light / button, MC (Master Caution, yellow main alert) warning light / button, and IDU (Integrated Display Unit).

[0067] There are two sets of MW and MC warning lights / buttons, located in the left and right GCPA (Glare Control Panel Assembly) respectively; IDU is an integrated display unit that provides the crew with information such as time, flight and navigation data, engine parameters, and aircraft system status. The IDU device in the simulated cockpit hardware is used to display the screen of the IDU application in the C919Rehost real aircraft system porting software.

[0068] The signals of the simulation cockpit hardware device pass through the hardware interface system, the IOServer simulation unit of the iSim simulation platform, the display and control system simulation unit and the virtual bus communication simulation unit in turn, and are finally sent to the real machine system. Further, the display and control system simulation unit includes corresponding simulation modules of the simulation cockpit hardware device, including a DCP simulation module, an MKB simulation module, a CCD simulation module, an RCP simulation module and a GCPA simulation module, and the signals of the corresponding simulation modules of the simulation cockpit hardware device are converted through the conversion rules defined by the specific signal instance definition in the signal conversion rule definition module, and are finally sent to the C919Rehost software in the real machine system through the corresponding virtual bus communication simulation unit. The virtual bus communication simulation unit at the iSim platform end is a plurality of independent simulation units, and each virtual bus communication simulation unit corresponds to an application instance in the C919Rehost real machine system transplantation software one by one, for example, the five IDU application instances of the C919Rehost IDU1 to IDU5 correspond to the five IDU virtual bus communication simulation units at the iSim platform end, one Flight Deck Alerting System (FDAS) application corresponds to a virtual bus communication simulation unit, one SYN page (SYNPAGE) application corresponds to a SYN virtual bus communication simulation unit, and one Integrated Modular Avionics (IMA) application also corresponds to an IMA virtual bus communication simulation unit. When the cockpit simulation device is connected to the real machine system interface, only the signal conversion rules of the simulation cockpit hardware device for the connected real machine system need to be uniformly modified adaptively in the signal conversion rule definition module according to the connected real machine system interface. It should be noted that the signal transmission between the simulation cockpit hardware device and the real machine system is bidirectional, and the signals of the real machine system are sent to the simulation cockpit hardware device through the virtual bus communication simulation unit of the iSim simulation platform, the display and control system simulation unit, the IOServer simulation unit and the hardware interface system in turn.

[0069] In the embodiment, by obtaining the signal conversion rule corresponding to the signal type of the signal to be connected, different conversion rules are used for conversion processing of different types of signals to obtain the target signal for connection, realizing the signal connection between the flight simulator cockpit simulation device and the real machine system. For different signal interfaces of the real machine system, only the conversion rules need to be uniformly modified adaptively during specific signal connection, without the need to modify the cockpit simulation device itself, so that program architecture adjustment and test verification of the cockpit simulation device, as well as changes of the interface protocol can be avoided, the workload during signal connection is reduced, and the processing period of signal connection is shortened.

[0070] Preferably, in the signal docking of the cockpit simulation device and the real machine system, the main problem is that the signal transmission frequency and the interface protocol are inconsistent. In the embodiment of the present application, the conversion docking of different types of signals can be completed through the signal conversion rule definition module between the cockpit simulation device and the real machine system without changing the inherent interface protocol and signal transmission frequency of the signal.

[0071] Among them, taking the C919 Rehost real machine system migration software as an example, for the problem of inconsistent signal transmission frequency, the direction value type signal is mainly affected. For example, the communication frequency of the IOServer end (interface communication unit) of the iSim simulation platform and the hardware interface system of the forwarding cockpit simulation device serial signal is usually 60Hz, and the serial signal communication frequency of the hardware interface system and the cockpit simulation device is also 60Hz. The C919 Rehost real machine system migration software corresponding to the cockpit device A825 type interface data interaction has a communication frequency of 100Hz. For the difference in signal transmission frequency between the two systems to be docked, the C919 Rehost end will cause multiple responses to the single cycle direction value signal output by the interface system. Specifically, since the C919 Rehost end responds to the A825 direction value type signal in real time every cycle, it does not have the signal rising edge / falling edge jump and counting judgment logic like the key type signal. The difference in interface signal transmission frequency between the two systems will frequently cause the C919 Rehost end to respond to the single knob step signal output by the interface system twice. As shown in Figure 3 , Figure 3 The upper graph in the figure is the signal to be docked sent by the hardware interface system of the cockpit simulation device at a running frequency of 60Hz, and the lower graph is the target signal sent to the real machine system at a running frequency of 100Hz on the same time axis. Based on Figure 3 , when the encoder knob signal of the hardware interface system of the cockpit simulation device is a single cycle value change Figure 3 (the single cycle signal with T0 as the starting time), since the signal transmission frequency of the hardware interface system of the cockpit simulation device is 60Hz, the time length corresponding to the single cycle signal is 16.66ms, the sending frequency period of the A825 virtual bus is 100Hz, and the time length corresponding to the single cycle signal is 10ms, therefore, for the single cycle signal sent by the hardware interface system, the A825 virtual bus will send two adjacent cycle signals according to the interaction frequency of the real machine system, resulting in that the C919 Rehost end will receive two value signals; when the interface system knob signal has a value signal change of three consecutive cycles Figure 3When the multi-period continuous signal (with T00+0.05s as the starting time) is sent to the A825 virtual bus, the A825 virtual bus will send 5 periods of value changes to the C919 Rehost end. When performing accurate value adjustment, for example, the encoder knob for adjusting the decision height value is rotated one step clockwise, the current decision height value should be increased by 1, but actually in the C919 Rehost end, it may be the current decision height value plus 2. For the continuous period triggered value signal, the accumulated deviation will be larger, thereby causing confusion to the user.

[0072] To solve the problem caused by the inconsistent signal transmission frequencies of the two systems to be docked, in the signal conversion rule, the first conversion rule corresponding to the direction value signal is set. When the signal to be docked is a direction value signal, the signal conversion rule corresponding to the signal type of the signal to be docked includes the first conversion rule corresponding to the direction value signal, and the target signal obtained for docking includes the first target signal corresponding to the direction value signal. Based on this, in step 300, the signal to be docked is converted according to the signal conversion rule corresponding to the signal type of the signal to be docked, and the target signal obtained for docking is obtained. Specifically, it can include:

[0073] In step 310, the first running frequency of the flight simulator cockpit simulation device and the second running frequency of the real machine system are obtained.

[0074] In step 320, the high-frequency end of the flight simulator cockpit simulation device and the real machine system is determined according to the first running frequency and the second running frequency.

[0075] In step 330, the direction value signal in the signal to be docked is converted according to the first conversion rule in the signal conversion rule and the high-frequency end, and the first target signal obtained for docking is obtained.

[0076] Firstly, a first running frequency of a flight simulator cockpit simulation device is acquired, the first running frequency being a data interaction frequency of a hardware interface system of the cockpit simulation device, and a second running frequency of a real machine system is acquired, the second running frequency being a data interaction frequency between the real machine system and the cockpit simulation device, more specifically, the second running frequency being a data interaction frequency between the real machine system and the hardware interface system of the cockpit simulation device. In the case that the first running frequency is not equal to the second running frequency, due to the inconsistency of the data interaction frequencies at both ends, the signal cannot be accurately transmitted. Therefore, the to-be-connected signal needs to be converted to adapt to the data interaction frequencies at both ends. Specifically, the first running frequency and the second running frequency are compared according to the first running frequency of the flight simulator cockpit simulation device and the second running frequency of the real machine system, to determine the high-frequency end in the flight simulator cockpit simulation device and the real machine system. If the first running frequency is greater than the second running frequency, the flight simulator cockpit simulation device is the high-frequency end, and correspondingly, the real machine system is the low-frequency end. Conversely, if the first running frequency is less than the second running frequency, the real machine system is the high-frequency end, and the flight simulator cockpit simulation device is the low-frequency end.

[0077] According to the first conversion rule corresponding to the direction numerical value signal in the signal conversion rule and the running frequency of the high-frequency end, the direction numerical value signal in the to-be-connected signal is converted to obtain a first target signal for connection. Taking the cockpit simulation device as the sender of the to-be-connected signal and the real machine system as the receiver of the to-be-connected signal as an example, the cockpit simulation device sends the direction numerical value signal according to the first running frequency, and the real machine system acquires the direction numerical value signal sent by the cockpit simulation device according to the second running frequency. For continuous signals, due to the inconsistency of the data interaction frequencies of the systems at both ends, the number of cycles of the signal sent by the cockpit simulation device is different from the number of cycles of the signal that can be acquired by the real machine system in the same time length. Through the conversion of the direction numerical value signal according to the first conversion rule, the number of cycles of the converted first target signal is the same as that of the direction numerical value signal in the to-be-connected signal, so as to adapt to the signal transmission frequencies of the systems at both ends.

[0078] Further, the high-frequency end can be both the sender and the receiver of the to-be-connected signal. If the high-frequency end is the sender of the to-be-connected signal (i.e., the cockpit simulation device), the first running frequency is greater than the second running frequency. If the high-frequency end is the receiver of the to-be-connected signal (i.e., the real machine system), the first running frequency is less than the second running frequency. In step 330, the to-be-connected direction numerical value signal is converted according to the first conversion rule in the signal conversion rule and the running frequency of the high-frequency end to obtain a first target signal for connection, which can further include:

[0079] Step 331: Determine the third operating frequency according to the first conversion rule in the signal conversion rules and the operating frequency of the high-frequency end; the third operating frequency is greater than or equal to the operating frequency of the high-frequency end;

[0080] Step 332: Upsample the direction numerical signal in the signal to be docked based on the third operating frequency to obtain the upsampled signal;

[0081] Step 333: Based on the operating frequency of the receiver of the signal to be docked, the upsampled signal is downsampled to obtain a first target signal for docking; the number of periods of the first target signal is the same as the number of periods of the direction numerical signal.

[0082] When converting directional numerical signals in the docking signal, a third operating frequency is first determined based on the first conversion rule in the signal conversion rules and the high-frequency operating frequency. This third operating frequency is greater than or equal to the high-frequency operating frequency, that is, greater than or equal to the larger of the first and second operating frequencies. Based on this third operating frequency, the directional numerical signals in the docking signal are upsampled to obtain the corresponding upsampled signal. Then, based on the low-frequency operating frequency, the upsampled signal is downsampled to obtain the first target signal used for docking. Downsampling ensures that the number of periods of the first target signal is the same as the number of periods of the directional numerical signals.

[0083] In one embodiment, taking the cockpit simulation device as the sender of the docking signal and the real aircraft system as the receiver of the docking signal as an example, if the high-frequency end is the receiver of the docking signal, that is, the first operating frequency of the cockpit simulation device is less than the second operating frequency of the real aircraft system, then the third operating frequency is greater than or equal to the second operating frequency of the high-frequency end. Preferably, the operating frequency of the high-frequency end is used as the third operating frequency. The cockpit simulation device sends the signal at the first operating frequency, and the real aircraft system receives the signal at the second operating frequency. At this time, the docking signal is upsampled at the third operating frequency, which is the same as the second operating frequency, to obtain the corresponding upsampled signal. Then, based on the second operating frequency of the real aircraft system, the upsampled signal is downsampled so that the number of periods of the first target signal obtained after downsampling is the same as that of the docking signal.

[0084] Similarly Figure 3 Taking the docking signal shown as an example, the cockpit simulation sends the docking signal at a frequency of 60Hz, while the actual aircraft system receives the signal at a frequency of 100Hz. Figure 3 The image below can be seen as an upsampled signal obtained by upsampling the signal to be docked at a third operating frequency (i.e., 100Hz), which is the same as the second operating frequency. Figure 3In the embodiment, the single-cycle signal is up-sampled to obtain a 2-cycle up-sampled signal, and the 3-continuous-cycle signal is up-sampled at a high frequency to obtain a 5-continuous-cycle up-sampled signal. Referring to the signal diagram shown in FIG. 6, the upper diagram shows the to-be-docked signal sent by the cockpit simulation device at a running frequency of 60 Hz, and the lower diagram shows the first target signal received by the real machine system. Based on the running frequency (i.e., 100 Hz) of the real machine system, the up-sampled signal shown in FIG. 6 is down-sampled to obtain the first target signal shown in the lower diagram of FIG. 7. Figure 4 Figure 4 In the embodiment, the upper diagram shows the to-be-docked signal sent by the cockpit simulation device at a running frequency of 60 Hz, and the lower diagram shows the first target signal received by the real machine system. Based on the running frequency (i.e., 100 Hz) of the real machine system, the up-sampled signal shown in FIG. 6 is down-sampled to obtain the first target signal shown in the lower diagram of FIG. 7. Figure 3 Figure 4 In the embodiment, the upper diagram shows the to-be-docked signal sent by the cockpit simulation device at a running frequency of 60 Hz, and the lower diagram shows the first target signal received by the real machine system. Based on the running frequency (i.e., 100 Hz) of the real machine system, the up-sampled signal shown in FIG. 6 is down-sampled to obtain the first target signal shown in the lower diagram of FIG. 7.

[0085] Further, if the high-frequency end is the sender of the to-be-docked signal, the cockpit simulation device sends signals at the first running frequency, and the real machine system receives signals at the second running frequency, the frequency of the signals received by the real machine system is less than the frequency of the signals sent by the cockpit simulation device. At this time, the third running frequency is greater than or equal to the first running frequency of the signals sent by the cockpit simulation device. Similarly, taking the first running frequency of the signals sent by the cockpit simulation device as 100 Hz and the second running frequency of the signals received by the real machine system as 60 Hz as an example, if the resolution accuracy of the transmitted signals is taken into account, the running frequency of the signal conversion rule definition module at least needs to be consistent with the high-frequency end, that is, the signal conversion rule definition module needs to run at a frequency greater than or equal to 100 Hz for signal processing. The signal input and output of the signal conversion rule definition module running at a frequency of 100 Hz is shown in FIG. 8. Figure 5 Figure 5 ​​​In the prior art, for the to-be-docked signal sent by the cockpit simulation device at a frequency of 100 Hz, including a single period signal with T0 as the starting time and a 4-period continuous signal with T0+0.05s as the starting time, in order to ensure that the real machine system can receive the signal at a frequency of 60 Hz, the signal conversion rule definition module performs up-sampling processing on the to-be-docked signal at a running frequency of 100 Hz to obtain a corresponding up-sampled signal. For the single period signal in the to-be-docked signal with T0 as the starting time, after up-sampling processing, a 2-period continuous signal with T0 as the starting time is obtained, so as to ensure that the real machine system can receive the signal when running at a frequency of 60 Hz. For the 4-period continuous to-be-docked signal with T0+0.05s as the starting time, according to the signal duration corresponding to 4 periods at a running frequency of 60 Hz of the receiving party, after up-sampling processing, a 7-period continuous up-sampled signal is obtained, so as to ensure that the real machine system can receive at least 4 periods of signal. In order to balance the signal resolution accuracy, for the single period signal of the to-be-docked signal, after down-sampling based on the up-sampled signal, a 2-period continuous signal is obtained, and for the 4-period continuous signal of the to-be-docked signal, after down-sampling based on the up-sampled signal at the running frequency of the receiving party, a 5-period continuous signal is obtained, so as to balance the signal resolution accuracy and make concessions to signal accuracy.

[0086] Preferably, if the high-frequency end is the receiving party of the to-be-docked signal, the third running frequency is greater than or equal to the running frequency of the high-frequency end, preferably, the third running frequency is an integer multiple of the running frequency of the high-frequency end, more preferably, in the case of sufficient computing resources, the third running frequency is an integer multiple of the least common multiple of the first running frequency and the second running frequency.

[0087] Preferably, if the high-frequency end is the sending party of the to-be-docked signal, in the case of not strictly limiting accuracy, the third running frequency is greater than or equal to the running frequency of the high-frequency end, preferably, the third running frequency is an integer multiple of the running frequency of the high-frequency end, more preferably, in the case of sufficient computing resources, the third running frequency is an integer multiple of the least common multiple of the first running frequency and the second running frequency. For example, still taking the first running frequency of the cockpit simulation device as 100 Hz and the second running frequency of the real machine system as 60 Hz as an example, the third running frequency of the signal conversion rule definition module is the least common multiple of the first running frequency and the second running frequency, i.e. 300 Hz, then the third running frequency is 3 times the running frequency of the cockpit simulation device and 5 times the running frequency of the real machine system, then when docking the signal, the to-be-docked signal sent by the cockpit simulation device is processed once with a 3-period step for up-sampling at a running frequency of 300 Hz to obtain an up-sampled signal, and then the signal conversion rule definition module performs down-sampling once with a 5-period step when outputting the target signal for docking to obtain the corresponding target signal for docking.

[0088] Preferably, the frequency adaptation of the two systems to be docked can be achieved by setting a buffer area to decouple the transmission and reception of the signal to be docked. Specifically, in step 330, the direction value signal in the signal to be docked is converted according to the first conversion rule in the signal conversion rule and the operating frequency of the high-frequency end to obtain the first target signal for docking, which can further include:

[0089] In step 334, if the high-frequency end is the sender of the signal to be docked, the signal to be docked is sent to a preset buffer area for caching according to the first conversion rule in the signal conversion rule and the operating frequency of the high-frequency end. The caching duration of the signal to be docked in the buffer area is the difference between the first operating frequency and the second operating frequency.

[0090] In step 335, the cached signal to be docked is obtained from the buffer area based on the operating frequency of the receiver of the signal to be docked to obtain the first target signal for docking.

[0091] In step 336, if the high-frequency end is the receiver of the signal to be docked, the signal to be docked is sent to a preset buffer area for caching according to the first conversion rule in the signal conversion rule and the operating frequency of the low-frequency end.

[0092] In step 337, the cached signal to be docked is obtained from the buffer area based on the operating frequency of the high-frequency end to obtain the first target signal for docking.

[0093] In an embodiment, the input and output processing procedures in the signal conversion instance corresponding to the to-be-docked signal are split by means of a signal buffer area. Specifically, an input module and an output module are set in the signal conversion instance. The input module stores the to-be-docked signal in a preset buffer area according to the running frequency of the sender of the to-be-docked signal. The output module takes the signal from the buffer area according to the running frequency of the receiver of the to-be-docked signal and sends it to the receiver. Specifically, taking the cockpit simulation device as the sender of the to-be-docked signal and the real machine system as the receiver of the to-be-docked signal as an example, if the high-frequency end is the sender of the to-be-docked signal, that is, the cockpit simulation device is the high-frequency end, according to the first conversion rule in the signal conversion rule, the input module receives the to-be-docked signal sent by the cockpit simulation device according to the running frequency of the high-frequency end of the cockpit simulation device, and stores it in the preset buffer area. The output module obtains the to-be-docked signal from the buffer area according to the running frequency of the real machine system and sends it to the real machine system. As can be seen, the speed of storing signals in the buffer area is greater than the speed of taking out signals, and the buffering time of the single-cycle signal sent by the high-frequency end is the difference between the cycle time of the high-frequency end and the cycle time of the low-frequency end. For example, if the running frequency of the high-frequency end is 100 Hz, the cycle time of the high-frequency end is 10 ms, the running frequency of the low-frequency end is 60 Hz, and the cycle time of the low-frequency end is about 16.66 ms, the difference between the cycle time of the high-frequency end and the cycle time of the low-frequency end is about 6.66 ms. Therefore, the input module obtains the single-cycle signal of the to-be-docked signal every 10 ms at a running frequency of 100 Hz and stores it in the buffer area. After 6.66 ms, the single-cycle signal is taken out by the output module and sent to the low-frequency end. The buffering time of the to-be-docked signal is the difference between the cycle time of the high-frequency end and the cycle time of the low-frequency end, that is, the difference between the cycle time of the first running frequency and the cycle time of the second running frequency. Considering that data overflow may occur in the buffer area after a certain period of time, the corresponding buffer cleaning period can be set according to the size of the buffer area and the difference between the cycle time of the sender and the cycle time of the receiver of the to-be-docked signal. When the time corresponding to the corresponding buffer cleaning period is reached, the signal values buffered in the buffer area are cleaned.

[0094] If the high-frequency end is the receiver of the to-be-docked signal, that is, the real machine system is the high-frequency end, according to the first conversion rule in the signal conversion rule, the signal input module of the buffer area stores the to-be-docked signal in the preset buffer area according to the running frequency of the low-frequency end of the cockpit simulation device. The output module takes the buffered to-be-docked signal from the buffer area according to the running frequency of the high-frequency end of the real machine system, obtains the first target signal for docking, and sends it to the real machine system. At this time, the speed of storing signals in the buffer area is less than the speed of taking out signals.

[0095] Further, the conversion processing of the direction value signal in the to-be-docked signal is performed in real time during the transmission of the to-be-docked signal. The specific processing process is realized by adding a judgment and identification condition to the to-be-docked signal, that is, when there is a direction value step signal greater than 0, it is judged whether the start time and end time of the current running period are within the period range of the output signal that should be triggered, to judge the final output result. Specifically, in the case of known transmission frequency and receiving frequency of the to-be-docked signal, taking the transmission frequency of 60 Hz and the receiving frequency of 100 Hz as an example, the third running frequency of the signal conversion rule definition module is set to 100 Hz to meet the frequency requirement of the receiving side. According to the known running frequency of the signal conversion rule definition module, the running period of the signal conversion rule definition module is converted to 10 ms, and the running period of the to-be-docked signal sender is about 16.66 ms. When the input direction value step signal is greater than 0, the period timing is triggered, and the output signal triggered time is counted every period according to the running period time of the signal conversion rule definition module. The initial trigger count is 0, and it is incremented by 1 after each actual trigger. The start time of the current running period is obtained by the running period time accumulated in the current period, and the start time of the next output signal that should be triggered is obtained by the current output signal triggered time count. In the current period, if the start time of the running period is greater than or equal to the start time of the output signal that should be triggered, the trigger output flag is true, the triggered time count is incremented by 1, and the next period is used as the judgment input. When the trigger output flag is true, the direction value of the direction value signal is judged, and after being converted into a specific direction bit feature value such as 1 or -1, it is multiplied by the direction value step value to obtain the final output result value, and the signal is output. After completion, the trigger output flag is set to false, and the judgment is performed again in the next running period. In the current period, if the trigger output flag is false, the final output result value is 0. In the current period, when the input direction value signal is equal to 0, the accumulated running period time, trigger count value and final output result value are cleared.

[0096] It should be noted that the signal transmission link between the real machine system and the cockpit simulation device can be always on. When the signal transmission link is in the always-on state, the signal sender periodically transmits the to-be-docked signal according to the running frequency. When the encoder knob or trackball has actual operation behavior, the corresponding direction value signal is greater than 0. When the encoder knob or trackball has no actual operation behavior, the direction value signal is 0, indicating that no actual operation signal is generated.

[0097] Further, for the direction numerical value signal, if the signal type is the single direction trackball signal of the CCD simulation device, the cursor object of the real machine system has different requirements for the received signal from the signal type of the encoder knob of the direction numerical value signal. The effective signal it needs needs to be continuous and uninterrupted on the basis of consistent period quantity. Therefore, in the signal conversion rule definition module, for the conversion rule of the direction numerical value signal of the type of single direction trackball, on the one hand, the value of the trigger condition needs to be adjusted from 0 to 1, that is, the trigger period timing when the direction numerical value step signal is greater than 0 is adjusted to the trigger period timing when it is greater than 1, which can reduce the random glitch signal generated when the trackball is physically rotated. On the other hand, a continuous sending flag needs to be added in the conversion rule. When the trigger condition is true, the continuous sending flag is also true.

[0098] Further, after the direction numerical value signal is converted and processed to obtain the first target signal, the first target signal can also be amplified based on the preset gain value to meet the step requirement of the signal. For the direction numerical value signal type of the single direction trackball cursor signal, in order to make the cursor signal move more smoothly, and further suppress the random jitter of the direction bit, after the gain amplification of the first target signal, the amplified signal can also be subjected to mean value filtering processing. Exemplarily, the specific process of mean value filtering processing includes:

[0099] A shaping array with a capacity of a preset value, such as 8, is defined in advance to store the output result value of the amplified first target signal. The current period will record the output result value of the amplified current period in the highest bit of the array, and the recorded value will be sequentially moved to the front bit of the array. Add all the amplified output result values recorded in the array corresponding to the current period, and then divide by the capacity value (such as 8) of the shaping array to obtain the final result data value, which is then output and sent to the receiving party of the signal to be connected. If the value of the single direction trackball signal to be connected is 0, the shaping array for storing the amplified output result value is subjected to a zero operation.

[0100] When the cockpit simulation device is connected with the real machine system, in view of the problem that the signal transmission frequencies of the two systems are inconsistent, including high-frequency end sending and low-frequency end receiving, and low-frequency end sending and high-frequency end receiving, the running frequency of the signal conversion rule definition module can be increased to an integer multiple of the least common multiple of the running frequencies of the two systems. Alternatively, the input and output processes of the signal to be connected can be split into independent units, respectively matching the running frequencies of the two systems, to realize signal conversion. In the case of high-frequency end sending and low-frequency end receiving, on the basis of splitting the input and output processes of the signal to be connected into independent units, a data buffer area, i.e. a data storage container, can be added between the two independent units. When the input module receives a numerical signal of an expected signal to be connected, the processing result will be sequentially placed in the data storage container, and only one result value is stored in each cycle. When there is data in the data storage container, the output module will sequentially take out the data in the data storage container for processing and outputting in the order of storage. By using the data buffer area, when the high-frequency end sends signals to the low-frequency end, it can be ensured that in a continuous effective signal processing process, every cycle of signal sent by the high-frequency end can be received by the low-frequency end, but there will be a certain delay relative to the signal sending frequency of the high-frequency end. If the continuous effective signal processing time is too long, it will be perceived by the user end, so additional processing of signal truncation and forced refresh is needed as needed; while the cycle timing value method is equivalent to reducing the resolution of the high-frequency end signal to be consistent with the resolution of the low-frequency end, which has the advantage that there is no signal delay phenomenon. Which method to use can be selected according to the specific use scenario.

[0101] For the way of improving the running frequency of the signal conversion rule definition module, in the case of sending signals from high frequency end to low frequency end, when converting the direction value class signal, a two-dimensional shaping array satisfying the direction value class signal size requirement, i.e. "n*2", is needed to store the input signal to be connected. The two shaping data in each row of the two-dimensional array are used to store the direction bit and value bit of the direction value class signal data. Generally, for the type of encoder knob, the n of the two-dimensional shaping array is set to 10, and for the type of single direction trackball signal, the n is set to 20 to meet the demand. For the encoder knob signal, the main trigger condition is still whether the value bit of the direction value class signal is greater than 0. When the trigger condition is met, the input signal data is converted and processed, i.e. if the value bit of the received signal to be connected is greater than 0 in the current period, the value bit of the two-dimensional array is traversed from small to large starting from the array number 0. If the value bit of the current array is 0, the direction bit and value of the received signal data are stored in the corresponding row of the two-dimensional array, and the input period count is started from the current period as the starting point, and the running cumulative count is increased by 1 every period. After running for multiple periods, for example, running to the fourth period, i.e. the input period count in the current period is equal to 3, the input period count is first cleared to zero, and then the input signal in the current period is stored again according to the above processing process. For the output processing process, the value bit in the two-dimensional array is traversed from small to large according to the array number in the current period, and when the value in the first value bit is greater than 0, the direction bit and value bit of the row are taken out and put into the output signal data for output, and the value bit of the row in the two-dimensional array is cleared. When data is put into the output signal for output in the current period, the output period count behavior is triggered, and the running cumulative count is increased by 1 every period. When running for multiple periods, for example, running to the sixth period, i.e. the output period count in the current period is equal to 5, the output period count is first cleared to zero, and then the above processing process is repeated.

[0102] Further, since the output processing process will clear the data in the two-dimensional array, when there is valid data in the two-dimensional array, before the input processing process and the output processing process run in each period, the two-dimensional array needs to be sorted and processed. Specifically, the value bit of the array is detected from small to large according to the array number, and when the value bit of the current row data in the two-dimensional array is detected to be 0, the next row is detected according to the sequence number. When the array row with value bit greater than 0 is detected, the direction bit and value bit data of the row are moved to the current row, and then the data of the found row is cleared. The above process is repeated, and if the entire two-dimensional array is traversed without detecting a data row meeting the condition, the current sorting and traversal behavior is ended.

[0103] For the trackball signal, considering the limit case of continuous movement, the corresponding two-way trackball signal can be continuous, while due to the difference between the signal frequency of the cockpit simulation device hardware interface system and the receiving frequency of the picture end, that is, the number of cycles of the input signal is greater than the number of cycles of the output signal under the same time length. Based on this, even if there is an array with sufficient capacity for signal conversion, the user can also perceive that the movement of the cursor on the picture has a significant delay phenomenon. For example, if a person manually operates the trackball for 3 seconds, the cursor on the picture end may actually move for 5 seconds. For this phenomenon, simply increasing the number of two-dimensional arrays cannot meet the actual use requirements, so it is also necessary to clear all the data in the two-dimensional array under the current cycle during the traversal of the two-dimensional array, and then insert new data into the two-dimensional array for subsequent processing. In the case of low frequency to high frequency signal transmission, the cycle count of the input signal to be connected in the above description process should be 3, and the cycle count of the output signal should be 5.

[0104] For the asynchronous processing mode of splitting the conversion process of the signal to be docked into an input module and an output module, the running frequency of the input module is consistent with the sender of the signal to be docked, and the running frequency of the output module is consistent with the receiver of the signal to be docked. When the direction value type signal is converted and processed, a two-dimensional shaping array of "n*3" needs to be set in advance to store the input signal to be docked. The first shaping data of each row of the two-dimensional array is used to store the index value of the array, and the last two shaping data are used to store the direction bit and value bit of the direction value type signal data. In the input module, the processing of the direction value type signal is still judged by whether the value bit of the input direction value type signal is greater than 0 to determine whether the trigger condition is met. When the trigger condition is met, the input module processes the input signal data, that is, if the value bit of the direction value type signal in the received signal to be docked is greater than 0 in the current period, the input module starts to count the index value, which is accumulated by 1 in each running period, and the value bit of the two-dimensional array is traversed from small to large starting from the input serial number 0. If the current traversal row index value is 0, the current index value and the direction bit and value bit of the received signal data are stored in the row of the two-dimensional array. Generally, when the trigger condition is triggered for the first time, the data should be stored in the first row of the two-dimensional array. If the trigger condition continues to be true for consecutive multiple periods, the input module will repeat the above processing process in each period until the two-dimensional array is full. At the same time, the input module will output all the data in the first row of the two-dimensional array in each running period, so that the output module can receive and process the data. For the output module, the first row data of the signal output by the input module needs to be identified every period. When the index value bit of the data is greater than 0, the direction bit and value bit of the data are taken out and put into the output signal data for output. In addition, the index value of the row data also needs to be output. If the received index value bit is 0 in the current running period, the output module outputs 0 as the index value. Since the two-dimensional array exists in the form of the output data of the input module, the two-dimensional array data clearing operation needs to be performed in the input module. Specifically, before processing the direction value type signal in each period, the input module needs to compare the index value output by the output module in the last period with the index value of the first row data of the two-dimensional array. If they are consistent, the first row data is cleared, and then the two-dimensional array data is sorted upwards. If the index value output by the output module is 0, no data clearing operation is performed.

[0105] Further, for the single direction trackball signal, in the current cycle, if all the index values of the traversed rows are not 0, it means that the two-dimensional array is full, in this case, all the data in the two-dimensional array also need to be cleared, and the index value count also starts from 1, then the new data is inserted into the two-dimensional array, and then subsequent processing is performed. For the direction bit burr problem of the single direction trackball signal, the main judgment condition of the input direction value signal in the trigger condition can be changed from whether greater than 0 to whether greater than 1. In the output module, for the processing of the trackball signal, the received data is not directly output, but after gain processing and mean filtering processing, the signal is output as the final result.

[0106] Preferably, the to-be-connected signal can also include a key signal, therefore, the signal conversion rule can also include a second conversion rule corresponding to the key signal, and the target signal for connection can also include a second target signal corresponding to the key signal. Based on this, in step 300, the to-be-connected signal is converted according to the signal conversion rule corresponding to the signal type of the to-be-connected signal to obtain the target signal for connection, which can also include:

[0107] In step 340, the signal acquisition identifier of the key signal in the to-be-connected signal is detected according to the second conversion rule in the signal conversion rule, the signal acquisition identifier is used to represent the acquisition state of the key signal, and the acquisition state includes acquired and not acquired.

[0108] In step 341, if the acquisition state represented by the signal acquisition identifier is not acquired, the key signal is traversed until the first key signal state of the sender of the to-be-connected signal is true for the key object.

[0109] In step 342, the ASCII code flag value of the key object is obtained; the ASCII code flag value is used to represent the sending state of the ASCII code of the key object; and the sending state includes sent and not sent.

[0110] In step 343, if the sending state represented by the ASCII code flag value is not sent, the ASCII code value of the key object is obtained to obtain the second target signal for connection; the ASCII code value is generated and saved when the key object is defined.

[0111] For the key signal, since the real machine system end is provided with the judgment function of signal jump, that is, it can be judged whether it is long press or short press key, so it is not necessary to process too much. But for part of the key of MKB panel, such as letter, number and mathematical operator symbol, the corresponding signal of real machine system end is single ASCII code value signal, therefore, in the signal conversion rule definition module, the related key signal of the signal to be connected needs to be converted.

[0112] Specifically, when the signal is connected, ASCII code, ASCII code flag value and signal acquisition identifier are set for the key signal, wherein each key object instance of the key signal corresponds to an ASCII code, each ASCII code is provided with a corresponding flag value, which is used to indicate the sending state of the ASCII code, the sending state includes sent and not sent, exemplarily, when the ASCII code flag value is false (or the ASCII code flag value is 0), it indicates that the ASCII code is not sent, when the ASCII code flag value is true (or the ASCII code flag value is 1), it indicates that the ASCII code is sent; the signal acquisition identifier is used to represent the acquisition state of the key signal, the acquisition state includes acquired and not acquired, exemplarily, when the signal acquisition identifier is false (or the corresponding feature value of the signal acquisition identifier is 0), it indicates that the key signal is not acquired, when the signal acquisition identifier is true (or the corresponding feature value of the signal acquisition identifier is 1), it indicates that the key signal is acquired.

[0113] Based on this, according to the second conversion rule in the signal conversion rule, when the acquisition state of the key signal represented by the signal acquisition identifier is not acquired, the key signal in the signal to be connected is traversed until the first key object whose key signal state is true is acquired, the ASCII code flag value of the key object is acquired, the ASCII code flag value is used to represent the sending state of the ASCII code, if the sending state represented by the ASCII code flag value is not sent, the ASCII code value of the key object is acquired and then it is assigned to the output interface value of the sender to obtain the second target signal used for connection, then the feature value of the ASCII code flag value is switched, and the ASCII code flag value is set to the feature value corresponding to the sent state. Wherein, the key signal state is used to represent whether the corresponding key object is triggered, if the key object is triggered, the corresponding key signal state of the key object is true, if the key object is not triggered, the corresponding key signal state of the key object is false. The ASCII code value of each key object is generated and saved when the key object is defined.

[0114] In the instance definition of each relevant button object, the ASCII code value corresponding to the button object in the real machine system is stored. In the current running cycle, the output interface value is set to 0 and the ASCII code flag value is set to false. In the current running cycle, the button signal state sent by the sender is traversed. When a certain relevant button signal state is true and the ASCII code flag value is false, the ASCII code value of the button object is read and assigned to the output interface value. After completion, the ASCII code flag value is set to true to switch the feature value of the ASCII code flag value. The use of the ASCII code flag value is to prevent the simultaneous pressing of multiple buttons, i.e., when multiple button objects have true button signal states in the current running cycle, the ASCII code value of the first button is taken as the output.

[0115] Preferably, the signal to be docked can also include a switch signal, the signal conversion rule corresponding to the signal type of the signal to be docked can also include a third conversion rule corresponding to the switch signal, and the target signal for docking can also include a third target signal corresponding to the switch signal. Based on this, in step 300, the signal to be docked is converted according to the signal conversion rule corresponding to the signal type of the signal to be docked to obtain the target signal for docking, which can also include:

[0116] In step 350, the first switch value of the switch signal in the signal to be docked is obtained according to the third conversion rule in the signal conversion rule.

[0117] In step 351, the second switch value corresponding to the first switch value is obtained based on a preset switch value mapping table. The switch mapping table is generated when the switch object is instance-defined.

[0118] In step 352, the first switch value is replaced with the second switch value to obtain the third target signal for docking.

[0119] For the switch type signal, the values defined by the cockpit simulation device for different gears of the switch are different from those defined by the real machine system. For example, the three gears of the page display mode switch on the cockpit simulation device end conversion panel (RCP) are defined as 1, 2 and 3, while the corresponding definitions of the real machine system end are 0, 2 and 1. Therefore, the values defined by the two ends for the switch need to be mapped to achieve signal conversion. Specifically, according to the third conversion rule corresponding to the switch type signal, the first switch value of the switch type signal in the signal to be interfaced is obtained, and the second switch value corresponding to the first switch value is obtained based on the preset switch value mapping table. The switch mapping table is generated when the switch object is instance-defined. The second switch value is used to replace the first switch value in the switch type signal to obtain the third switch signal for interfacing. The first switch value is the value defined by the sender of the signal to be interfaced for the switch object, and the second switch value is the value defined by the receiver of the signal to be interfaced for the switch object.

[0120] When each switch object is instance-defined, two groups of arrays are pre-set, and the switch values defined by the two end systems are stored in the same order according to the definitions of the switch gears of the two end systems. In the current running period, based on the preset switch value mapping table, the switch value of the switch gear in the switch type signal sent by the sender is compared with the switch value defined by the receiver. When the switch value corresponding to the receiver is found, the switch value of the same array number in the receiver array is output as the result to obtain the third target signal corresponding to the switch type signal for interfacing.

[0121] Preferably, if the signal to be interfaced includes a lamp type signal, the signal conversion rule corresponding to the signal type of the signal to be interfaced can further include a fourth conversion rule corresponding to the lamp type signal, and the target signal for interfacing can further include a fourth target signal corresponding to the lamp type signal. Based on this, in step 300, the signal to be interfaced is converted according to the signal conversion rule corresponding to the signal type of the signal to be interfaced to obtain the target signal for interfacing, which can further include:

[0122] In step 360, according to the fourth conversion rule in the signal conversion rule, a count variable is defined, and the lamp type signal in the signal to be interfaced is traversed to obtain the value of the two-dimensional array of each lamp type object. The value is used to represent the effective state of the lamp type signal. The lamp type signal includes a flashing flag bit, a flashing frequency and a light state proportion. The flashing flag bit is used to represent the flashing state of the lamp type object.

[0123] The light class object is an instance definition of an indicating light of a receiving party of the signal to be docked; the two-dimensional array is composed of a device quantity attribute value and a single device signal quantity attribute value, and the device quantity attribute value and the single device signal quantity attribute value are generated when the light class object is instance defined;

[0124] In step 361, if the flicker flag is true and the value bit is false, a flicker count value of the light class object is determined according to the flicker frequency and the light-on state proportion; the flicker count value includes a light-off count value and a light-on count value;

[0125] In step 362, if the cumulative value of the count variable is less than the light-off count value, the cumulative value of the count variable is accumulated according to the period of the light class signal until the cumulative value of the count variable is greater than or equal to the light-off count value; the value bit is true to convert the effective state of the light class signal to obtain a fourth target signal for docking, and the cumulative value of the count variable is cleared.

[0126] In step 363, if the flicker flag is true and the value bit is true, the cumulative value of the count variable is accumulated according to the period of the light class signal until the cumulative value of the count variable is greater than or equal to the light-on count value; the value bit is false to convert the effective state of the light class signal, and the cumulative value of the count variable is cleared.

[0127] For the lamp signal, the indicator light of a single simulation device needs to receive input signals of multiple devices, therefore, the number of input interfaces of the lamp signal should be configurable, and the running frequency between the real machine system and the cockpit simulation device is different, which involves different flashing frequencies of the indicator light, thus the lamp signal needs to be converted. Specifically, according to a fourth conversion rule corresponding to the lamp signal in the to-be-connected signal, a counting variable of the indicator light object is defined, and the lamp signal in the to-be-connected signal is traversed to obtain a value bit of a two-dimensional array of each lamp object. The lamp object is obtained by instance definition of the indicator light of the receiver of the to-be-connected signal, and the two-dimensional array of the lamp object is composed of a device number attribute value and a single device signal number attribute value of the lamp object, which are generated when the lamp object is instance defined. The value bit of the two-dimensional array is used to represent the validity of the lamp signal, that is, the validity of the sent lamp signal. If the value bit is true, it means that the sent lamp signal is a valid signal, and the corresponding lamp object is in the light-on state. If the value bit is false, it means that the sent lamp signal is an invalid signal, and the corresponding lamp object is in the light-off state. Optionally, the lamp signal includes a flashing flag bit, a flashing frequency and a light-on state proportion, wherein the flashing flag bit is used to represent the flashing state of the lamp object, that is, whether the indicator light needs to flash. In the real machine system, some indicator lights are in a constant light state when their corresponding lamp signal is valid, and some indicator lights such as indicator lights MW and MC are in a flashing state when their corresponding lamp signal is valid.

[0128] Optionally, for the indicator light in the flashing state, the flashing frequency and the light-on state proportion are involved. The light-on state proportion is the proportion of the time that the indicator light is on in a flashing cycle. For example, when the lamp signal corresponding to the indicator light MC is true, the indicator light can flash at a frequency of 1 Hz, and be on for 70% of the time and off for 30% of the time in a flashing cycle, that is, the indicator light flashes for 0.7 seconds in the light-on state and 0.3 seconds in the light-off state in 1 second. The indicator light MW can flash at a frequency of 3 Hz, and be on for 50% of the time and off for 50% of the time in a flashing cycle, that is, the indicator light flashes for half of the time in the light-on state and half of the time in the light-off state in about 0.33 seconds. According to the flashing frequency and the light-on state proportion of the lamp object, the flashing count value of the lamp object is calculated. Optionally, the count value of the light-on state = the running frequency of the receiver of the to-be-connected signal / the flashing frequency * the light-on state proportion; the count value of the light-off state = the running frequency of the receiver of the to-be-connected signal / the flashing frequency * (1-the light-on state proportion). When the indicator light flashes at the same flashing frequency under different running frequencies, the light-on state proportion in a flashing cycle is the same. If the corresponding light-on time is to be kept the same, the validity of the lamp signal needs to be converted according to the running frequency of the signal receiver.

[0129] When instantiating a light object, a two-dimensional array pointer is pre-set. The first dimension of the array describes the number of light objects sending the signal, the specific number depending on the number of receiving instances of that type of indicator light. The second dimension describes the number of ports. For a single light object instance, there are multiple input signal interfaces. On the actual device system, multiple application instances will send the same input signal, for example... Figure 2 The system consists of five IDU modules (IDU1-IDU5) that send MW / MC warning light signals. Each IDU module sends two sets of backup A and B port light signals to the MW / MC warning light on the driver's or passenger's side. Each set of light signals includes an interface indicating whether the indicator light is on or off, and a corresponding interface indicating whether the signal is valid or invalid. Both interface values ​​are Boolean. The MW / MC warning light on the current side simultaneously receives output signals from the five IDU modules, totaling ten sets of light signals to be matched. Each set of light signals is ORed; that is, if any set of light signals is valid and the light is on, the light signals are converted for signal matching, and the valid light signals are sent to the signal receiver.

[0130] Specifically, the blinking behavior of the lamp object is actually achieved by alternately setting the valid and invalid states of its corresponding lamp signal. This setting of valid and invalid lamp signals is based on switching numerical bits. The input interface of the lamp object is defined as a Boolean two-dimensional array pointer, defining the device quantity attribute value and the single device signal quantity attribute value for the input signal. When declaring the lamp object in the second-level subclass (simulation device class), the number of input signal devices and the single device signal quantity are explicitly specified and assigned to the device quantity attribute value and the single device signal quantity attribute value, respectively. When instantiating the lamp object in the constructor of the second-level subclass (simulation device class), the device quantity attribute value and the single device signal quantity attribute value are used as the row and column numbers of the input interface two-dimensional array. During the current runtime cycle, the period of the lamp signal is counted using a counter variable defined within the second-level subclass.

[0131] In one embodiment, if the flicker flag bit is true and the value bit is false, indicating that the corresponding lamp class object has a flickering behavior, then the flicker count value of the lamp class object is calculated according to the flicker frequency and the lamp-on state proportion in the lamp class signal, and the flicker count value includes a lamp-on count value and a lamp-off count value. Exemplarily, the lamp-on count value and the lamp-off count value are calculated in the manner of lamp-on count value = operating frequency of the signal receiving party to be docked / flicker frequency * lamp-on state proportion; lamp-off count value = operating frequency of the signal receiving party to be docked / flicker frequency * (1-lamp-on state proportion), respectively. If the value bit of the lamp class signal to be docked is false, at this time the lamp class signal sent to the signal receiving party to be docked is an invalid signal, and the corresponding lamp class object is in a lamp-off state, then it is judged whether the cumulative value of the current count variable is less than the lamp-off count value. If yes, then the cumulative value of the count variable is accumulated every period of the lamp class signal, and the cumulative value of the count variable corresponds to 1 added every period of the lamp class signal, and the cycle continues until the cumulative value of the current count variable is greater than or equal to the lamp-off count value, then the value bit of the output lamp class signal to be docked is true, so as to convert the valid state of the lamp class signal and obtain the fourth target signal for docking, and the cumulative value of the count variable is cleared at this time. At this time, the flicker flag bit of the lamp class signal is true, and the value bit is true, in this case, the cumulative value of the count variable is accumulated again every period of the lamp class signal and compared with the lamp-on count value, and when the cumulative value of the count variable is less than the lamp-on count value, the valid lamp class signal is continuously sent to the signal receiving party to be docked according to the operating frequency of the signal receiving party to be docked, so as to obtain the fourth target signal for docking, so that the lamp class object is in a lamp-on state. Until the cumulative value of the count variable is greater than or equal to the lamp-on count value, the value bit of the lamp class signal to be docked is false, so as to convert the valid state of the lamp class signal and obtain the fourth target signal for docking, so that the lamp class object is in a lamp-off state, and the cumulative value of the count variable is cleared. In this way, the valid state of the lamp class signal to be docked is converted periodically and then sent to the signal receiving party, so as to realize the flickering behavior of the indicator lamp.

[0132] Optionally, the period of the lamp signal is determined according to the operating frequency of the signal receiving side to be docked, the operating frequency of the conversion rule definition module is determined according to the operating frequency of the signal receiving side to be docked, or the operating frequency of the conversion rule definition module is determined according to the operating frequency of the high-frequency side of the signal receiving side to be docked and the signal sending side to be docked. In an embodiment, when the signal to be docked only includes the lamp signal, the conversion rule definition module acquires the lamp signal according to the operating frequency of the signal receiving side to be docked, and counts the period of the lamp signal. When the operating frequency of the signal receiving side to be docked changes, the flicker count value changes accordingly, so that the flicker frequency and the lamp-on state ratio of the lamp object can remain unchanged. In another embodiment, when the signal to be docked includes the lamp signal, the direction value signal, the key signal and the switch signal, the calculation method of the flicker count value is: lamp-on count value = operating frequency of the conversion rule definition module / flicker frequency* lamp-on state ratio, and lamp-off count value = operating frequency of the conversion rule definition module / flicker frequency*(1-lamp-on state ratio). The conversion rule definition module operates according to the operating frequency of the high-frequency side of the signal sending side to be docked and the signal receiving side to be docked. At this time, the lamp-on count value = operating frequency of the high-frequency side / flicker frequency* lamp-on state ratio, and the lamp-off count value = operating frequency of the high-frequency side / flicker frequency*(1-lamp-on state ratio); or the conversion rule definition module operates according to a third operating frequency, which is higher than the operating frequency of the high-frequency side of the signal sending side to be docked and the signal receiving side to be docked, or the third operating frequency is an integer multiple of the operating frequency of the high-frequency side of the signal receiving side to be docked and the signal sending side to be docked; at this time, the lamp-on count value = third operating frequency / flicker frequency* lamp-on state ratio, and the lamp-off count value = third operating frequency / flicker frequency*(1-lamp-on state ratio). When the operating frequency of the conversion rule definition module changes, the flicker count value changes accordingly, so that the fourth target signal for docking sent to the signal receiving side to be docked can make the flicker frequency and the lamp-on state ratio of the lamp object remain unchanged.

[0133] It is known that if the flicker flag is false and the value bit is true, the corresponding lamp signal is continuously valid, and the corresponding lamp object is in a constant-on state. If the flicker flag is false and the value bit is false, the corresponding lamp signal is an invalid signal, and the corresponding lamp object is in a constant-off state.

[0134] The signal conversion rule definition module is integrated according to the requirements of the iSim simulation platform architecture, is used to simulate and simulate the logical functions of the cockpit equipment of the display and control system, such as equipment power-on and power-off, equipment failure, display screen brightness adjustment, etc., and is used to convert and send different types of signals such as indicator lights, keys, knobs and switches between the real machine system and the cockpit simulation equipment, to complete the signal docking between the real machine system and the cockpit simulation equipment.

[0135] In the embodiment, the running frequency of signal conversion is greater than or equal to the high frequency end of the two end systems to be docked, or is an integer multiple of the running frequency of the two end systems, so that the running frequency of signal conversion is greater than or equal to the high frequency end of the two end systems to be docked, or is an integer multiple of the running frequency of the two end systems, and then the transmission and reception of the signals of the two end systems are matched through the step counting trigger. For the signal transmitted in each running period of the signal to be docked, it is judged whether the signal should be transmitted to the receiving end in the current running period according to the period step conversion. Alternatively, the conversion process of the signal to be docked is split by setting a buffer area, the conversion of the signal to be docked is split into input and output two independent processes, and the running frequencies of the two end systems to be docked are matched respectively, the data is stored in the buffer area according to the running frequency of the transmitting end, and the data is taken out from the buffer area according to the running frequency of the receiving end, so as to realize accurate identification and docking of the signal while adapting the running frequencies of the two end systems to be docked.

[0136] The signal docking device provided by the application is described below, and the signal docking device described below can be referred to in correspondence with the signal docking method described above.

[0137] Referring to Figure 6 The signal docking device provided by the embodiment of the application comprises:

[0138] The signal acquisition module 10 is configured to acquire the signal to be docked between the flight simulator cockpit simulation device and the real machine system.

[0139] The rule determination module 20 is configured to determine the signal type of the signal to be docked and acquire the signal conversion rule corresponding to the signal type.

[0140] The signal conversion module 30 is configured to convert the signal to be docked according to the signal conversion rule to obtain a target signal for docking.

[0141] In one embodiment, if the signal to be docked comprises a direction value signal, the signal conversion rule comprises a first conversion rule corresponding to the direction value signal, and the target signal comprises a first target signal corresponding to the direction value signal; the signal conversion module 30 is further configured to:

[0142] acquire a first running frequency of the flight simulator cockpit simulation device and a second running frequency of the real machine system;

[0143] determine the high frequency end of the flight simulator cockpit simulation device and the real machine system according to the first running frequency and the second running frequency;

[0144] According to the first conversion rule in the signal conversion rule and the running frequency of the high-frequency end, a directional numerical value signal in the signal to be docked is converted to obtain a first target signal for docking.

[0145] In one embodiment, the signal conversion module 30 is further configured to:

[0146] According to the first conversion rule in the signal conversion rule and the running frequency of the high-frequency end, a third running frequency is determined; the third running frequency is greater than or equal to the running frequency of the high-frequency end;

[0147] Based on the third running frequency, the directional numerical value signal in the signal to be docked is up-sampled to obtain an up-sampled signal;

[0148] Based on the running frequency of the receiver of the signal to be docked, the up-sampled signal is down-sampled to obtain a first target signal for docking; the number of cycles of the first target signal is the same as the number of cycles of the directional numerical value signal.

[0149] In one embodiment, the signal conversion module 30 is further configured to:

[0150] If the high-frequency end is the sender of the signal to be docked, according to the first conversion rule in the signal conversion rule, the signal to be docked is sent to a preset cache area according to the running frequency of the high-frequency end for caching; the caching time length of the signal to be docked in the cache area is the difference between the cycle time length of the first running frequency and the second running frequency;

[0151] Based on the running frequency of the receiver of the signal to be docked, the cached signal to be docked is obtained from the cache area to obtain a first target signal for docking;

[0152] If the high-frequency end is the receiver of the signal to be docked, according to the first conversion rule in the signal conversion rule, the signal to be docked is sent to a preset cache area according to the running frequency of the low-frequency end for caching;

[0153] Based on the running frequency of the high-frequency end, the cached signal to be docked is obtained from the cache area to obtain a first target signal for docking.

[0154] In one embodiment, if the signal to be docked includes a key signal, the signal conversion rule includes a second conversion rule corresponding to the key signal, and the target signal includes a second target signal corresponding to the key signal; the signal conversion module 30 is further configured to:

[0155] According to a second conversion rule in the signal conversion rule, a signal acquisition identifier of a key type signal in the signal to be docked is detected, the signal acquisition identifier is used to represent an acquisition state of the key type signal, and the acquisition state includes acquired and not acquired;

[0156] If the acquisition state represented by the signal acquisition identifier is not acquired, the key type signal is traversed until a first key object of the sender of the signal to be docked is acquired and the key signal state is true;

[0157] An ASCII code flag value of the key object is acquired, the ASCII code flag value is used to represent a sending state of an ASCII code of the key object, and the sending state includes sent and not sent;

[0158] If the sending state represented by the ASCII code flag value is not sent, an ASCII code value of the key object is acquired to obtain a second target signal for docking, and the ASCII code value is generated and saved when the key object is defined as an instance.

[0159] In one embodiment, if the signal to be docked includes a switch type signal, the signal conversion rule includes a third conversion rule corresponding to the switch type signal, and the target signal includes a third target signal corresponding to the switch type signal; the signal conversion module 30 is further configured to:

[0160] According to a third conversion rule in the signal conversion rule, a first switch value of a switch type signal in the signal to be docked is acquired;

[0161] Based on a preset switch value mapping table, a second switch value corresponding to the first switch value is acquired, and the switch mapping table is generated when the switch object is defined as an instance;

[0162] The first switch value is replaced by the second switch value to obtain a third target signal for docking.

[0163] If the signal to be docked includes a light type signal, the signal conversion rule includes a fourth conversion rule corresponding to the light type signal, and the target signal includes a fourth target signal corresponding to the light type signal; the signal conversion module 30 is further configured to:

[0164] According to a fourth conversion rule in the signal conversion rule, a counting variable is defined, and a light type signal in the signal to be docked is traversed to acquire a value position of a two-dimensional array of each light type object;

[0165] The light class object is an instance definition of an indicating light of a receiving party of the signal to be docked; the two-dimensional array is composed of a device quantity attribute value and a single device signal quantity attribute value, the device quantity attribute value and the single device signal quantity attribute value are generated when the light class object is instance defined; the numerical bit is used to represent the effective state of the light class signal; the light class signal includes a flashing flag bit, a flashing frequency and a light on state proportion; the flashing flag bit is used to represent the flashing state of the light class object;

[0166] If the flashing flag bit is true and the numerical bit is false, the flashing count value of the light class object is determined according to the flashing frequency and the light on state proportion; the flashing count value includes a light off count value and a light on count value;

[0167] In the case that the cumulative value of the count variable is less than the light off count value, the cumulative value of the count variable is accumulated according to the period of the light class signal, until the cumulative value of the count variable is greater than or equal to the light off count value, the numerical bit is true, the effective state of the light class signal is converted to obtain a fourth target signal for docking, and the cumulative value of the count variable is cleared;

[0168] In the case that the flashing flag bit is true and the numerical bit is true, the cumulative value of the count variable is accumulated according to the period of the light class signal, until the cumulative value of the count variable is greater than or equal to the light on count value, the numerical bit is false, the effective state of the light class signal is converted to obtain a fourth target signal for docking, and the cumulative value of the count variable is cleared.

[0169] Figure 7 An example of an entity structure diagram of an electronic device is shown as Figure 7 The electronic device can include a processor 710, a communications interface 720, a memory 730 and a communications bus 740, wherein the processor 710, the communications interface 720 and the memory 730 complete mutual communication through the communications bus 740. The processor 710 can call the logic instructions in the memory 730 to execute a signal docking method, the method comprising:

[0170] Obtaining a signal to be docked between a flight simulator cockpit simulation device and a real machine system;

[0171] Determining the signal type of the signal to be docked, and obtaining the signal conversion rule corresponding to the signal type;

[0172] According to the signal conversion rule, the signal to be docked is converted to obtain a target signal for docking.

[0173] In addition, the logic instructions in the memory 730 described above can be implemented in the form of a software function unit and sold or used as an independent product, and can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0174] In another aspect, the present application also provides a computer program product, which includes a computer program, the computer program can be stored on a non-transitory computer readable storage medium, and the computer program is executed by a processor, so that the computer can execute the signal docking method provided by the above-mentioned methods, and the method includes:

[0175] Obtaining a signal to be docked between a flight simulator cockpit simulation device and a real machine system;

[0176] Determining the signal type of the signal to be docked, and obtaining the signal conversion rule corresponding to the signal type;

[0177] According to the signal conversion rule, the signal to be docked is converted to obtain a target signal for docking.

[0178] In another aspect, the present application also provides a computer program product, which includes a computer program, the computer program can be stored on a non-transitory computer readable storage medium, and the computer program is executed by a processor, so that the computer can execute the signal docking method provided by the above-mentioned methods, and the method includes:

[0179] Obtaining a signal to be docked between a flight simulator cockpit simulation device and a real machine system;

[0180] Determining the signal type of the signal to be docked, and obtaining the signal conversion rule corresponding to the signal type;

[0181] According to the signal conversion rule, the signal to be docked is converted to obtain a target signal for docking.

[0182] The device embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed to multiple network units. Part or all of the modules can be selected to achieve the purposes of the embodiments according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0183] Through the description of the above embodiments, those skilled in the art can clearly understand that the embodiments can be realized by means of software and the necessary general hardware platform, and of course can also be realized by hardware. Based on such understanding, the above technical solutions can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiments.

[0184] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method of signal interfacing, the method comprising: The method comprises the following steps: acquiring a signal to be connected between a flight simulator cockpit simulation device and a real machine system; the signal to be connected comprises at least one of a direction value signal, a key signal, a switch signal and a lamp signal; determining the signal type of the signal to be connected, and acquiring the signal conversion rule corresponding to the signal type; performing conversion processing on the signal to be connected according to the signal conversion rule to obtain a target signal for connection; if the signal to be connected comprises a direction value signal, the signal conversion rule comprises a first conversion rule corresponding to the direction value signal, and the target signal comprises a first target signal corresponding to the direction value signal; the conversion processing on the signal to be connected according to the signal conversion rule to obtain a target signal for connection comprises: acquiring a first operating frequency of the flight simulator cockpit simulation device and a second operating frequency of the real machine system; determining a high-frequency end in the flight simulator cockpit simulation device and the real machine system according to the first operating frequency and the second operating frequency; determining a third operating frequency according to the first conversion rule in the signal conversion rule and the operating frequency of the high-frequency end; the third operating frequency is greater than or equal to the operating frequency of the high-frequency end; performing up-sampling on the direction value signal in the signal to be connected based on the third operating frequency to obtain an up-sampled signal; performing down-sampling on the up-sampled signal based on the operating frequency of the receiver of the signal to be connected to obtain a first target signal for connection; the cycle number of the first target signal is the same as the cycle number of the direction value signal.

2. The signal interfacing method of claim 1, wherein, if the signal to be connected comprises a key signal, the signal conversion rule comprises a second conversion rule corresponding to the key signal, and the target signal comprises a second target signal corresponding to the key signal; the conversion processing on the signal to be connected according to the signal conversion rule to obtain a target signal for connection comprises: detecting a signal acquisition identifier of the key signal in the signal to be connected according to the second conversion rule in the signal conversion rule; the signal acquisition identifier is used to represent the acquisition state of the key signal; the acquisition state comprises acquired and not acquired; if the acquisition state represented by the signal acquisition identifier is not acquired, traversing the key signal until a first key signal state of the sender of the signal to be connected is a key object that is true; acquiring an ASCII code flag value of the key object; the ASCII code flag value is used to represent the sending state of the ASCII code of the key object; the sending state comprises sent and not sent; if the sending state represented by the ASCII code flag value is not sent, acquiring an ASCII code value of the key object to obtain a second target signal for connection; the ASCII code value is generated and saved when the key object is defined.

3. The signal interfacing method of claim 1, wherein, If the signal to be docked includes a switch signal, the signal conversion rule includes a third conversion rule corresponding to the switch signal, and the target signal includes a third target signal corresponding to the switch signal; the conversion processing of the signal to be docked according to the signal conversion rule to obtain the target signal for docking, comprising: According to the third conversion rule in the signal conversion rule, the first switch value of the switch signal in the signal to be docked is obtained; Based on the preset switch value mapping table, the second switch value corresponding to the first switch value is obtained; the switch mapping table is generated when the switch object is defined; The first switch value is replaced by the second switch value to obtain the third target signal for docking.

4. The signal interfacing method of claim 1, wherein, If the signal to be docked includes a lamp signal, the signal conversion rule includes a fourth conversion rule corresponding to the lamp signal, and the target signal includes a fourth target signal corresponding to the lamp signal; the conversion processing of the signal to be docked according to the signal conversion rule to obtain the target signal for docking, comprising: According to the fourth conversion rule in the signal conversion rule, define a counting variable and traverse the lamp signal in the signal to be docked to obtain the value of the two-dimensional array of each lamp object; The lamp object is obtained by instance definition of the indicator light of the receiver of the signal to be docked; the two-dimensional array is composed of the device quantity attribute value and the single device signal quantity attribute value, and the device quantity attribute value and the single device signal quantity attribute value are generated when the lamp object is defined; the value position is used to represent the effective state of the lamp signal; the lamp signal includes a flashing flag bit, a flashing frequency and a lamp light state proportion; the flashing flag bit is used to represent the flashing state of the lamp object; If the flashing flag bit is true and the value position is false, determine the flashing count value of the lamp object according to the flashing frequency and the lamp light state proportion; the flashing count value includes a lamp off count value and a lamp on count value; In the case that the cumulative value of the counting variable is less than the lamp off count value, the cumulative value of the counting variable is accumulated according to the period of the lamp signal until the cumulative value of the counting variable is greater than or equal to the lamp off count value, the value position is true, the effective state of the lamp signal is converted to obtain the fourth target signal for docking, and the cumulative value of the counting variable is cleared. In the case that the flashing flag bit is true and the value position is true, the cumulative value of the counting variable is accumulated according to the period of the lamp signal until the cumulative value of the counting variable is greater than or equal to the lamp on count value, the value position is false, the effective state of the lamp signal is converted to obtain the fourth target signal for docking, and the cumulative value of the counting variable is cleared.

5. A signal interface device, characterized by Comprising: A signal acquisition module for acquiring a signal to be docked between a flight simulator cockpit simulation device and a real machine system; The signal to be docked includes at least one of a direction value signal, a key signal, a switch signal, and a lamp signal. A rule determination module is configured to determine a signal type of the signal to be docked and acquire a signal conversion rule corresponding to the signal type. A signal conversion module is configured to perform conversion processing on the signal to be docked according to the signal conversion rule to obtain a target signal for docking. If the signal to be docked includes a direction value signal, the signal conversion rule includes a first conversion rule corresponding to the direction value signal, and the target signal includes a first target signal corresponding to the direction value signal; the signal conversion module is further configured to: acquire a first running frequency of the flight simulator cockpit simulation device and a second running frequency of the real machine system; determine a high-frequency end in the flight simulator cockpit simulation device and the real machine system according to the first running frequency and the second running frequency; determine a third running frequency according to the first conversion rule in the signal conversion rule and the running frequency of the high-frequency end; the third running frequency is greater than or equal to the running frequency of the high-frequency end; perform up-sampling on the direction value signal in the signal to be docked based on the third running frequency to obtain an up-sampled signal; perform down-sampling on the up-sampled signal based on a running frequency of a receiver of the signal to be docked to obtain the first target signal for docking; a cycle number of the first target signal is the same as a cycle number of the direction value signal.

6. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the program to implement the steps of the signal docking method according to any one of claims 1 to 4.

7. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the signal docking method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Portable aero-engine control system hardware-in-the-loop simulation platform

    CN117539167A