CN109388835A - Data voting method and apparatus - Google Patents

Data voting method and apparatus Download PDF

Info

Publication number
CN109388835A
CN109388835A CN201710686315.XA CN201710686315A CN109388835A CN 109388835 A CN109388835 A CN 109388835A CN 201710686315 A CN201710686315 A CN 201710686315A CN 109388835 A CN109388835 A CN 109388835A
Authority
CN
China
Prior art keywords
data
processing
control unit
pce
vote
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
CN201710686315.XA
Other languages
Chinese (zh)
Other versions
CN109388835B (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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201710686315.XA priority Critical patent/CN109388835B/en
Publication of CN109388835A publication Critical patent/CN109388835A/en
Application granted granted Critical
Publication of CN109388835B publication Critical patent/CN109388835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Hardware Redundancy (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application proposes a kind of data voting method and apparatus, wherein above-mentioned data voting method includes: the first processing and control element (PCE) within the synchronous task period, and the first data to be decided by vote are sent to second processing control unit, and receives the second data to be decided by vote;In the programmable logic device by first data to be decided by vote and the second data storage to be decided by vote;Data voting is carried out, programmable logic device is obtained and treats the first data of voting and the first data voting result after the second data wait decide by vote carry out congruent voting;First data voting result is sent to second processing control unit, and receives the second data voting result of second processing control unit transmission;The first data are handled according to the first data voting result and the second data voting result.Two votings that take that data are realized based on SoC may be implemented in the application, improve the electromagnetic compatibility characteristic of applying electronic system, make the performance of applying electronic system close to ideal design object.

Description

Data voting method and apparatus
Technical field
This application involves data control technology field more particularly to a kind of data voting methods and apparatus.
Background technique
In traditional applying electronic system design, need to carry out whole system according to the functional module of design requirement comprehensive It closes, i.e., according to the function of design requirement, finds corresponding integrated circuit, further according to the selected electricity of technical indicator design of design requirement The type of attachment and parameter on road.This design the result is that one based on functional integrated circuit, the distributed application of device Electronic system architecture.Can design result meet the technical parameter that design requirement depends not only on circuit chip, and with it is entire System printed circuit board (Printed Circuit Board;Electromagnetic compatibility characteristic hereinafter referred to as: PCB) is related.Meanwhile it is right In needing to realize digitized system, the participation such as single-chip microcontroller is needed toward contact, so distributed system must also be considered to electricity The influence of road firmware characteristic.It is obvious that the realization of traditional applying electronic system is using distributed function complex art, it is traditional The performance of applying electronic system is affected by various factors, and is often differed farther out with ideal design object.
Summary of the invention
The application is intended to solve at least some of the technical problems in related technologies.
For this purpose, first purpose of the application is to propose a kind of data voting method, system on chip is based on to realize (System on Chip;Two votings that take for hereinafter referred to as: SoC) realizing data, the electromagnetic compatibility for improving applying electronic system are special Property, make the performance of applying electronic system close to ideal design object.
Second purpose of the application is to propose a kind of data voting equipment.
The third purpose of the application is to propose a kind of non-transitorycomputer readable storage medium.
In order to achieve the above object, the application first aspect embodiment proposes a kind of data voting method, comprising: the first processing control Unit processed sends the first data to be decided by vote to second processing control unit within the synchronous task period, and receives described second The second data to be decided by vote that processing and control element (PCE) is sent;By first data to be decided by vote and second number to be decided by vote According to being stored in the programmable logic device of first processing and control element (PCE);Data voting is carried out, first processing is obtained The programmable logic device of control unit carries out congruence to first data to be decided by vote and second data to be decided by vote The first data voting result after voting;The first data voting result is sent to the second processing control unit, and Receive the second data voting result that the second processing control unit is sent;According to the first data voting result and described Second data voting result handles first data.
In the data voting method of the embodiment of the present application, the first processing and control element (PCE) is within the synchronous task period, to second Processing and control element (PCE) sends the first data to be decided by vote, and receives to be decided by vote second that above-mentioned second processing control unit is sent Then it is single to be stored in above-mentioned first processing control by data for above-mentioned first data to be decided by vote and above-mentioned second data to be decided by vote In the programmable logic device of member, data voting is carried out, obtains the programmable logic device pair of above-mentioned first processing and control element (PCE) The first data voting after the first data wait decide by vote and the congruent voting of the second data progress wait decide by vote is as a result, finally will be above-mentioned First data voting result is sent to second processing control unit, and receives the second tables of data of second processing control unit transmission Certainly as a result, being handled according to the first data voting result and the second data voting result above-mentioned first data, above-mentioned first Processing and control element (PCE) is the first SoC processing and control element (PCE), and second processing control unit is the 2nd SoC processing and control element (PCE), thus Two votings that take for realizing data based on SoC may be implemented, improve the electromagnetic compatibility characteristic of applying electronic system, make applying electronic system The performance of system reduces the power consumption and cost of implementation of applying electronic system close to ideal design object.
In order to achieve the above object, the application second aspect embodiment proposes a kind of data voting equipment, comprising: the first processing Control unit, second processing control unit and serial communication unit;First processing and control element (PCE), in synchronous task week In phase, Xiang Suoshu second processing control unit sends the first data to be decided by vote, and receives the second processing control unit hair The second data to be decided by vote sent;First data to be decided by vote and second data to be decided by vote are stored in described In the programmable logic device of one processing and control element (PCE);Data voting is carried out, compiling for first processing and control element (PCE) is obtained First after journey logical device carries out congruent voting to first data wait decide by vote and second data wait decide by vote counts According to voting result;The first data voting result is sent to the second processing control unit, and is received at described second Manage the second data voting result that control unit is sent;And according to the first data voting result and second tables of data Certainly result handles first data;The second processing control unit is used for first processing and control element (PCE) The second data to be decided by vote are sent, and send the second data voting result to first processing and control element (PCE).
In the data voting equipment of the embodiment of the present application, the first processing and control element (PCE) is within the synchronous task period, to second Processing and control element (PCE) sends the first data to be decided by vote, and receives to be decided by vote second that above-mentioned second processing control unit is sent Data, then above-mentioned first data to be decided by vote and above-mentioned second data to be decided by vote are stored in by the first processing and control element (PCE) In the programmable logic device for stating the first processing and control element (PCE), data voting is carried out, obtains above-mentioned first processing and control element (PCE) Programmable logic device treats the first data of voting and the first tables of data after the second data wait decide by vote carry out congruent voting Certainly as a result, above-mentioned first data voting result is finally sent to second processing control unit, and it is single to receive second processing control The second data voting that member is sent is as a result, according to the first data voting result and the second data voting result to above-mentioned first data It is handled, above-mentioned first processing and control element (PCE) is the first SoC processing and control element (PCE), and second processing control unit is the 2nd SoC Processing and control element (PCE) improves the electromagnetic compatibility of applying electronic system so as to realize two votings that take for realizing data based on SoC Characteristic makes the performance of applying electronic system close to ideal design object, reduces the power consumption of applying electronic system and be implemented as This.
In order to achieve the above object, the application third aspect embodiment proposes a kind of non-transitory computer-readable storage medium Matter, is stored thereon with computer program, and the computer program realizes method as described above when being executed by processor.
The additional aspect of the application and advantage will be set forth in part in the description, and will partially become from the following description It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart of the application data voting method one embodiment;
Fig. 2 is the flow chart of another embodiment of the application data voting method;
Fig. 3 is the schematic diagram of service processes one embodiment in the application data voting method;
Fig. 4 is the flow chart of another embodiment of the application data voting method;
Fig. 5 is the flow chart of the application data voting method further embodiment;
Fig. 6 is the structural schematic diagram of the application data voting equipment one embodiment.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the application, and should not be understood as the limitation to the application.
For SoC, the design of applying electronic system be according to function and parameter request designing system, but with it is traditional The design of applying electronic system has this qualitative difference.SoC is not the distributed system complex art based on functional circuit, and It is the system firmware and circuit synthesis technology based on function IP kernel reusable technology.Firstly, applying electronic system function It realizes and is no longer integrated for functional circuit, but realized for system entirety firmware and carry out circuit synthesis, that is, utilized IP technology integrally carries out circuit combination to system.Secondly, the final result of circuit design has with IP functional module and firmware characteristic It closes, and it is substantially unrelated with the mode of circuit piecemeal and connection technology on pcb board.Therefore, make the electromagnetic compatibility characteristic of design result It is greatly improved.In other words, as designed result is very close to ideal design target.
The key technology of SoC design mainly includes bus architecture technology, IP kernel reusable technology, Hardware/Software Collaborative Design skill Art, SoC verification technique, design for Measurability technology, low power design technique, sub-micro circuit implementation technology etc., additionally Embedded software transplanting, developmental research are done, is an emerging research field interdisciplinary.
Fig. 1 is the flow chart of the application data voting method one embodiment, as shown in Figure 1, may include:
Step 101, the first processing and control element (PCE) is sent to second processing control unit wait decide by vote within the synchronous task period The first data, and receive the second data to be decided by vote that above-mentioned second processing control unit is sent.
Step 102, above-mentioned first data to be decided by vote and the second data to be decided by vote are stored in the first processing control list In the programmable logic device of member.
Wherein, the programmable logic device of above-mentioned first processing and control element (PCE) can be in above-mentioned first processing and control element (PCE) Field programmable gate array (Field Programmable Gate Array;Hereinafter referred to as: FPGA), certainly above-mentioned to compile Journey logical device can also use other programmable logic device, such as: Complex Programmable Logic Devices (Complex Programmable Logic Device;Hereinafter referred to as: CPLD), specific shape of the present embodiment to above-mentioned programmable logic device Formula is not construed as limiting.
Step 103, carry out data voting, obtain the programmable logic device of above-mentioned first processing and control element (PCE) to it is above-mentioned to The first data voting result after first data of voting and the above-mentioned congruent voting of the second data progress wait decide by vote.
In the present embodiment, the first processing and control element (PCE) initiates data voting, the programmable logic of the first processing and control element (PCE) Above-mentioned first data to be decided by vote and above-mentioned second data to be decided by vote that device saves the programmable logic device carry out complete Deng voting, then the first processing and control element (PCE) obtains the first data voting of the programmable logic device of the first processing and control element (PCE) As a result.
Step 104, above-mentioned first data voting result is sent to above-mentioned second processing control unit, and receives above-mentioned The second data voting result that two processing and control element (PCE)s are sent.
Step 105, above-mentioned first data are handled according to the first data voting result and the second data voting result.
In the present embodiment, after the first processing and control element (PCE) obtains the first data voting result, by above-mentioned first tables of data Certainly result is sent to above-mentioned second processing control unit, and receives the second data voting that above-mentioned second processing control unit is sent As a result, that is to say, that the first processing and control element (PCE) exchanges data voting as a result, subsequent first processing with second processing control unit Control unit will be handled the first data according to above-mentioned first data voting result and the second data voting result.
In the present embodiment, the first processing and control element (PCE) is the first SoC processing and control element (PCE), and second processing control unit is the Two SoC processing and control element (PCE)s.
In above-mentioned data voting method, the first processing and control element (PCE) controls single within the synchronous task period to second processing Member sends the first data to be decided by vote, and receives the second data to be decided by vote that above-mentioned second processing control unit is sent, then Above-mentioned first data to be decided by vote and above-mentioned second data to be decided by vote are stored in compiling for above-mentioned first processing and control element (PCE) In journey logical device, data voting is carried out, the programmable logic device for obtaining above-mentioned first processing and control element (PCE) treats voting First data and the second data wait decide by vote carry out congruent voting after the first data voting as a result, finally by above-mentioned first data Voting result is sent to second processing control unit, and receive second processing control unit transmission the second data voting as a result, Above-mentioned first data are handled according to the first data voting result and the second data voting result, the first processing and control element (PCE) For the first SoC processing and control element (PCE), second processing control unit is the 2nd SoC processing and control element (PCE), is based on so as to realize SoC realizes two votings that take of data, improves the electromagnetic compatibility characteristic of applying electronic system, keeps the performance of applying electronic system close Ideal design object reduces the power consumption and cost of implementation of applying electronic system.
Fig. 2 is the flow chart of another embodiment of the application data voting method, as shown in Fig. 2, real shown in the application Fig. 1 It applies in example, step 101 may include:
Step 201, the first processing and control element (PCE) is within the synchronous task period, by serial communication unit to second processing control Unit processed sends the first data to be decided by vote, and receive second processing control unit by above-mentioned serial communication unit send to Second data of voting.
In the present embodiment, the first processing and control element (PCE) and second processing control unit are to be electrically isolated, respectively and serially Communication unit connection.Serial communication unit is number isolation communication, uses 8 channels in the present embodiment, realizes full-duplex communication.
Further, in the first processing and control element (PCE) within the synchronous task period, to second processing control unit send to After first data of voting, the first processing and control element (PCE) can also receive second processing control unit and pass through serial communication unit The data answering of transmission;
It, can also be by above-mentioned serial logical after receiving the second data to be decided by vote that second processing control unit is sent Believe that unit sends data answering to above-mentioned second processing control unit.
That is, for the integrality and state for guaranteeing data, the process for transmitting data to be decided by vote needs in the present embodiment It replys, as shown in figure 3, Fig. 3 is the schematic diagram of service processes one embodiment in the application data voting method, from Fig. 3 In as can be seen that transmitting the processes of data to be decided by vote can be initiated by side's processing and control element (PCE), another party handles control singly Member carries out response confirmation.
Fig. 4 is the flow chart of another embodiment of the application data voting method, as shown in figure 4, real shown in the application Fig. 1 It applies in example, before step 103, can also include:
Step 401, it sends control command to above-mentioned second processing control unit by serial communication unit to request, in reception The control command response that second processing control unit is sent by serial communication unit is stated, above-mentioned control command response is carried to table The data transmission status information that first data transmission certainly is completed.
Step 402, it receives above-mentioned second processing control unit to request by the control command that serial communication unit is sent, lead to It crosses above-mentioned serial communication unit and sends control command response to above-mentioned second processing control unit, above-mentioned control command response carries The data transmission status information that second data to be decided by vote are transmitted.
That is, the first processing and control element (PCE) needs to hand over second processing control unit before carrying out data voting Control command is changed, the data transmission state of the first data to be decided by vote is obtained, see also Fig. 3, the interactive process of control command It can equally be initiated by side's processing and control element (PCE), another party's processing and control element (PCE) carries out response confirmation.
Fig. 5 is the flow chart of the application data voting method further embodiment, as shown in figure 5, real shown in the application Fig. 1 It applies in example, step 104 may include:
Step 501, above-mentioned first data voting result is sent to second processing control unit by serial communication unit, And receive the second data voting result that second processing control unit is sent by above-mentioned serial communication unit.
Referring to Fig. 3, the interactive process of data voting result can equally be initiated by side's processing and control element (PCE), at another party It manages control unit and carries out response confirmation.
Data voting method provided by the embodiments of the present application is to take two means of voting based on what SoC was realized.SoC key skill Art mainly includes that bus architecture technology, IP kernel reusable technology, Hardware/Software Co-design Technology, SoC verification technique, measurability are set Meter technology, low power design technique and sub-micro circuit.Performance, cost, power consumption, reliability and life cycle with Scope of application everyway has apparent advantage.Data voting method provided in this embodiment is based on SoC-FPGA, realizes height Serial communication is isolated in speed digital, and parallel processing may be programmed, and real-time is high;And pass through three kinds of data transport service protocol realizations Reliable data transmission, data are synchronous.
Fig. 6 is the structural schematic diagram of the application data voting equipment one embodiment, as shown in fig. 6, above-mentioned data voting Equipment may include: the first processing and control element (PCE) 61, second processing control unit 62 and serial communication unit 63;Wherein, first Processing and control element (PCE) 61 includes programmable logic device 611;
Wherein, the first processing and control element (PCE) 61, for being sent to second processing control unit 62 within the synchronous task period First data to be decided by vote, and receive the second data to be decided by vote of the transmission of second processing control unit 62;By above-mentioned wait decide by vote The first data and above-mentioned second data to be decided by vote be stored in the programmable logic device of above-mentioned first processing and control element (PCE) 61 In;Data voting is carried out, obtains the programmable logic device of above-mentioned first processing and control element (PCE) 61 to above-mentioned to be decided by vote first The first data voting result after data and the above-mentioned congruent voting of the second data progress wait decide by vote;By above-mentioned first data voting As a result it is sent to above-mentioned second processing control unit 62, and receives the second data voting knot of the transmission of second processing control unit 62 Fruit;And above-mentioned first data are handled according to the first data voting result and the second data voting result;
Second processing control unit 62, for sending the second data to be decided by vote to the first processing and control element (PCE) 61, and The second data voting result is sent to the first processing and control element (PCE) 61.
Wherein, the programmable logic device of above-mentioned first processing and control element (PCE) 61 can be above-mentioned first processing and control element (PCE) FPGA in 61, certain above-mentioned programmable logic device can also use other programmable logic device, such as: CPLD, this Embodiment is not construed as limiting the concrete form of above-mentioned programmable logic device.
In the present embodiment, the first processing and control element (PCE) 61 initiates data voting, and the first processing and control element (PCE) 61 may be programmed Above-mentioned first data to be decided by vote that logical device 611 saves the programmable logic device 611 and above-mentioned to be decided by vote second Data carry out congruent voting, and then the first processing and control element (PCE) 61 obtains the programmable logic device of the first processing and control element (PCE) 61 611 the first data voting result.
In the present embodiment, after the first processing and control element (PCE) 61 obtains the first data voting result, by above-mentioned first data Voting result is sent to above-mentioned second processing control unit 62, and receives the second number that above-mentioned second processing control unit 62 is sent According to voting result, that is to say, that the first processing and control element (PCE) 61 with second processing control unit 62 exchange data voting as a result, after Continuous first processing and control element (PCE) 61 will according to above-mentioned first data voting result and the second data voting result to the first data into Row processing.
In the present embodiment, the first processing and control element (PCE) 61 can be the first SoC processing and control element (PCE), and second processing control is single Member 62 can be the second SoC processing and control element (PCE).
In the present embodiment, the first processing and control element (PCE) 61 is specifically used within the synchronous task period, passes through serial communication list Member 63 sends the first data to be decided by vote to second processing control unit 62, and receive second processing control unit 62 pass through it is above-mentioned The second data to be decided by vote that serial communication unit 63 is sent.
In the present embodiment, the first processing and control element (PCE) 61 and second processing control unit 62 are to be electrically isolated, respectively with Serial communication unit 63 connects.Serial communication unit 63 is number isolation communication, uses 8 channels in the present embodiment, realizes complete Duplex communication.
Further, the first processing and control element (PCE) 61, be also used to sent to second processing control unit 62 it is to be decided by vote After first data, receives above-mentioned second processing control unit 62 and pass through the data answering that serial communication unit 63 is sent;And After receiving the second data to be decided by vote that above-mentioned second processing control unit 62 is sent, pass through above-mentioned serial communication unit 63 Data answering is sent to above-mentioned second processing control unit 62.
That is, for the integrality and state for guaranteeing data, the process for transmitting data to be decided by vote needs in the present embodiment It replys, as shown in figure 3, transmitting the process of data to be decided by vote can be initiated by side's processing and control element (PCE), another party's processing Control unit carries out response confirmation.
Further, the first processing and control element (PCE) 61 is also used to before carrying out data voting, passes through serial communication unit 63 send control command request to above-mentioned second processing control unit 62;Above-mentioned second processing control unit 62 is received by above-mentioned The control command response that serial communication unit 63 is sent, above-mentioned control command response carry first data transmission to be decided by vote and complete Data transmission status information;And it receives above-mentioned second processing control unit 62 and passes through the control that serial communication unit 63 is sent Command request processed sends control command response to above-mentioned second processing control unit 62 by above-mentioned serial communication unit 63, on It states control command response and carries the data transmission status information that the second data to be decided by vote are transmitted.
That is, the first processing and control element (PCE) 61 needs and second processing control unit before carrying out data voting 62 exchange control commands, obtain the data transmission state of the first data to be decided by vote, see also Fig. 3, the interaction of control command Process can equally be initiated by side's processing and control element (PCE), and another party's processing and control element (PCE) carries out response confirmation.
In the present embodiment, the first processing and control element (PCE) 61 is specifically used for passing through above-mentioned first data voting result serial Communication unit 63 is sent to second processing control unit 62, and receives second processing control unit 62 and pass through serial communication unit 63 The the second data voting result sent.
Referring to Fig. 3, the interactive process of data voting result can equally be initiated by side's processing and control element (PCE), at another party It manages control unit and carries out response confirmation.
Data voting equipment provided by the embodiments of the present application is to take two voting equipments based on what SoC was realized.SoC key skill Art mainly includes that bus architecture technology, IP kernel reusable technology, Hardware/Software Co-design Technology, SoC verification technique, measurability are set Meter technology, low power design technique and sub-micro circuit.Performance, cost, power consumption, reliability and life cycle with Scope of application everyway has apparent advantage.Data voting equipment provided in this embodiment is based on SoC-FPGA, realizes height Serial communication is isolated in speed digital, and parallel processing may be programmed, and real-time is high;And pass through three kinds of data transport service protocol realizations Reliable data transmission, data are synchronous.
The application also provides a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, above-mentioned Data voting method provided by the embodiments of the present application is realized when computer program is executed by processor.
Above-mentioned non-transitorycomputer readable storage medium can appointing using one or more computer-readable media Meaning combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer can Reading storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device Or device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: Electrical connection, portable computer diskette, hard disk, random access memory (RAM), read-only storage with one or more conducting wires Device (Read Only Memory;Hereinafter referred to as: ROM), erasable programmable read only memory (Erasable Programmable Read Only Memory;Hereinafter referred to as: EPROM) or flash memory, optical fiber, portable compact disc are read-only deposits Reservoir (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer Readable storage medium storing program for executing can be any tangible medium for including or store program, which can be commanded execution system, device Either device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium other than computer readable storage medium, which can send, propagate or Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with one or more programming languages or combinations thereof come write for execute the application operation computer Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? It is related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (Local Area Network;Hereinafter referred to as: LAN) or wide area network (Wide Area Network;Hereinafter referred to as: WAN) it is connected to user Computer, or, it may be connected to outer computer (such as being connected using ISP by internet).
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (Random Access Memory;Hereinafter referred to as: RAM), read-only memory (Read Only Memory;Hereinafter referred to as: ROM), erasable editable Read memory (Erasable Programmable Read Only Memory;Hereinafter referred to as: EPROM) or flash memory, Fiber device and portable optic disk read-only storage (Compact Disc Read Only Memory;Hereinafter referred to as: CD- ROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other suitable media, because Can then to be edited for example by carrying out optical scanner to paper or other media, be interpreted or suitable with other when necessary Mode is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (Programmable Gate Array;Hereinafter referred to as: PGA), field programmable gate array (Field Programmable Gate Array;Below Referred to as: FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application Type.

Claims (13)

1. a kind of data voting method characterized by comprising
First processing and control element (PCE) sends the first data to be decided by vote to second processing control unit within the synchronous task period, And receive the second data to be decided by vote that the second processing control unit is sent;
First data to be decided by vote and second data to be decided by vote are stored in first processing and control element (PCE) In programmable logic device;
Data voting is carried out, obtains the programmable logic device of first processing and control element (PCE) to first number to be decided by vote According to the first data voting result after carrying out congruent voting with second data wait decide by vote;
The first data voting result is sent to the second processing control unit, and it is single to receive the second processing control The second data voting result that member is sent;
First data are handled according to the first data voting result and the second data voting result.
2. the method according to claim 1, wherein first processing and control element (PCE) is in the synchronous task period It is interior, the first data to be decided by vote are sent to second processing control unit, and receive that the second processing control unit sends to Voting the second data include:
First processing and control element (PCE) is sent out within the synchronous task period, through serial communication unit to second processing control unit Send the first data to be decided by vote, and receive the second processing control unit by the serial communication unit send wait decide by vote The second data.
3. the method according to claim 1, wherein first processing and control element (PCE) is in the synchronous task period It is interior, after sending the first data to be decided by vote to second processing control unit, further includes:
First processing and control element (PCE) receives the second processing control unit and is answered by the data that serial communication unit is sent It answers;
After second data to be decided by vote for receiving the second processing control unit transmission, further includes:
Data answering is sent to the second processing control unit by the serial communication unit.
4. the method according to claim 1, wherein before the progress data voting, further includes:
Control command request is sent to the second processing control unit by serial communication unit;Receive the second processing control The control command response that unit processed is sent by the serial communication unit, the control command response carry to be decided by vote first The data transmission status information that data are transmitted;And
It receives the second processing control unit to request by the control command that serial communication unit is sent, by described serial logical Believe that unit sends control command response to the second processing control unit, the control command response carries to be decided by vote second The data transmission status information that data are transmitted.
5. the method according to claim 1, wherein it is described the first data voting result is sent to it is described Second processing control unit, and receive the second data voting result that the second processing control unit is sent and include:
The first data voting result is sent to the second processing control unit by serial communication unit, and receives institute State the second data voting result that second processing control unit is sent by the serial communication unit.
6. method described in -5 any one according to claim 1, which is characterized in that first processing and control element (PCE) is first System on chip SoC processing and control element (PCE), the second processing control unit are the 2nd SoC processing and control element (PCE).
7. a kind of data voting equipment characterized by comprising the first processing and control element (PCE), second processing control unit and string Row communication unit;First processing and control element (PCE) includes programmable logic device;
First processing and control element (PCE), within the synchronous task period, Xiang Suoshu second processing control unit to be sent to table The first data certainly, and receive the second data to be decided by vote that the second processing control unit is sent;It will be described to be decided by vote First data and second data to be decided by vote are stored in the programmable logic device of first processing and control element (PCE);Into Row data voting obtains the programmable logic device of first processing and control element (PCE) to first data and institute to be decided by vote State the first data voting result after the second data wait decide by vote carry out congruent voting;The first data voting result is sent To the second processing control unit, and receive the second data voting result that the second processing control unit is sent;And First data are handled according to the first data voting result and the second data voting result;
The second processing control unit, for sending the second data to be decided by vote to first processing and control element (PCE), and The second data voting result is sent to first processing and control element (PCE).
8. equipment according to claim 7, which is characterized in that
First processing and control element (PCE) was specifically used within the synchronous task period, by the serial communication unit to second Processing and control element (PCE) sends the first data to be decided by vote, and receives the second processing control unit and pass through the serial communication list The second data to be decided by vote that member is sent.
9. equipment according to claim 7, which is characterized in that
First processing and control element (PCE) is also used to after sending the first data to be decided by vote to second processing control unit, Receive the data answering that the second processing control unit is sent by serial communication unit;And receiving the second processing After the second data to be decided by vote that control unit is sent, by the serial communication unit to the second processing control unit Send data answering.
10. equipment according to claim 7, which is characterized in that
First processing and control element (PCE) is also used to before carrying out data voting, by serial communication unit to described second Processing and control element (PCE) sends control command request;The second processing control unit is received to send by the serial communication unit Control command response, the control command response carries the data transmission state letter that first data transmission to be decided by vote is completed Breath;And
It receives the second processing control unit to request by the control command that serial communication unit is sent, by described serial logical Believe that unit sends control command response to the second processing control unit, the control command response carries to be decided by vote second The data transmission status information that data are transmitted.
11. equipment according to claim 7, which is characterized in that
First processing and control element (PCE), specifically for the first data voting result to be sent to by serial communication unit The second processing control unit, and receive the second processing control unit is sent by the serial communication unit second Data voting result.
12. according to equipment described in claim 7-11 any one, which is characterized in that first processing and control element (PCE) is the One system on chip SoC processing and control element (PCE), the second processing control unit are the 2nd SoC processing and control element (PCE).
13. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the meter Such as method as claimed in any one of claims 1 to 6 is realized when calculation machine program is executed by processor.
CN201710686315.XA 2017-08-11 2017-08-11 Data voting method and equipment Active CN109388835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710686315.XA CN109388835B (en) 2017-08-11 2017-08-11 Data voting method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710686315.XA CN109388835B (en) 2017-08-11 2017-08-11 Data voting method and equipment

Publications (2)

Publication Number Publication Date
CN109388835A true CN109388835A (en) 2019-02-26
CN109388835B CN109388835B (en) 2021-01-19

Family

ID=65415466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710686315.XA Active CN109388835B (en) 2017-08-11 2017-08-11 Data voting method and equipment

Country Status (1)

Country Link
CN (1) CN109388835B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362421A (en) * 2019-06-24 2019-10-22 河南思维轨道交通技术研究院有限公司 A kind of data voting output method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203149557U (en) * 2013-02-01 2013-08-21 中国科学院近代物理研究所 Fault-tolerant asynchronous serial transceiver device based on field programmable gate array (FPGA)

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203149557U (en) * 2013-02-01 2013-08-21 中国科学院近代物理研究所 Fault-tolerant asynchronous serial transceiver device based on field programmable gate array (FPGA)

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
原亮 等: "TMR整体硬化技术及其在电控系统中的应用", 《工程应用技术与实现》 *
谢刚: "城市轨道交通车载二取二平台关键技术的研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
郭浩翔 等: "一种RTMR容错计算机表决机制的研究", 《第十届全国容错计算学术会议论文集》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362421A (en) * 2019-06-24 2019-10-22 河南思维轨道交通技术研究院有限公司 A kind of data voting output method and device
CN110362421B (en) * 2019-06-24 2023-09-22 河南思维轨道交通技术研究院有限公司 Data voting output method and device

Also Published As

Publication number Publication date
CN109388835B (en) 2021-01-19

Similar Documents

Publication Publication Date Title
CN105144637B (en) Interface arrangement and method for exchanging user data
CN110247811A (en) A kind of alarm method and relevant apparatus of internet of things equipment
CN109240688A (en) Interface development method, electronic device and readable storage medium storing program for executing
CN110365536A (en) A kind of the fault cues method and relevant apparatus of internet of things equipment
CN109656706A (en) Distributed task dispatching method, system, equipment and medium
CN104363486B (en) A kind of the USB sharing methods and combination tv of combination tv
CN109344098A (en) Data manipulation method and device between master-slave equipment
CN107211550A (en) The system and method communicated for wireless Shelf Management Controller
CN108242014A (en) Sale processing method, apparatus, storage medium and the terminal of insurance products
CN109993023A (en) A kind of household electrical appliances networking indicating means, AR equipment and computer storage medium
CN108549725A (en) Access and control strategy of database method, apparatus, system, equipment and computer-readable medium
CN104657086B (en) The date storage method and system of Cloud Server
CN105491419B (en) A kind of combination tv and data sharing method
CN109388835A (en) Data voting method and apparatus
CN108491347A (en) Communication means and electronic equipment
CN110334081A (en) The cleaning method and device of mass data
CN111123728A (en) Unmanned vehicle simulation method, device, equipment and computer readable medium
CN106585104B (en) Regeneration chip and its contact control method
CN108965786A (en) A kind of electronic whiteboard content sharing method and device
CN108830596A (en) The acquisition device and terminal device of a kind of acquisition methods of information, information
CN110096474A (en) A kind of high-performance elastic computing architecture and method based on Reconfigurable Computation
CN113839886B (en) Fault processing method and device for photoelectric hybrid switching network, electronic equipment and medium
CN105027467B (en) The method and apparatus of configuring time division duplex pattern
CN107817477A (en) The signal source system and implementation method of a kind of Radar Displaying Console System
US9727673B1 (en) Simultaneous simulation of multiple blocks using efficient packet communication to emulate inter-block buses

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