CN106612160A - Controller - Google Patents
Controller Download PDFInfo
- Publication number
- CN106612160A CN106612160A CN201510694483.4A CN201510694483A CN106612160A CN 106612160 A CN106612160 A CN 106612160A CN 201510694483 A CN201510694483 A CN 201510694483A CN 106612160 A CN106612160 A CN 106612160A
- Authority
- CN
- China
- Prior art keywords
- message
- message information
- rule
- module
- information
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/22—Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40169—Flexible bus arrangements
- H04L12/40176—Flexible bus arrangements involving redundancy
- H04L12/40182—Flexible bus arrangements involving redundancy by using a plurality of communication lines
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Abstract
The invention provides a controller. The controller comprises an encoding module for encoding the first message information according to a preset encoding rule, wherein the first message information comprises multi-frame CAN messages; a sending module for sending the encoded first message information to a first CAN bus and a second CAN bus; a receiving module for receiving the second message information from the first CAN bus, and receiving the second message information from the second CAN bus; a judging module for judging whether the second message information is accurate according to a preset judgment rule, wherein the preset judgment rule comprises judging whether the second message information loses a frame according to the encoding bytes and the message cycle, and judging whether the transmission of the second message information is accurate according to the CAN information transmission and check rule; and a selection module for determining the applied second message information according to the preset selection rule.
Description
Technical field
The present invention relates to telematics, more particularly to a kind of controller.
Background technology
At present, CAN technology is had been widely used in various detections and control system, and it is a kind of
Effectively support the serial communication network of dcs, CAN is by vehicle electronics and automobile
The electronic control unit (Electronic Control Unit, ECU) on chassis is effectively connected, and is led to
Often CAN connection more than one ECU.
In prior art, between two ECU in CAN system architecture a CAN road is only existed
Footpath, when the CAN paths are broken down, can cause be communicated between ECU.Therefore, need badly
A kind of controller with dual-redundant CAN bus communication is proposed, to strengthen the ability of the anti-failure of CAN.
The content of the invention
The present invention provides a kind of controller, to strengthen the ability of the anti-failure of CAN.
The present invention provides a kind of controller, for communicating with the first CAN and the second CAN,
Including:
Coding module, for encoding to the first message information according to pre-arranged code rule;Wherein, it is described
First message information includes multiframe CAN message;
Sending module, for first message information after by coding first CAN is sent to
With second CAN;
Receiver module, for receiving the second message information from first CAN, while from described the
Two CANs receive second message information;
Judge module, for according to judging whether just the default judgment rule judges second message information
Really;Wherein, the default judgment rule includes:According to the encoded byte and the message cycle, judge
Second message information whether frame losing;Rule is transmitted and verified according to the CAN message, judges described
Whether the transmission of the second message information is correct;
Selecting module, for selecting rule according to default, it is determined that second message information applied.
Controller as above, wherein, the pre-arranged code rule includes:Using the CAN message
In preset byte as the CAN message encoded byte, the coding of the CAN message is by initial
Value increases to frame by frame preset maximum value.
Controller as above, wherein, the default judgment rule also includes:According to preset data scope
Judge whether the message data in second message information is credible.
Controller as above, wherein, the default selection rule includes:If from a CAN
Second message information that bus is received is correct, then described in application from first CAN reception
Message data in second message information;If from second message letter that first CAN is received
Breath mistake, second message information received from second CAN is correct, then using from described
Message data in second message information that second CAN is received.
The controller that the present invention is provided, for communicating with the first CAN and the second CAN, bag
Include:Coding module, for encoding to the first message information according to pre-arranged code rule;Wherein, it is described
First message information includes multiframe CAN message;Sending module, for first message after by coding
Information is sent to first CAN and second CAN;Receiver module, for from institute
State the first CAN and receive the second message information, while receiving described the from second CAN
Two message informations;Judge module, for according to judging that the default judgment rule judges second message letter
Whether breath is correct;Wherein, the default judgment rule includes:According to the encoded byte and message week
Phase, judge second message information whether frame losing;Rule is transmitted and verified according to the CAN message,
Judge whether the transmission of second message information is correct;Selecting module, for selecting rule according to default,
It is determined that second message information applied.;It is achieved thereby that the application to dual-redundant CAN bus, the
One CAN and the second CAN are mutually redundant, and enhance the ability of the anti-failure of CAN.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality
Apply the accompanying drawing to be used needed for example or description of the prior art to be briefly described, it should be apparent that, under
Accompanying drawing in the description of face is some embodiments of the present invention, for those of ordinary skill in the art,
On the premise of not paying creative labor, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is physical structure of the present invention using dual-redundant CAN bus;
Fig. 2 is the structural representation of controller provided in an embodiment of the present invention.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with this
Accompanying drawing in bright embodiment, is clearly and completely described to the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained under the premise of creative work is not made
The every other embodiment for obtaining, belongs to the scope of protection of the invention.
Fig. 1 is physical structure of the present invention using dual-redundant CAN bus, as shown in figure 1, multiple electricity
Sub-control unit (Electronic Control Unit, ECU) be connected to two independent CANs it
Between, physically, the CAN in the CAN based on CAN-A, the i.e. embodiment of the present invention
Bus, the second CAN with CAN-B as redundant bus, i.e., in the embodiment of the present invention.Need
Bright, CAN-A and CAN-B follows identical agreement, and each ECU is to CAN-A and CAN-B
Send identical message information.
Fig. 2 is the structural representation of controller provided in an embodiment of the present invention.As shown in Fig. 2 this enforcement
The controller that example is provided, for communicating with the first CAN and the second CAN, including:
Coding module 11, for encoding to the first message information according to pre-arranged code rule;Wherein,
First message information includes multiframe CAN message;
Sending module 12, is sent to a CAN total for first message information after by coding
Line and second CAN;
Receiver module 13, for receiving the second message information from first CAN, while from described
Second CAN receives second message information;
Judge module 14, for according to judging that the default judgment rule judges that second message information is
It is no correct;Wherein, the default judgment rule includes:According to the encoded byte and the message cycle,
Judge second message information whether frame losing;Rule is transmitted and verified according to the CAN message, is judged
Whether the transmission of second message information is correct;
Selecting module 15, for selecting rule according to default, it is determined that second message information applied.
It should be noted that the pre-arranged code rule includes:Using the predetermined word in the CAN message
The encoded byte as the CAN message is saved, the coding of the CAN message is increased frame by frame by initial value
To preset maximum value.
The default judgment rule also includes:Judged in second message information according to preset data scope
Whether message data is credible.
The default selection rule includes:If from second message letter that first CAN is received
Breath is correct, then the message data in second message information that application is received from first CAN;
If total from the 2nd CAN from the second message information mistake that first CAN is received
Second message information that line is received is correct, then application receive from second CAN described the
Message data in two message informations.
The controller that the present embodiment is provided, for communicating with the first CAN and the second CAN,
Including:Coding module, for encoding to the first message information according to pre-arranged code rule;Wherein, institute
The first message information is stated comprising multiframe CAN message;Sending module, for first report after by coding
Literary information is sent to first CAN and second CAN;Receiver module, for from
First CAN receives the second message information, while receiving described from second CAN
Second message information;Judge module, for according to judging that the default judgment rule judges second message
Whether information is correct;Wherein, the default judgment rule includes:According to the encoded byte and the message
In the cycle, judge second message information whether frame losing;Rule is transmitted and verified according to the CAN message,
Judge whether the transmission of second message information is correct;Selecting module, for selecting rule according to default,
It is determined that second message information applied.;It is achieved thereby that the application to dual-redundant CAN bus, the
One CAN and the second CAN are mutually redundant, and enhance the ability of the anti-failure of CAN.
Finally it should be noted that:Various embodiments above only illustrating technical scheme, rather than to it
Limit;Although being described in detail to the present invention with reference to foregoing embodiments, the ordinary skill of this area
Personnel should be understood:It still can modify to the technical scheme described in foregoing embodiments, or
Equivalent is carried out to which part or all technical characteristic;And these modifications or replacement, do not make phase
Answer the scope of the essence disengaging various embodiments of the present invention technical scheme of technical scheme.
Claims (4)
1. a kind of controller, for communicating with the first CAN and the second CAN, its feature exists
In, including:
Coding module, for encoding to the first message information according to pre-arranged code rule;Wherein, it is described
First message information includes multiframe CAN message;
Sending module, for first message information after by coding first CAN is sent to
With second CAN;
Receiver module, for receiving the second message information from first CAN, while from described the
Two CANs receive second message information;
Judge module, for according to judging whether just the default judgment rule judges second message information
Really;Wherein, the default judgment rule includes:According to the encoded byte and the message cycle, judge
Second message information whether frame losing;Rule is transmitted and verified according to the CAN message, judges described
Whether the transmission of the second message information is correct;
Selecting module, for selecting rule according to default, it is determined that second message information applied.
2. controller according to claim 1, it is characterised in that the pre-arranged code rule includes:
Using the preset byte in the CAN message as the CAN message encoded byte, the CAN
The coding of message increases to frame by frame preset maximum value by initial value.
3. controller according to claim 1, it is characterised in that the default judgment rule is also wrapped
Include:Judge whether the message data in second message information is credible according to preset data scope.
4. controller according to claim 1, it is characterised in that the default selection rule includes:
If second message information received from first CAN is correct, using from described first
Message data in second message information that CAN is received;If connecing from first CAN
The the second message information mistake received, from second message information that second CAN is received
Correctly, then the message data in second message information that application is received from second CAN.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510694483.4A CN106612160A (en) | 2015-10-21 | 2015-10-21 | Controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510694483.4A CN106612160A (en) | 2015-10-21 | 2015-10-21 | Controller |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106612160A true CN106612160A (en) | 2017-05-03 |
Family
ID=58612777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510694483.4A Pending CN106612160A (en) | 2015-10-21 | 2015-10-21 | Controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106612160A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109795286A (en) * | 2018-12-15 | 2019-05-24 | 阿尔特汽车技术股份有限公司 | A kind of electric automobile air conditioner method for controlling heater based on two-way CAN bus |
CN109795283A (en) * | 2018-12-15 | 2019-05-24 | 阿尔特汽车技术股份有限公司 | A kind of Air Condition Compressor for Electric Vehicle control method based on two-way CAN bus |
CN111319428A (en) * | 2018-12-15 | 2020-06-23 | 阿尔特汽车技术股份有限公司 | Electric automobile air conditioner compressor control method based on three CAN buses |
CN111319419A (en) * | 2018-12-15 | 2020-06-23 | 阿尔特汽车技术股份有限公司 | Electric automobile air conditioner heater control method based on three CAN buses |
-
2015
- 2015-10-21 CN CN201510694483.4A patent/CN106612160A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109795286A (en) * | 2018-12-15 | 2019-05-24 | 阿尔特汽车技术股份有限公司 | A kind of electric automobile air conditioner method for controlling heater based on two-way CAN bus |
CN109795283A (en) * | 2018-12-15 | 2019-05-24 | 阿尔特汽车技术股份有限公司 | A kind of Air Condition Compressor for Electric Vehicle control method based on two-way CAN bus |
CN111319428A (en) * | 2018-12-15 | 2020-06-23 | 阿尔特汽车技术股份有限公司 | Electric automobile air conditioner compressor control method based on three CAN buses |
CN111319419A (en) * | 2018-12-15 | 2020-06-23 | 阿尔特汽车技术股份有限公司 | Electric automobile air conditioner heater control method based on three CAN buses |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106608231A (en) | Controller for electric vehicle | |
CN104503350B (en) | The implementation method and controller of dual-redundant CAN bus | |
CN106612160A (en) | Controller | |
CN101404556B (en) | One-wire bus communication method | |
CN109039553B (en) | Signal detection method, assembly and display device | |
CN103580772B (en) | Data transmission method, system and equipment, terminal obtain the method and terminal of data | |
CN105359535A (en) | Transmitter, receiver, and control method thereof | |
CN102904673A (en) | Method and apparatus for packet transmission using crc and equal length packets | |
CN102332970B (en) | Processing method for uplink reference signal, and base station and terminal | |
WO2011019194A3 (en) | Intelligent accident lifesaving system and method thereof | |
CN105183687A (en) | Time-sharing serial communication method and system | |
CN104908779A (en) | Marshalling double-heading data flow redundancy method and system | |
CN108141318A (en) | The transceiver of simultaneous asynchronous data transmissions is carried out by noisy communication channel | |
CN106610661A (en) | Automobile controller | |
CN107257265A (en) | Real-time transmission data stream forward error correction, equipment and storage medium | |
CN106612222A (en) | Controller | |
CN102802181B (en) | Method and system for detecting physical topological link | |
CN106612161A (en) | Controller | |
CN106610662A (en) | A novel controller | |
CN101316227A (en) | Method and device for detecting ACK/NACK information in high-speed packet access | |
CN101425877A (en) | Method for inter-module communication | |
CN102104846A (en) | Method for acquiring short message and interposing sender identity information on communication network | |
US9893862B2 (en) | Aggregation frame design method and apparatus | |
CN102695102A (en) | Method, system, and apparatus for transmitting downstream data | |
CN106603193A (en) | Media content-based FEC mechanism |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170503 |
|
WD01 | Invention patent application deemed withdrawn after publication |