CN114461703A - Multichannel data processing method and device, electronic equipment and storage medium - Google Patents

Multichannel data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114461703A
CN114461703A CN202210382747.2A CN202210382747A CN114461703A CN 114461703 A CN114461703 A CN 114461703A CN 202210382747 A CN202210382747 A CN 202210382747A CN 114461703 A CN114461703 A CN 114461703A
Authority
CN
China
Prior art keywords
channel
data
new data
comparator
channels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210382747.2A
Other languages
Chinese (zh)
Other versions
CN114461703B (en
Inventor
邱兆阳
付立民
张盼盼
陈�光
刘迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRSC Research and Design Institute Group Co Ltd
Original Assignee
CRSC Research and Design Institute Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRSC Research and Design Institute Group Co Ltd filed Critical CRSC Research and Design Institute Group Co Ltd
Priority to CN202210382747.2A priority Critical patent/CN114461703B/en
Publication of CN114461703A publication Critical patent/CN114461703A/en
Application granted granted Critical
Publication of CN114461703B publication Critical patent/CN114461703B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/58Random or pseudo-random number generators
    • G06F7/588Random number generators, i.e. based on natural stochastic processes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • G06Q50/265Personal security, identity or safety

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Probability & Statistics with Applications (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Mathematical Physics (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Fuzzy Systems (AREA)
  • Human Resources & Organizations (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a multichannel data processing method, a multichannel data processing device, electronic equipment and a storage medium. The method comprises the following steps: sending inconsistent data independently generated by the functional modules corresponding to the channels in the combined type fault safety architecture to other channels in the combined type fault safety architecture; independently processing the inconsistent data generated by the functional module corresponding to each channel and the received inconsistent data generated by the functional module corresponding to each other channel in the combined type fault safety architecture according to a preset data processing method, and obtaining new data after the independent processing of each channel; and determining subsequent input data of each channel according to the new data processed by each channel independently. The method and the device can improve the recognition capability and the applicability of the combined type fault safety technology to channel abnormity, play the role of the combined type fault safety technology, improve the safety and ensure the independence of the channel.

Description

Multichannel data processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of rail transit technologies, and in particular, to a method and an apparatus for processing multi-channel data, an electronic device, and a storage medium.
Background
In order to meet the high safety requirement in the field of rail transit and avoid the generation of dangerous side output of the system, a combined type fault safety technology is generally adopted. I.e. a safety critical function is performed by at least 2 independent channels, allowing external output permission to be provided only if more than a certain number of channels are agreed upon. In the combinational fail-safe architecture, the function of each independent channel is the same, and there are two types of data: (1) as long as each channel runs normally, the numerical values of the data generated by each channel are consistent; most of the data involved in a channel is of this type; (2) even if each channel operates normally, different channels may still produce inconsistent results, such as random numbers, time, some special discrete values, and the like. The data type (2) is called multi-channel inconsistent data, which is abbreviated as inconsistent data.
In the combined type failure safety architecture, because each channel is independent, when 'multi-channel inconsistent data' is involved, different channels generate different numerical values, and the subsequent two channels use different data for calculation, so that the output of the two channels is possibly inconsistent, and the system operation is influenced; in order to avoid the problem, a method commonly adopted at present is that one channel acquires such a value, the value is used in the channel and is sent to another channel for use, the method loses the independence of the channels to a certain extent, the effect of the combined type failure safety framework is also failed, the trusted data is only generated by a single channel, and therefore common cause failure is caused, wherein the common cause failure refers to failure of a plurality of channels caused by a single reason, and therefore the system fails.
Disclosure of Invention
The present invention has been made to solve, at least in part, the technical problems occurring in the prior art, and provides a multi-channel data processing method, an apparatus, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present invention provides a multichannel data processing method, including:
sending inconsistent data independently generated by the functional modules corresponding to the channels in the combined type fault safety architecture to other channels in the combined type fault safety architecture;
independently processing the inconsistent data generated by the functional module corresponding to each channel and the received inconsistent data generated by the functional module corresponding to each other channel in the combined type fault safety architecture according to a preset data processing method, and obtaining new data after the independent processing of each channel;
and determining subsequent input data of each channel according to the new data processed by each channel independently.
Optionally, before sending the inconsistent data independently generated by the functional module corresponding to each channel in the combined type failure safety architecture to each other channel in the combined type failure safety architecture, the method includes the following steps:
selecting a combined type failure safety architecture mode;
determining the total number of channels according to the selected architecture mode;
the method comprises the steps that modules corresponding to all channels in a combined type failure safety framework independently generate inconsistent data, wherein when the inconsistent data independently generated by the modules corresponding to all the channels comprise random numbers, the lengths of the generated random numbers are consistent.
Optionally, the independently processing the inconsistent data generated by the functional module corresponding to each channel and the received inconsistent data independently generated by the functional module corresponding to each other channel in the combined fail-safe architecture according to a preset data processing method, so as to obtain new data after the independent processing of each channel, includes the following steps:
each channel respectively acquires the inconsistent data independently generated by the module corresponding to the channel and the inconsistent data independently generated by the modules corresponding to other channels to obtain T1To TNWhich isMiddle T1Inconsistent data, T, independently generated for the module corresponding to channel 1NThe inconsistent data generated independently by the module corresponding to the channel N is obtained, and N is the total number of the channels;
selecting a preset data processing method;
each channel will be T1To TNAccording to a preset data processing method, independently processing to respectively obtain new data X after independent processing of each channel1To XN
Optionally, before determining the subsequent input data of each channel according to the new data after the independent processing of each channel, the method includes the following steps:
and performing data characteristic difference reduction processing on the new data after independent processing of each channel.
Optionally, the data characteristic difference reduction processing on the new data after the independent processing of each channel includes the following steps:
and according to the characteristics of each channel device, the characteristics of the functional module generating the new data and the characteristics of the new data in the combined type fault safety architecture, carrying out data characteristic difference reduction processing on the new data after independent processing of each channel, wherein when the new data comprises random numbers, a random sequence processing method is selected to process the random numbers.
Optionally, when the new data includes a random number, selecting a random sequence processing method to process the random number, including the following steps:
when the new data comprises random numbers, at least one of von Neumann correction, Hash function method and Huffman coding is selected to process the random data.
Optionally, the determining subsequent input data of each channel according to the new data processed independently by each channel includes the following steps:
designing a new data comparator according to the total number of channels of the combined type failure safety architecture;
inputting the new data processed independently by each channel into the new data comparator, and determining the subsequent input data of each channel according to the output data of the new data comparator.
Optionally, designing a new data comparator according to the total number of channels of the combined fail-safe architecture includes the following steps:
when the total number of the channels of the combined type failure safety architecture is two, the designed new data comparator is a two-out-of-two comparator;
when the total number of the channels of the combined type failure safety architecture is three, the designed new data comparator is a two-out-of-three comparator;
when the total number of channels of the combined type fault safety architecture is Ns, the designed new data comparator is a Ns-Ms comparator, wherein Ns is a positive integer larger than 3, and Ms is a positive integer not larger than Ns.
Optionally, the inputting the new data after the independent processing of each channel into the new data comparator, and determining the subsequent input data of each channel according to the output data of the new data comparator, includes the following steps:
when the new data comparator is a two-out-of-two comparator and the new data processed independently by each channel are consistent, the new data comparator outputs the new data processed independently by each channel, and the subsequent input data of each channel is determined according to the data output by the new data comparator;
when the new data comparator is a two-out-of-two comparator and the new data processed independently by each channel are inconsistent, determining that at least one channel is abnormal and each channel does not perform subsequent input;
when the new data comparator is a two-out-of-three comparator and the new data processed independently by at least two channels are consistent, the new data comparator outputs the consistent new data processed independently by the at least two channels, and the subsequent input data of each channel is determined according to the data output by the new data comparator;
when the new data comparator is a two-out-of-three comparator and the new data processed independently by each channel are inconsistent, determining that at least two channels are abnormal and each channel does not perform subsequent input;
when the new data comparator is an Ns-Ms comparator and new data after independent processing of at least Ms channels are consistent, the new data comparator outputs the new data which is consistent after independent processing of at least Ms channels, and subsequent input data of each channel is determined according to the data output by the new data comparator, wherein Ns is a positive integer greater than 3, and Ms is a positive integer not greater than Ns;
and when the new data comparator is an Ns-Ms comparator and the number of channels with the consistent new data processed independently by each channel is less than Ms, determining that at least Ns-Ms +1 channels are abnormal and each channel does not carry out subsequent input.
In a second aspect, an embodiment of the present invention provides a multi-channel data processing apparatus, including:
each channel data sending module is used for sending inconsistent data independently generated by the corresponding functional module of each channel in the combined type fault safety framework to each other channel in the combined type fault safety framework;
each channel data independent processing module is used for independently processing the inconsistent data generated by the function module corresponding to each channel and the received inconsistent data generated by the function module corresponding to each other channel in the combined type fault safety architecture according to a preset data processing method, so as to obtain new data after each channel is independently processed;
and the subsequent input data determining module is used for determining the subsequent input data of each channel according to the new data which is independently processed by each channel.
Optionally, each channel data independent processing module is specifically configured to:
each channel respectively acquires the inconsistent data independently generated by the module corresponding to the channel and the inconsistent data independently generated by the modules corresponding to other channels to obtain T1To TNWherein T is1Inconsistent data, T, independently generated for the module corresponding to channel 1NThe inconsistent data generated independently by the module corresponding to the channel N is obtained, and N is the total number of the channels;
selecting a preset data processing method;
each channel will be T1To TNAccording to a preset data processing method, independently processing to respectively obtain new data X after independent processing of each channel1To XN
Optionally, the method further includes:
the architecture mode selection module is used for selecting a combined type failure safety architecture mode; determining the total number of channels according to the selected architecture mode;
the system comprises an inconsistent data generation module, a random number generation module and a failure safety module, wherein the inconsistent data generation module is used for independently generating inconsistent data by corresponding modules of each channel in a combined failure safety framework, and when the inconsistent data independently generated by the corresponding modules of each channel comprises the random number, the lengths of the generated random numbers are consistent;
and the data characteristic difference reducing module is used for carrying out data characteristic difference reducing processing on the new data which is processed independently by each channel.
Optionally, the data characteristic difference reduction module is specifically configured to:
and performing data characteristic difference reduction processing on the new data after independent processing of each channel according to the characteristics of each channel device, the characteristics of the functional module generating the new data and the characteristics of the new data in the combined type fault safety architecture, wherein when the new data comprises random numbers, at least one of von Neumann correction, Hash function method and Huffman coding is selected to process the random data.
Optionally, the subsequent input data determining module includes:
the comparator design unit is used for designing a new data comparator according to the total number of the channels of the combined type fault safety architecture;
and the subsequent input data determining unit is used for inputting the new data processed by each channel independently into the new data comparator and determining the subsequent input data of each channel according to the output data of the new data comparator.
Optionally, the comparator design unit is specifically configured to:
when the total number of the channels of the combined type failure safety architecture is two, the designed new data comparator is a two-out-of-two comparator;
when the total number of the channels of the combined type failure safety architecture is three, the designed new data comparator is a two-out-of-three comparator;
when the total number of channels of the combined type fault safety architecture is Ns, the designed new data comparator is a Ns-Ms comparator, wherein Ns is a positive integer larger than 3, and Ms is a positive integer not larger than Ns.
Optionally, the subsequent input data determining unit is specifically configured to:
when the new data comparator is a two-out-of-two comparator and the new data processed independently by each channel are consistent, the new data comparator outputs the new data processed independently by each channel, and the subsequent input data of each channel is determined according to the data output by the new data comparator;
when the new data comparator is a two-out-of-two comparator and the new data processed independently by each channel are inconsistent, determining that at least one channel is abnormal and each channel does not perform subsequent input;
when the new data comparator is a two-out-of-three comparator and the new data processed independently by at least two channels are consistent, the new data comparator outputs the consistent new data processed independently by at least two channels, and the subsequent input data of each channel is determined according to the data output by the new data comparator;
when the new data comparator is a two-out-of-three comparator and the new data processed independently by each channel are inconsistent, determining that at least two channels are abnormal and each channel does not perform subsequent input;
when the new data comparator is an Ns-Ms comparator and new data after independent processing of at least Ms channels are consistent, the new data comparator outputs the new data which is consistent after independent processing of at least Ms channels, and subsequent input data of each channel is determined according to the data output by the new data comparator, wherein Ns is a positive integer greater than 3, and Ms is a positive integer not greater than Ns;
and when the new data comparator is an Ns-Ms comparator and the number of channels with the consistent new data processed independently by each channel is less than Ms, determining that at least Ns-Ms +1 channels are abnormal and each channel does not carry out subsequent input.
Based on the same inventive concept, an embodiment of the present invention further provides an electronic device, including: the device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the multi-channel data processing method when executing the computer program.
Based on the same inventive concept, the embodiment of the present invention further provides a computer storage medium, in which computer executable instructions are stored, and when the computer executable instructions are executed, the multichannel data processing method is implemented.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
the method comprises the steps that inconsistent data generated independently by a functional module corresponding to each channel are processed independently in each channel in the combined type fault safety framework according to a preset data processing method, if the operation of each channel is normal, the calculation results are consistent, and the condition that the output among the channels is inconsistent due to the fact that different channels use different input data to perform subsequent calculation is avoided, so that the influence of a combined type fault safety technology on the subsequent input under the condition that each channel is normal is avoided, and the identification capability of the combined type fault safety technology on channel abnormity is improved; if a certain channel is abnormal, the calculation results are inconsistent, the combined type fault safety technology plays a role, and the effect of the combined type fault safety technology is realized, namely the trusted data cannot be generated by only a single channel, so that common cause failure can be better avoided, the safety is improved, and the independence of the channels is guaranteed; furthermore, by carrying out data characteristic difference reduction processing on the random numbers included in the new data after independent processing of each channel, the deviation between 0 and 1 in a new random number sequence can be reduced, the information entropy of each bit of digital code in a random sequence is improved, the correlation between the random codes before and after the random number is reduced, the independence of each channel data is ensured, and necessary conditions are provided for realizing the safety guarantee function of the combined type fault safety architecture; the combined type failure safety architecture mode which is more effective and more accordant with the actual situation can be selected according to the actual needs of the rail transit, the total number of the channels is determined, then the comparator which is more effective and more accordant with the actual situation is designed, and the applicability of the combined type failure safety technology and the identification capability of channel abnormity are improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a multi-channel data processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a two-out-of-two combined fail-safe architecture according to an embodiment of the present invention;
FIG. 3 is a detailed process diagram of a two-out-of-two combined fail-safe architecture according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a three-out-of-two combined fail-safe architecture according to an embodiment of the present invention;
FIG. 5 is a detailed process diagram of a three-out-of-two combined fail-safe architecture according to an embodiment of the present invention;
FIG. 6 is a block diagram of a multi-channel data processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device in an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to solve the problems in the prior art, embodiments of the present invention provide a multichannel data processing method and apparatus, an electronic device, and a storage medium.
The "inconsistent data" in the following embodiments means that the functions of the independent channels in the combined fail-safe architecture are the same, and the following two types of data exist, and the present invention is mainly directed to the processing of the (2) th data type. (1) As long as each channel runs normally, the numerical values of the data generated by each channel are consistent; most of the data involved in a channel is of this type. (2) Even if each channel operates normally, different channels may still produce inconsistent results, such as random numbers, time, some special discrete values, and the like; the random numbers generated by the two independent channels which normally operate and are respectively independent by using the random number generator must be different. For convenience of description, the data type (2) is referred to as "inconsistent data".
The "common cause failure" in the following examples refers to: multiple channels fail due to a single cause, rendering the system ineffective.
Example one
An embodiment of the present invention provides a multichannel data processing method, a flow of which is shown in fig. 1, and the method includes the following steps:
step S101: selecting a combined type failure safety architecture mode; determining the total number of channels according to the selected architecture mode; the method comprises the steps that modules corresponding to all channels in a combined type fault safety framework independently generate inconsistent data, wherein when the inconsistent data independently generated by the modules corresponding to all the channels comprise random numbers, the lengths of the generated random numbers are consistent.
Step S102: and sending the inconsistent data independently generated by the functional module corresponding to each channel in the combined type fault safety architecture to each other channel in the combined type fault safety architecture.
Step S103: and independently processing the inconsistent data generated by the functional module corresponding to each channel and the received inconsistent data generated by the functional module corresponding to each other channel in the combined type fault safety architecture according to a preset data processing method, so as to obtain new data processed independently by each channel.
Optionally, the independently processing the inconsistent data generated by the functional module corresponding to each channel and the received inconsistent data independently generated by the functional module corresponding to each other channel in the combined fail-safe architecture according to a preset data processing method, so as to obtain new data after the independent processing of each channel, includes the following steps:
each channel respectively acquires the inconsistent data independently generated by the module corresponding to the channel and the inconsistent data independently generated by the modules corresponding to other channels to obtain T1To TNWherein T is1Inconsistent data, T, independently generated for the module corresponding to channel 1NThe inconsistent data generated independently by the module corresponding to the channel N is obtained, and N is the total number of the channels;
selecting a preset data processing method;
each channel will be T1To TNAccording to a preset data processing method, independently processing to respectively obtain new data X after independent processing of each channel1To XN
Step S104: and performing data characteristic difference reduction processing on the new data after independent processing of each channel.
Optionally, the data characteristic difference reduction processing on the new data after the independent processing of each channel includes the following steps:
and according to the characteristics of each channel device, the characteristics of the functional module generating the new data and the characteristics of the new data in the combined type fault safety architecture, carrying out data characteristic difference reduction processing on the new data after independent processing of each channel, wherein when the new data comprises random numbers, a random sequence processing method is selected to process the random numbers.
Optionally, when the new data includes a random number, selecting a random sequence processing method to process the random number, including the following steps:
when the new data comprises random numbers, at least one of von Neumann correction, Hash function method and Huffman coding is selected to process the random data.
Step S105: and determining subsequent input data of each channel according to the new data processed by each channel independently.
Optionally, the determining subsequent input data of each channel according to the new data processed independently by each channel includes the following steps:
designing a new data comparator according to the total number of channels of the combined type failure safety architecture;
inputting the new data processed independently by each channel into the new data comparator, and determining the subsequent input data of each channel according to the output data of the new data comparator.
Optionally, designing a new data comparator according to the total number of channels of the combined fail-safe architecture includes the following steps:
when the total number of the channels of the combined type failure safety architecture is two, the designed new data comparator is a two-out-of-two comparator;
when the total number of the channels of the combined type failure safety architecture is three, the designed new data comparator is a two-out-of-three comparator;
when the total number of channels of the combined type fault safety architecture is Ns, the designed new data comparator is a Ns-Ms comparator, wherein Ns is a positive integer larger than 3, and Ms is a positive integer not larger than Ns.
Optionally, the inputting the new data after the independent processing of each channel into the new data comparator, and determining the subsequent input data of each channel according to the output data of the new data comparator, includes the following steps:
when the new data comparator is a two-out-of-two comparator and the new data processed independently by each channel are consistent, the new data comparator outputs the new data processed independently by each channel, and the subsequent input data of each channel is determined according to the data output by the new data comparator;
when the new data comparator is a two-out-of-two comparator and the new data processed independently by each channel are inconsistent, determining that at least one channel is abnormal and each channel does not perform subsequent input;
when the new data comparator is a two-out-of-three comparator and the new data processed independently by at least two channels are consistent, the new data comparator outputs the consistent new data processed independently by at least two channels, and the subsequent input data of each channel is determined according to the data output by the new data comparator;
when the new data comparator is a two-out-of-three comparator and the new data processed independently by each channel are inconsistent, determining that at least two channels are abnormal and each channel does not perform subsequent input;
when the new data comparator is an Ns-Ms comparator and new data after independent processing of at least Ms channels are consistent, the new data comparator outputs the new data which is consistent after independent processing of at least Ms channels, and subsequent input data of each channel is determined according to the data output by the new data comparator, wherein Ns is a positive integer greater than 3, and Ms is a positive integer not greater than Ns;
and when the new data comparator is an Ns-Ms comparator and the number of channels with the consistent new data processed independently by each channel is less than Ms, determining that at least Ns-Ms +1 channels are abnormal and each channel does not carry out subsequent input.
For example, if a two-out-of-two combinational fail-safe architecture is selected, the total number of channels is 2. The two-out-of-two combined type fault safety architecture is shown in fig. 2, and consists of 2 mutually independent channels, each channel consists of the same operation module (the functions realized by hardware and software are consistent), and each module has an independent fault detection function; when the operation is carried out, the 2 operation modules work and finish independently, the outputs of the last 2 channels are compared by the comparator, and if the outputs are consistent, the outputs are output.
The two-out-of-two combined fail-safe architecture multi-channel data processing is as follows:
1. let channel 1 produce a value of "
Figure 305097DEST_PATH_IMAGE001
", channel 2 produces a value of"
Figure 682988DEST_PATH_IMAGE002
", i is a numerical serial number, n is a positive integer not less than 1, and represents the numerical length; the process of generating values for channel 1 and channel 2 is independent of each other. If the values generated by channel 1 and channel 2 include random numbers, the lengths of the random numbers generated by the channels are the same.
2. Channel 1 and channel 2 each send their own value to the other.
3. The channel 1 and channel 2 logarithm values a and B are processed in the same way, and if the channel 1 and channel 2 logarithm values A, B are processed in the same way and the values are the same, the values are used
Figure 877209DEST_PATH_IMAGE003
And
Figure 340552DEST_PATH_IMAGE004
generating new values
Figure 153787DEST_PATH_IMAGE005
Instead of the value a and the value B as subsequent inputs. In which the value A, B is treated the same, i.e. a new value
Figure 245240DEST_PATH_IMAGE006
"includes but is not limited to the following methods:
1.
Figure 220149DEST_PATH_IMAGE007
wherein
Figure 170787DEST_PATH_IMAGE008
Figure 912347DEST_PATH_IMAGE009
Is a positive integer.
2.
Figure 999252DEST_PATH_IMAGE010
Wherein
Figure 941800DEST_PATH_IMAGE011
Figure 114156DEST_PATH_IMAGE012
Figure 269193DEST_PATH_IMAGE013
Is a positive integer.
As finally produced
Figure 741763DEST_PATH_IMAGE014
If the number is not an integer, the rounding operation is performed on the non-integer.
Use "
Figure 448688DEST_PATH_IMAGE014
To replace the values in channel 1, respectively "
Figure 108339DEST_PATH_IMAGE015
"sum value in channel 2"
Figure 332647DEST_PATH_IMAGE016
", so that 2 channels have the same value"
Figure 394144DEST_PATH_IMAGE017
And the calculation result is used as subsequent input, so that the inconsistency of the calculation results of 2 channels caused by different numerical values is avoided on the premise of ensuring the channel independence.
The detailed process of the two-out-of-two combined fail-safe architecture is shown in fig. 3, in the figure, external data are respectively input into a channel 1 and a channel 2, input preprocessing refers to the channel 1 and the channel 2 independently processing the input data, respectively exchanging inconsistent data generated independently, and then each channel independently obtains new data according to the same processing method according to the inconsistent data generated independently by the channel and the inconsistent data generated independently by the other channel. And setting a comparator according to the total number of the channels, comparing the new data obtained independently by each channel, outputting the consistent new data by the comparator if the requirements of the comparator are met, taking the data output by the comparator as subsequent input data of each channel, and not performing subsequent input by each channel if the requirements of the comparator are not met.
The two-out-of-three combined type fault safety structure is shown in fig. 4, and consists of 3 mutually independent channels, each channel consists of the same operation module (the functions realized by hardware and software are consistent), and each module has an independent fault detection function; when the device runs, the 3 operation modules work and finish independently, the output of the last 3 channels finishes voting by three or two for the comparator, and the output is output when the condition is met.
The "two out of three" combined fail-safe architecture multi-channel data processing is as follows:
1. let the value produced by channel 1 be "
Figure 412916DEST_PATH_IMAGE018
", channel 2 produces a value of"
Figure 825443DEST_PATH_IMAGE019
", channel 3 produces a value of"
Figure 446917DEST_PATH_IMAGE020
", n is a positive integer not less than 1; the processes for generating values between channels are independent of each other. If the values generated by channel 1, channel 2 and channel 3 include random numbers, the lengths of the random numbers generated by the channels are the same.
2. The channel 1, the channel 2 and the channel 3 respectively send own numerical values to the opposite side;
3. the channel 1, the channel 2 and the channel 3 carry out the same processing on the independent logarithmic values A, B and C, if the channel 1 and the channel 2 carry out the same processingIf the same processing is performed on the value A, B, C by the channel 3, the values are used to generate the same value
Figure 362920DEST_PATH_IMAGE021
Figure 552593DEST_PATH_IMAGE022
And
Figure 186837DEST_PATH_IMAGE023
generating new numerical values
Figure 612002DEST_PATH_IMAGE024
Instead of the value a, the value B and the value C as subsequent inputs.
Use "
Figure 648091DEST_PATH_IMAGE025
To replace the values in channel 1, respectively "
Figure 743086DEST_PATH_IMAGE026
", numerical value in channel 2"
Figure 864626DEST_PATH_IMAGE027
"and numerical value in channel 3"
Figure 827903DEST_PATH_IMAGE028
", so that 3 channels have the same value"
Figure 718498DEST_PATH_IMAGE029
And the calculation result inconsistency of the 3 channels caused by different numerical values is avoided on the premise of ensuring the channel independence.
The detailed process of the "two out of three" combined fail-safe architecture is shown in fig. 5; in the figure, external data are respectively input into a channel 1, a channel 2 and a channel 3, the input preprocessing means that the channel 1, the channel 2 and the channel 3 independently process the input data, respectively and independently generated inconsistent data are exchanged, and then each channel independently obtains new data according to the same processing method according to the inconsistent data independently generated by the channel and the received inconsistent data independently generated by the other two channels. And setting a comparator according to the total number of the channels, comparing the new data obtained independently by each channel, outputting the consistent new data by the comparator if the requirements of the comparator are met, namely at least two new data are consistent, taking the data output by the comparator as the subsequent input data of each channel, and not performing subsequent input by each channel if the requirements of the comparator are not met.
The above is only exemplified by the "two-out-of-two" architecture and the "three-out-of-two" architecture, and other combined fail-safe architectures are also applicable to the multi-channel data processing method.
Similarly, for a "N is M (N ≧ M)" combinational failsafe architecture, there are N independent channels, M being a positive integer. Let the value produced by channel 1 be "
Figure 249974DEST_PATH_IMAGE030
", channel 2 produces a value of"
Figure 593230DEST_PATH_IMAGE031
", channel 3 produces a value of"
Figure 625777DEST_PATH_IMAGE032
", and so on, channel N produces a value of
Figure 370879DEST_PATH_IMAGE033
I is the numerical serial number, n is a positive integer not less than 1, the new numerical value
Figure 338835DEST_PATH_IMAGE034
"includes but is not limited to the following methods:
1.
Figure 169388DEST_PATH_IMAGE035
wherein
Figure 615413DEST_PATH_IMAGE036
Is a positive integer.
2.
Figure 74076DEST_PATH_IMAGE037
Wherein
Figure 212933DEST_PATH_IMAGE038
Is a positive integer.
As finally produced
Figure 530782DEST_PATH_IMAGE039
If the number is not an integer, the rounding operation is performed on the non-integer. If the number values generated by the N channels comprise random numbers, the length of the random numbers generated by each channel is the same.
In the above-mentioned "two-out-of-two" combined type fail-safe architecture, "two-out-of-three" combined type fail-safe architecture, "M-out-of-N" combined type fail-safe architecture, new values may be input to the comparator before new data is input, if necessary
Figure 514919DEST_PATH_IMAGE040
Processing is performed to reduce differences in data characteristics before and after processing. And performing data characteristic difference reduction processing on the new data after independent processing of each channel according to the characteristics of each channel device in the combined type fault safety architecture, the characteristics of the functional module generating the new data and the characteristics of the new data. For example, for random numbers, von neumann correction, Hash function method, huffman coding, etc. may be used to perform data characteristic difference reduction processing on the random numbers, thereby reducing the deviation between 0 and 1 in the new random number sequence, improving the information entropy of each bit of digital code in the random sequence, and reducing the correlation between the preceding and following random codes.
In the method of this embodiment, each channel in the combined fail-safe architecture is independently processed according to a preset data processing method for inconsistent data generated independently by the functional module corresponding to each channel, and if each channel operates normally, the calculation results are consistent, thereby avoiding a situation that output between channels is inconsistent due to subsequent calculation performed by different channels using different input data, and further avoiding an influence of a combined fail-safe technique on subsequent input under a normal situation of each channel, and improving the identification capability of the combined fail-safe technique on channel abnormality; if a certain channel is abnormal, the calculation results are inconsistent, the combined type fault safety technology plays a role, and the effect of the combined type fault safety technology is realized, namely the trusted data cannot be generated by only a single channel, so that common cause failure can be better avoided, the safety is improved, and the independence of the channels is guaranteed; furthermore, by carrying out data characteristic difference reduction processing on the random numbers included in the new data after independent processing of each channel, the deviation between 0 and 1 in a new random number sequence can be reduced, the information entropy of each bit of digital code in the random sequence is improved, the correlation between the random codes before and after the random code is reduced, the independence of each channel data is ensured, and necessary conditions are provided for realizing the safety guarantee function of the combined type fault safety architecture; the combined type failure safety architecture mode which is more effective and more accordant with the actual situation can be selected according to the actual needs of the rail transit, the total number of the channels is determined, then the comparator which is more effective and more accordant with the actual situation is designed, and the applicability of the combined type failure safety technology and the identification capability of channel abnormity are improved.
Example two
A second embodiment of the present invention provides a multi-channel data processing apparatus, whose structure is shown in fig. 6, including:
each channel data sending module 103 is configured to send inconsistent data independently generated by the functional module corresponding to each channel in the combined fail-safe architecture to each other channel in the combined fail-safe architecture;
each channel data independent processing module 104 is configured to independently process, according to a preset data processing method, the inconsistent data independently generated by the function module corresponding to each channel and the received inconsistent data independently generated by the function module corresponding to each other channel in the combined fail-safe architecture, in each channel in the combined fail-safe architecture, so as to obtain new data after each channel is independently processed;
and a subsequent input data determining module 106, configured to determine subsequent input data of each channel according to the new data processed independently by each channel.
Optionally, the channel data independent processing module 104 is specifically configured to:
each channel respectively acquires the inconsistent data independently generated by the module corresponding to the channel and the inconsistent data independently generated by the modules corresponding to other channels to obtain T1To TNWherein T is1Inconsistent data, T, independently generated for the module corresponding to channel 1NThe inconsistent data generated independently by the module corresponding to the channel N is obtained, and N is the total number of the channels;
selecting a preset data processing method;
each channel will be T1To TNAccording to a preset data processing method, independently processing to respectively obtain new data X after independent processing of each channel1To XN
Optionally, the method further includes:
an architecture mode selection module 101, configured to select a combined fail-safe architecture mode; determining the total number of channels according to the selected architecture mode;
an inconsistent data generation module 102, configured to independently generate inconsistent data for modules corresponding to each channel in the combined fail-safe architecture, where when the inconsistent data independently generated by the modules corresponding to each channel includes a random number, the lengths of the generated random numbers are consistent;
and a data characteristic difference reduction module 105, configured to perform data characteristic difference reduction processing on the new data after independent processing of each channel.
Optionally, the data characteristic difference reducing module 105 is specifically configured to:
and performing data characteristic difference reduction processing on the new data after independent processing of each channel according to the characteristics of each channel device, the characteristics of the functional module generating the new data and the characteristics of the new data in the combined type fault safety architecture, wherein when the new data comprises random numbers, at least one of von Neumann correction, Hash function method and Huffman coding is selected to process the random data.
Optionally, the subsequent input data determining module 106 includes:
the comparator design unit is used for designing a new data comparator according to the total number of the channels of the combined type fault safety architecture;
and the subsequent input data determining unit is used for inputting the new data processed independently by each channel into the new data comparator and determining the subsequent input data of each channel according to the output data of the new data comparator.
Optionally, the comparator design unit is specifically configured to:
when the total number of the channels of the combined type failure safety architecture is two, the designed new data comparator is a two-out-of-two comparator;
when the total number of the channels of the combined type failure safety architecture is three, the designed new data comparator is a two-out-of-three comparator;
when the total number of channels of the combined type fault safety architecture is Ns, the designed new data comparator is a Ns-Ms comparator, wherein Ns is a positive integer larger than 3, and Ms is a positive integer not larger than Ns.
Optionally, the subsequent input data determining unit is specifically configured to:
when the new data comparator is a two-out-of-two comparator and the new data processed independently by each channel are consistent, the new data comparator outputs the new data processed independently by each channel, and the subsequent input data of each channel is determined according to the data output by the new data comparator;
when the new data comparator is a two-out-of-two comparator and the new data processed independently by each channel are inconsistent, determining that at least one channel is abnormal and each channel does not perform subsequent input;
when the new data comparator is a two-out-of-three comparator and the new data processed independently by at least two channels are consistent, the new data comparator outputs the consistent new data processed independently by at least two channels, and the subsequent input data of each channel is determined according to the data output by the new data comparator;
when the new data comparator is a two-out-of-three comparator and the new data processed independently by each channel are inconsistent, determining that at least two channels are abnormal and each channel does not perform subsequent input;
when the new data comparator is an Ns-Ms comparator and new data after independent processing of at least Ms channels are consistent, the new data comparator outputs the new data which is consistent after independent processing of at least Ms channels, and subsequent input data of each channel is determined according to the data output by the new data comparator, wherein Ns is a positive integer greater than 3, and Ms is a positive integer not greater than Ns;
and when the new data comparator is an Ns-Ms comparator and the number of channels with the consistent new data processed independently by each channel is less than Ms, determining that at least Ns-Ms +1 channels are abnormal and each channel does not carry out subsequent input.
For example, if a two-out-of-two combinational fail-safe architecture is selected, the total number of channels is 2. The two-out-of-two combined type fault safety architecture is shown in fig. 2, and consists of 2 mutually independent channels, each channel consists of the same operation module (the functions realized by hardware and software are consistent), and each module has an independent fault detection function; when the operation is carried out, the 2 operation modules work and finish independently, the outputs of the last 2 channels are compared by the comparator, and if the outputs are consistent, the outputs are output.
The two-out-of-two combined fail-safe architecture multi-channel data processing is as follows:
1. let the value produced by channel 1 be "
Figure 359247DEST_PATH_IMAGE041
", channel 2 produces a value of"
Figure 403426DEST_PATH_IMAGE042
", i is a numerical serial number, n is a positive integer not less than 1, and represents the numerical length; the process of generating values for channel 1 and channel 2 is independent of each other. If the values generated by channel 1 and channel 2 include random numbers, the lengths of the random numbers generated by the channels are the same.
2. The channel 1 and the channel 2 respectively send own numerical values to the opposite side.
3. Channel 1 and channel 2 log values a, B are treated the same, and if channel 1 and channel 2 log value A, B are treated the same, the values are used
Figure 208571DEST_PATH_IMAGE043
And
Figure 996399DEST_PATH_IMAGE044
generating new values
Figure 836179DEST_PATH_IMAGE045
Instead of the value a and the value B as subsequent inputs. In which the value A, B is treated the same, i.e. a new value
Figure 175893DEST_PATH_IMAGE046
"includes but is not limited to the following:
1.
Figure 202755DEST_PATH_IMAGE047
wherein
Figure 59853DEST_PATH_IMAGE048
Is a positive integer.
2.
Figure 488560DEST_PATH_IMAGE049
Wherein
Figure 140121DEST_PATH_IMAGE050
Is a positive integer.
As finally produced
Figure 919858DEST_PATH_IMAGE051
If the number is not an integer, the rounding operation is performed on the non-integer.
Use "
Figure 174122DEST_PATH_IMAGE052
To replace the values in channel 1, respectively "
Figure 722915DEST_PATH_IMAGE053
"sum value in channel 2"
Figure 545378DEST_PATH_IMAGE054
", so that 2 channels have the same value"
Figure 546832DEST_PATH_IMAGE055
And the calculation result is used as subsequent input, so that the inconsistency of the calculation results of 2 channels caused by different numerical values is avoided on the premise of ensuring the channel independence.
The detailed process of the two-out-of-two combined fail-safe architecture is shown in fig. 3, in the figure, external data are respectively input into a channel 1 and a channel 2, input preprocessing refers to the channel 1 and the channel 2 independently processing the input data, respectively exchanging inconsistent data generated independently, and then each channel independently obtains new data according to the same processing method according to the inconsistent data generated independently by the channel and the inconsistent data generated independently by the other channel. And setting a comparator according to the total number of the channels, comparing the new data obtained independently from each channel, if the requirements of the comparator are met, namely the two new data are consistent, outputting the consistent new data by the comparator, using the data output by the comparator as subsequent input data of each channel, and if the requirements of the comparator are not met, not performing subsequent input on each channel.
The two-out-of-three combined type fault safety structure is shown in fig. 4, and consists of 3 mutually independent channels, each channel consists of the same operation module (the functions realized by hardware and software are consistent), and each module has an independent fault detection function; when the device runs, the 3 operation modules work and finish independently, the output of the last 3 channels finishes voting by three or two for the comparator, and the output is output when the condition is met.
The "two out of three" combined fail-safe architecture multi-channel data processing is as follows:
1. let the value produced by channel 1 be "
Figure 480153DEST_PATH_IMAGE056
", channel 2 produces a value of"
Figure 883452DEST_PATH_IMAGE057
", channel 3 produces a value of"
Figure 142395DEST_PATH_IMAGE058
", n is a positive integer not less than 1; the processes for generating values between channels are independent of each other. If the values generated by channel 1, channel 2, and channel 3 include random numbers, the lengths of the random numbers generated by the channels are the same.
2. The channel 1, the channel 2 and the channel 3 respectively send own numerical values to the opposite side;
3. the channel 1, channel 2 and channel 3 independent logarithm values A, B and C are processed in the same way, if the channel 1, channel 2 and channel 3 logarithm values A, B, C are processed in the same way and the generated values are consistent, the values are used
Figure 490200DEST_PATH_IMAGE059
Figure 227212DEST_PATH_IMAGE060
And
Figure 485018DEST_PATH_IMAGE061
generating new values
Figure 649283DEST_PATH_IMAGE062
Instead of the value a, the value B and the value C as subsequent inputs.
Use "
Figure 625329DEST_PATH_IMAGE063
To replace the values in channel 1, respectively "
Figure 166032DEST_PATH_IMAGE064
", numerical value in channel 2"
Figure 402978DEST_PATH_IMAGE065
"and numerical value in channel 3"
Figure 738145DEST_PATH_IMAGE066
", so that 3 channels have the same value"
Figure 201487DEST_PATH_IMAGE067
And the calculation result inconsistency of the 3 channels caused by different numerical values is avoided on the premise of ensuring the channel independence.
The detailed process of the "two out of three" combined fail-safe architecture is shown in fig. 5; in the figure, external data are respectively input into a channel 1, a channel 2 and a channel 3, the input preprocessing means that the channel 1, the channel 2 and the channel 3 independently process the input data, respectively and independently generated inconsistent data are exchanged, and then each channel independently obtains new data according to the same processing method according to the inconsistent data independently generated by the channel and the received inconsistent data independently generated by the other two channels. And setting a comparator according to the total number of the channels, comparing the new data obtained independently by each channel, outputting the consistent new data by the comparator if the requirements of the comparator are met, namely at least two new data are consistent, taking the data output by the comparator as the subsequent input data of each channel, and not performing subsequent input by each channel if the requirements of the comparator are not met.
The above is only exemplified by the "two-out-of-two" architecture and the "three-out-of-two" architecture, and other combined fail-safe architectures are also applicable to the multi-channel data processing manner.
Similarly, for a "N is M (N ≧ M)" combinational failsafe architecture, there are N independent channels, M being a positive integer. Let the value produced by channel 1 be "
Figure 280301DEST_PATH_IMAGE068
", channel 2 produces a value of"
Figure 512700DEST_PATH_IMAGE069
", channel 3 produces a numerical valueIs'
Figure 18767DEST_PATH_IMAGE070
", and so on, channel N produces a value of
Figure 94039DEST_PATH_IMAGE071
I is the numerical serial number, n is a positive integer not less than 1, the new numerical value
Figure 710966DEST_PATH_IMAGE072
"includes but is not limited to the following:
1.
Figure 63450DEST_PATH_IMAGE073
wherein
Figure 474839DEST_PATH_IMAGE074
Is a positive integer.
2.
Figure 912774DEST_PATH_IMAGE075
Wherein
Figure 333391DEST_PATH_IMAGE076
Is a positive integer.
As finally produced
Figure 399436DEST_PATH_IMAGE077
If the number is not an integer, the rounding operation is performed on the non-integer. If the number values generated by the N channels comprise random numbers, the length of the random numbers generated by each channel is the same.
In the above-mentioned "two-out-of-two" combined type fail-safe architecture, "two-out-of-three" combined type fail-safe architecture, "M-out-of-N" combined type fail-safe architecture, new values may be input to the comparator before new data is input, if necessary
Figure 247306DEST_PATH_IMAGE078
Processing is performed to reduce differences in data characteristics before and after processing. According to the combined fail-safe frameworkAnd performing data characteristic difference reduction processing on the new data after independent processing of each channel according to the characteristics of the equipment of each channel, the characteristics of the functional module generating the new data and the characteristics of the new data. For example, for the random number, von neumann correction, Hash function method, huffman coding, etc. may be used to perform data characteristic difference reduction processing on the random number, thereby reducing the deviation between 0 and 1 in the new random number sequence, improving the information entropy of each bit of digital code in the random sequence, and reducing the correlation between the preceding and following random codes.
In this embodiment, each channel in the combined fail-safe architecture is independently processed according to a preset data processing method for inconsistent data independently generated by the functional module corresponding to each channel, and if each channel operates normally, the calculation results are consistent, thereby avoiding the situation that the output between the channels is inconsistent due to the fact that different channels use different input data to perform subsequent calculation, avoiding the influence of the combined fail-safe technology on the subsequent input under the normal situation of each channel, and improving the identification capability of the combined fail-safe technology on channel abnormity; if a certain channel is abnormal, the calculation results are inconsistent, the combined type fault safety technology plays a role, and the effect of the combined type fault safety technology is realized, namely the trusted data cannot be generated by only a single channel, so that common cause failure can be better avoided, the safety is improved, and the independence of the channels is guaranteed; furthermore, by carrying out data characteristic difference reduction processing on the random numbers included in the new data after independent processing of each channel, the deviation between 0 and 1 in a new random number sequence can be reduced, the information entropy of each bit of digital code in a random sequence is improved, the correlation between the random codes before and after the random number is reduced, the independence of each channel data is ensured, and necessary conditions are provided for realizing the safety guarantee function of the combined type fault safety architecture; the combined type failure safety architecture mode which is more effective and more accordant with the actual situation can be selected according to the actual needs of the rail transit, the total number of the channels is determined, then the comparator which is more effective and more accordant with the actual situation is designed, and the applicability of the combined type failure safety technology and the identification capability of channel abnormity are improved.
Based on the same inventive concept, an embodiment of the present invention further provides an electronic device, which is shown in fig. 7 and includes: the device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the multi-channel data processing method when executing the computer program.
Based on the same inventive concept, the embodiment of the present invention further provides a computer storage medium, in which computer executable instructions are stored, and when the computer executable instructions are executed, the multichannel data processing method is implemented.
With respect to the electronic device and the computer storage medium in the above embodiments, the specific manner and technical effects of the operations performed by the respective modules have been described in detail in the embodiments related to the method, and will not be elaborated herein.

Claims (18)

1. A method of multi-channel data processing, comprising the steps of:
sending inconsistent data independently generated by the functional modules corresponding to the channels in the combined type fault safety architecture to other channels in the combined type fault safety architecture;
independently processing the inconsistent data generated by the functional module corresponding to each channel and the received inconsistent data generated by the functional module corresponding to each other channel in the combined type fault safety architecture according to a preset data processing method, and obtaining new data after the independent processing of each channel;
and determining subsequent input data of each channel according to the new data independently processed by each channel.
2. The method of claim 1, wherein before sending inconsistent data generated independently by the functional module corresponding to each channel in the combined fail-safe architecture to each other channel in the combined fail-safe architecture, the method comprises the following steps:
selecting a combined type failure safety architecture mode;
determining the total number of channels according to the selected architecture mode;
the method comprises the steps that modules corresponding to all channels in a combined type failure safety framework independently generate inconsistent data, wherein when the inconsistent data independently generated by the modules corresponding to all the channels comprise random numbers, the lengths of the generated random numbers are consistent.
3. The method according to claim 1, wherein the step of independently processing the inconsistent data generated by the functional module corresponding to each channel and the received inconsistent data generated by the functional module corresponding to each other channel in the combined fail-safe architecture according to a preset data processing method in each channel in the combined fail-safe architecture to obtain new data after independent processing of each channel comprises the following steps:
each channel respectively acquires the inconsistent data independently generated by the module corresponding to the channel and the inconsistent data independently generated by the modules corresponding to other channels to obtain T1To TNWherein T is1Inconsistent data, T, independently generated for the module corresponding to channel 1NThe inconsistent data generated independently by the module corresponding to the channel N is obtained, and N is the total number of the channels;
selecting a preset data processing method;
each channel will be T1To TNAccording to a preset data processing method, independently processing to respectively obtain new data X after independent processing of each channel1To XN
4. The method of claim 1, wherein prior to determining subsequent input data for each channel based on the new data processed independently by each channel, comprising the steps of:
and performing data characteristic difference reduction processing on the new data after independent processing of each channel.
5. The method of claim 4, wherein said performing data characteristic difference reduction processing on new data after independent processing for each channel comprises the steps of:
and according to the characteristics of each channel device, the characteristics of the functional module generating the new data and the characteristics of the new data in the combined type fault safety architecture, carrying out data characteristic difference reduction processing on the new data after independent processing of each channel, wherein when the new data comprises random numbers, a random sequence processing method is selected to process the random numbers.
6. The method of claim 5, wherein when the new data includes a random number, selecting a random sequence processing method to process the random number, comprising the steps of:
when the new data comprises random numbers, at least one of von Neumann correction, Hash function method and Huffman coding is selected to process the random data.
7. The method of claim 1, wherein said determining subsequent input data for each channel based on said new data processed independently for each channel comprises the steps of:
designing a new data comparator according to the total number of channels of the combined type failure safety architecture;
inputting the new data processed independently by each channel into the new data comparator, and determining the subsequent input data of each channel according to the output data of the new data comparator.
8. The method of claim 7, wherein said designing a new data comparator based on a total number of channels of said combined fail-safe architecture comprises the steps of:
when the total number of the channels of the combined type fault safety architecture is two, the designed new data comparator is a two-out-of-two comparator;
when the total number of the channels of the combined type failure safety architecture is three, the designed new data comparator is a two-out-of-three comparator;
when the total number of channels of the combined type fault safety architecture is Ns, the designed new data comparator is a Ns-Ms comparator, wherein Ns is a positive integer larger than 3, and Ms is a positive integer not larger than Ns.
9. The method of claim 7, wherein the inputting of the new data processed independently by each channel into the new data comparator and the determining of the subsequent input data of each channel according to the output data of the new data comparator comprise the following steps:
when the new data comparator is a two-out-of-two comparator and the new data processed independently by each channel are consistent, the new data comparator outputs the new data processed independently by each channel, and the subsequent input data of each channel is determined according to the data output by the new data comparator;
when the new data comparator is a two-out-of-two comparator and the new data processed independently by each channel are inconsistent, determining that at least one channel is abnormal and each channel does not perform subsequent input;
when the new data comparator is a two-out-of-three comparator and the new data processed independently by at least two channels are consistent, the new data comparator outputs the consistent new data processed independently by at least two channels, and the subsequent input data of each channel is determined according to the data output by the new data comparator;
when the new data comparator is a two-out-of-three comparator and the new data processed independently by each channel are inconsistent, determining that at least two channels are abnormal and each channel does not perform subsequent input;
when the new data comparator is an Ns-Ms comparator and new data processed independently by at least Ms channels are consistent, the new data comparator outputs the new data processed independently by the at least Ms channels, and subsequent input data of each channel is determined according to the data output by the new data comparator, wherein Ns is a positive integer larger than 3, and Ms is a positive integer not larger than Ns;
and when the new data comparator is an Ns-Ms comparator and the number of channels with the consistent new data processed independently by each channel is less than Ms, determining that at least Ns-Ms +1 channels are abnormal and each channel does not carry out subsequent input.
10. A multi-channel data processing apparatus, comprising:
each channel data sending module is used for sending inconsistent data independently generated by the corresponding functional module of each channel in the combined type fault safety framework to each other channel in the combined type fault safety framework;
each channel data independent processing module is used for independently processing the inconsistent data generated by the function module corresponding to each channel and the received inconsistent data generated by the function module corresponding to each other channel in the combined type fault safety architecture according to a preset data processing method, so as to obtain new data after each channel is independently processed;
and the subsequent input data determining module is used for determining the subsequent input data of each channel according to the new data which is independently processed by each channel.
11. The apparatus of claim 10, wherein each channel data independent processing module is specifically configured to:
each channel respectively acquires the inconsistent data independently generated by the module corresponding to the channel and the inconsistent data independently generated by the modules corresponding to other channels to obtain T1To TNWherein T is1Inconsistent data, T, independently generated for the module corresponding to channel 1NThe inconsistent data generated independently by the module corresponding to the channel N is obtained, and N is the total number of the channels;
selecting a preset data processing method;
each channel will be T1To TNAccording to a preset data processing method, independently processing to respectively obtain new data X after independent processing of each channel1To XN
12. The apparatus of claim 10, further comprising:
the architecture mode selection module is used for selecting a combined type failure safety architecture mode; determining the total number of channels according to the selected architecture mode;
the system comprises an inconsistent data generation module, a random number generation module and a failure safety module, wherein the inconsistent data generation module is used for independently generating inconsistent data by corresponding modules of each channel in a combined failure safety framework, and when the inconsistent data independently generated by the corresponding modules of each channel comprises the random number, the lengths of the generated random numbers are consistent;
and the data characteristic difference reducing module is used for carrying out data characteristic difference reducing processing on the new data which is processed independently by each channel.
13. The apparatus of claim 12, wherein the data characteristic difference reduction module is specifically configured to:
and performing data characteristic difference reduction processing on the new data after independent processing of each channel according to the characteristics of each channel device, the characteristics of the functional module generating the new data and the characteristics of the new data in the combined type fault safety architecture, wherein when the new data comprises random numbers, at least one of von Neumann correction, Hash function method and Huffman coding is selected to process the random data.
14. The apparatus of claim 10, wherein the subsequent input data determination module comprises:
the comparator design unit is used for designing a new data comparator according to the total number of the channels of the combined type fault safety architecture;
and the subsequent input data determining unit is used for inputting the new data processed by each channel independently into the new data comparator and determining the subsequent input data of each channel according to the output data of the new data comparator.
15. The apparatus of claim 14, wherein the comparator design unit is specifically configured to:
when the total number of the channels of the combined type failure safety architecture is two, the designed new data comparator is a two-out-of-two comparator;
when the total number of the channels of the combined type failure safety architecture is three, the designed new data comparator is a two-out-of-three comparator;
when the total number of channels of the combined type fault safety architecture is Ns, the designed new data comparator is a Ns-Ms comparator, wherein Ns is a positive integer larger than 3, and Ms is a positive integer not larger than Ns.
16. The apparatus as claimed in claim 14, wherein the subsequent input data determining unit is specifically configured to:
when the new data comparator is a two-out-of-two comparator and the new data processed independently by each channel are consistent, the new data comparator outputs the new data processed independently by each channel, and the subsequent input data of each channel is determined according to the data output by the new data comparator;
when the new data comparator is a two-out-of-two comparator and the new data processed independently by each channel are inconsistent, determining that at least one channel is abnormal and each channel does not perform subsequent input;
when the new data comparator is a two-out-of-three comparator and the new data processed independently by at least two channels are consistent, the new data comparator outputs the consistent new data processed independently by at least two channels, and the subsequent input data of each channel is determined according to the data output by the new data comparator;
when the new data comparator is a two-out-of-three comparator and the new data processed independently by each channel are inconsistent, determining that at least two channels are abnormal and each channel does not perform subsequent input;
when the new data comparator is an Ns-Ms comparator and new data after independent processing of at least Ms channels are consistent, the new data comparator outputs the new data which is consistent after independent processing of at least Ms channels, and subsequent input data of each channel is determined according to the data output by the new data comparator, wherein Ns is a positive integer greater than 3, and Ms is a positive integer not greater than Ns;
and when the new data comparator is an Ns-Ms comparator and the number of channels with the consistent new data processed independently by each channel is less than Ms, determining that at least Ns-Ms +1 channels are abnormal and each channel does not carry out subsequent input.
17. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor implements the multi-channel data processing method of any of claims 1-9.
18. A computer storage medium having computer-executable instructions stored thereon that, when executed, implement the multi-channel data processing method of any one of claims 1-9.
CN202210382747.2A 2022-04-13 2022-04-13 Multichannel data processing method and device, electronic equipment and storage medium Active CN114461703B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210382747.2A CN114461703B (en) 2022-04-13 2022-04-13 Multichannel data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210382747.2A CN114461703B (en) 2022-04-13 2022-04-13 Multichannel data processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114461703A true CN114461703A (en) 2022-05-10
CN114461703B CN114461703B (en) 2022-08-09

Family

ID=81418523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210382747.2A Active CN114461703B (en) 2022-04-13 2022-04-13 Multichannel data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114461703B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6367031B1 (en) * 1998-12-17 2002-04-02 Honeywell International Inc. Critical control adaption of integrated modular architecture
CN103929424A (en) * 2014-04-18 2014-07-16 卡斯柯信号有限公司 Hardware and software combined two-out-three safety data processing and arbitration method and device thereof
CN113157499A (en) * 2021-03-25 2021-07-23 北京交通大学 Safe computer platform based on cloud computing
CN114115046A (en) * 2021-11-28 2022-03-01 浙江中控技术股份有限公司 Industrial safety controller, control method, electronic device, and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6367031B1 (en) * 1998-12-17 2002-04-02 Honeywell International Inc. Critical control adaption of integrated modular architecture
CN103929424A (en) * 2014-04-18 2014-07-16 卡斯柯信号有限公司 Hardware and software combined two-out-three safety data processing and arbitration method and device thereof
CN113157499A (en) * 2021-03-25 2021-07-23 北京交通大学 Safe computer platform based on cloud computing
CN114115046A (en) * 2021-11-28 2022-03-01 浙江中控技术股份有限公司 Industrial safety controller, control method, electronic device, and storage medium

Also Published As

Publication number Publication date
CN114461703B (en) 2022-08-09

Similar Documents

Publication Publication Date Title
CN111697976B (en) RS erasure correcting quick decoding method and system based on distributed storage
CN111625394A (en) Data recovery method, device and equipment based on erasure codes and storage medium
CN113687975B (en) Data processing method, device, equipment and storage medium
CN114461703B (en) Multichannel data processing method and device, electronic equipment and storage medium
CN107590020B (en) Credible computing method based on differential coding and statement signature
CN111045843A (en) Distributed data processing method with fault tolerance capability
Krasnobayev et al. The analysis of the methods of data diagnostic in a residue number system.
CN107193249A (en) Program development servicing unit and program development householder method
CN103150227A (en) Safe processing method for variable signature uniqueness based on redundant coding
EP2370899B1 (en) Poison bit error checking code scheme
US10516418B2 (en) Hybrid type iterative decoding method and apparatus
US20240121027A1 (en) Data processing system and method based on dynamic redundancy heterogeneous encoding, and device
CN111984624B (en) Method and system for data migration through correction migration model
KR100981659B1 (en) Industrial controller
CN112183755A (en) Markov model construction simplification method and system applied to complex system
EP0339296A2 (en) High speed parity prediction for binary adders
EP3367242B1 (en) Method of error detection in a microcontroller unit
WO2006027742A1 (en) Fault tolerant bus
CN109412748B (en) Method and device for encoding and decoding polarization code
CN112005508B (en) Information processing device, information processing method, and computer-readable recording medium
US20240028440A1 (en) Method for Recording a Number of Events in an Encoded Tracer Variable in a Security-Oriented Computer Program
CN111049529B (en) Encoder and related encoding method and flash memory
US20230396273A1 (en) Information concealing apparatus, information reconfiguring apparatus, information concealing system, information concealing method, information reconfiguring method, information concealing program, and information reconfiguring program
US11159183B2 (en) Residue checking of entire normalizer output of an extended result
US20230283298A1 (en) Data error correction circuit and data transmission method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant