CN106713092A - Conversion system for vehicle-mounted CAN bus data and FlexRay bus data and conversion method thereof - Google Patents
Conversion system for vehicle-mounted CAN bus data and FlexRay bus data and conversion method thereof Download PDFInfo
- Publication number
- CN106713092A CN106713092A CN201510449880.5A CN201510449880A CN106713092A CN 106713092 A CN106713092 A CN 106713092A CN 201510449880 A CN201510449880 A CN 201510449880A CN 106713092 A CN106713092 A CN 106713092A
- Authority
- CN
- China
- Prior art keywords
- data
- flexray
- bus
- transceiver
- message
- 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
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention provides a conversion system for vehicle-mounted CAN bus data and FlexRay bus data. The conversion system comprises a first CAN bus transceiver, a second CAN bus transceiver, a third CAN bus transceiver, a FlexRay bus transceiver, a data conversion module and a control module. The FlexRay bus transceiver receives data transmitted to a FlexRay bus or transmits the data on the FlexRay bus. The data conversion module is used for converting the received data from a CAN bus into the FlexRay bus data and transmitting the converted data to the FlexRay bus and converting the received CAN bus data into the FlexRay bus data and transmitting the converted data to the CAN bus receiving the data. The control module is electrically connected with the first, second and third CAN bus transceivers, the FlexRay bus transceiver and the data conversion module and controls operation of the modules, wherein the first CAN bus transceiver, the second CAN bus transceiver and the third CAN bus transceiver are electrically connected with each other and electrically connected with the data conversion module, and the FlexRay bus transceiver is electrically connected with the data conversion module.
Description
Technical field
The present invention relates to telematics, more specifically, it is related to vehicle-mounted CAN bus data
With the switch technology between FlexRay bus datas.
Background technology
CAN (Controller Area Network) bus protocol is that ISO International standardizations are serial
Communication protocol.In automobile industry, for security, comfortableness, convenience, low nuisanceless,
The requirement of low cost, develops various electronic control systems, and the quantity of wire harness is also therewith
Increase.To adapt to " reducing the quantity of wire harness ", " by multiple networks, carrying out mass data
High-speed communication " the need for, Bosch develops the CAN communication agreement towards automobile.This
Afterwards, CAN is standardized by ISO11898, has been at present the standard association of automotive networking
View.
Current vehicle is mainly communicated using CAN and LIN buses, but when vehicle work(
Can be increasingly stronger, intelligence degree more and more higher, the semaphore of bus gradually increases, to communication
Reliability and requirement of real-time further improve, traditional CAN/LIN hybrid networks cannot
Meet demand, it is traditional especially in face of a new generation with line traffic control (X-BY-WIRE) technology
The bigger challenge of CAN/LIN network faces.
FlexRay due to its " time triggered " and the characteristic of " binary-channel redundancy transmission ",
Real-time and reliability aspect have embodied out bigger advantage.Simultaneously because CAN/LIN technologies
Maturation, it is various total that the low cost that scale effect is brought also causes that increasing automobile occurs
Line and the situation deposited.
Traditional car borne gateway, mainly realizes the mutual routing forwarding of the message of multichannel CAN, or
LIN buses and CAN message are carried out message routing by person each other.CAN turns
The gateway of FlexRay, is a kind of new gateway, and it can be realized CAN protocol and FlexRay
Agreement is mutually changed, and realizes the interconnection between two kinds of complete heterogeneous networks.
Because FlexRay agreements are the new bus protocols of a comparing, agreement is proposed to software and hardware
Requirement very high, therefore FlexRay buses are applied on vehicle, it is difficult more than CAN
Degree is big, high cost, and the time of exploitation debugging is long.
Application No. 200810201830.5, a kind of entitled " FlexRay-CAN communication gates
And implementation method " China's patent disclose a kind of FlexRay-CAN communication gates and realization side
Method, on the one hand can receive FlexRay protocol datas, through protocol conversion, encapsulation etc. process after with
CAN protocol is sent to CAN equipment, is sent to upper calculating also by RS232 interfaces
Machine;On the other hand CAN protocol data can be received, through protocol conversion, encapsulation etc. treatment after with
FlexRay agreements are sent to FlexRay bus apparatus, or are sent to upper by RS232 interfaces
Computer, realizes the protocol conversion of FlexRay buses and CAN based on microcontroller.
But its function of the invention is limited, is unsuitable to apply in In-vehicle networking.
Application No. 201110193320.X, the entitled " association of FlexRay buses and LIN buses
China's patent application of view conversion equipment and method " provides FlexRay buses and LIN buses
Protocol conversion apparatus and method, to solve the confinement problems of CAN.But this invention is carried
The transformational relation of the LIN that has gone out and FlexRay, because as extremely low LIN buses of speed and can
Up to the FlexRay buses of 10M bandwidth, FlexRay bus messages are gone on LIN, quite
Reached in one-way road in from highway, minimal amount of message, bus bandwidth can only be forwarded to reach
Less than, therefore be not suitable for being used in vehicle network.
The content of the invention
In view of this, the present invention is provided between vehicle-mounted CAN bus data and FlexRay bus datas
Converting system, the system includes:First CAN transceiver, the is sent to for receiving
Data in one CAN send the data in first CAN;2nd CAN
Bus transceiver, data in the second CAN are sent to or by described second for receiving
Data in CAN send;3rd CAN transceiver, the 3rd is sent to for receiving
Data in CAN send the data in the 3rd CAN;FlexRay buses
Transceiver, data in FlexRay buses are sent to or by the FlexRay buses for receiving
Data send;Data conversion module, it is used to that the data from CAN received will to be received
It is converted into FlexRay bus datas and gives FlexRay buses by the data is activation after conversion, and will
The CAN data conversion of reception is into FlexRay bus datas and by the data is activation after conversion
Give reception its CAN;And control module, itself and the first CAN transceiver,
Two CAN transceivers, the 3rd CAN transceiver, FlexRay bus transceivers, data
Modular converter is electrically connected, and controls their operation;Wherein, first CAN is received
Hair device, be electrically connected to each other between the second CAN transceiver, the 3rd CAN transceiver,
And electrically connected with data conversion module, the FlexRay bus transceivers and the data conversion
Module is electrically connected.
Alternatively, the vehicle-mounted CAN bus data according to example of the present invention and FlexRay bus datas
Between converting system, the system also include diagnostic module, its be configured to monitoring described first
Between conversion method flow chart.
Specific embodiment
Referring now to Description of Drawings schematic example of the invention, identical drawing reference numeral represents phase
Same element.Various embodiments described below contributes to those skilled in the art thoroughly to understand this hair
It is bright, and it is intended to example and unrestricted.Each element in figure, part, unit, device diagram not
It is certain drawn to scale, only illustrate schematically these elements, between part, module, device
Relativeness.
Fig. 1 be according to the vehicle-mounted CAN bus data of example of the present invention and FlexRay bus datas it
Between converting system structural representation.As illustrated, the vehicle-mounted CAN bus data with
Converting system between FlexRay bus datas includes the first CAN transceiver 10, second
CAN transceiver 12, the 3rd CAN transceiver 14, FlexRay bus transceivers 16,
Data conversion module 18 and control module 20.
First CAN transceiver 10, the second CAN transceiver 12 and the 3rd CAN
Transceiver 14 is each electrically connected with control module 20, control module 20 also with FlexRay buses
Transceiver 16 and data conversion module 18 are electrically connected.First CAN transceiver 10, second
Be electrically connected to each other between CAN transceiver 12, the 3rd CAN transceiver 14 and with
Data conversion module 18 is electrically connected, the FlexRay bus transceivers 16 and the data conversion mould
Block 18 is electrically connected.
First CAN transceiver 10 is received and is sent to data in the first CAN or should
Data in first CAN send.Second CAN transceiver 12 is received and is sent to second
Data in CAN send the data in second CAN.Second CAN
Transceiver 14 is received and is sent to data in the 3rd CAN or by the 3rd CAN
Data send.Control module 20 controls the first CAN transceiver 10, the second CAN to receive
Hair device 12, the 3rd CAN transceiver 14, FlexRay bus transceivers 16, data conversion mould
The operation that block 18 is electrically connected.
Illustratively, turning between the vehicle-mounted CAN bus data and FlexRay bus datas shown in Fig. 1
Change in system, the data on the first CAN transceiver 10 can be sent to the second CAN
Transceiver 12, correspondingly, the data on the second CAN transceiver 12 can be sent to first
CAN transceiver 10.Further, the first CAN transceiver 10 and the second CAN
Data on transceiver 12 can be changed via data conversion module 18, and it is total from CAN
Line number evidence is converted to FlexRay bus datas, so as to be sent to FlexRay bus transceivers 16.Phase
The FlexRay bus datas that Ying Di, FlexRay bus transceiver 16 sends also can be by data conversion mould
Block 18 is changed, and is converted into CAN data, so as to re-send to CAN transceiver
On.
Example of the invention, data conversion module 18 include first module 180, its be used for by
It is sent to the first CAN transceiver 10, the second CAN transceiver 12 and the 3rd CAN
The FlexRay data of any one are divided into n frame CAN data in bus transceiver 14, per frame CAN
There is data same period difference ID, wherein n to be based on FlexRay data lengths and the vehicle-mounted CAN
CAN data lengths under agreement determine.Data conversion module 18 also includes second unit 182, its
For will be sent to FlexRay bus transceivers 16 from the first CAN transceiver 10,
The CAN numbers of any one in second CAN transceiver 12 and the 3rd CAN transceiver 14
According to being configured to FlexRay data.
Before the operation of data conversion module 18 is illustrated, CAN is first sketched respectively herein
Bus data and FlexRay bus datas.
CAN message identifies (CAN ID) and valid data two parts comprising CAN message, per frame
The CAN ID of message are unique, and the length of valid data is generally 8 bytes, in some feelings
Under condition, 8 bytes can be less than per the valid data length of frame message.CAN is a kind of broadcast
Formula bus, each CAN node can be to broadcast data in bus, per frame message without obvious
Priority, message send in no particular order, when bus free, who first robs and accounts for bus, who
Just can be to bus broadcast data, if other nodes will send message, when can only wait bus free
Send.It can be said that CAN is preemptible bus.
FlexRay buses are a kind of non-preemptive buses, and its message sends has strict sequential,
The sequencing that message sends has regulation in communication scheduling table, does not allow some node to run counter to tune
Degree table regulation, sends data to bus alone.The message format and CAN message of FlexRay buses
There is difference, wherein, the valid data length of FlexRay buses can be very big, for up to 254 words
Section, its length is variable.
FlexRay bus datas are divided into static section message and dynamic segment message, static section message data
It is the message of some periodicity transmissions and length fixation, dynamic segment message is usually that some are aperiodic
And length message not etc..
A specific example of the invention illustrates first module 180 by FlexRay number of buses
According to the situation for being converted to CAN data.Assuming that FlexRay bus datas, that is, FlexRay
The valid data of message are 32 bytes, and first module 180 is based on the CAN numbers under vehicle-mounted CAN agreement
According to, that is, the valid data of CAN message are 8 bytes, then based on FlexRay messages and CAN
The valid data of report, it may be determined that n is 4, also will the FlexRay messages of 32 bytes be divided into 4 frame CAN
Message, and first module 180 distributes different ID to every frame CAN message.Assuming that FlexRay is reported
The valid data of text are 80 bytes, and first module 180 is based on the CAN numbers under vehicle-mounted CAN agreement
According to, that is, the valid data of CAN message are 8 bytes, then based on FlexRay messages and CAN
The valid data of report, it may be determined that n is 10, also will the FlexRay messages of 80 bytes be divided into 10 frames
CAN message, and first module 180 distributes different ID to every frame CAN message.
Example of the invention, in consolidated network, the significant figure of the message of static section FlexRay
Identical is preferably devised to according to length, is so conducive to the gateway in network to carry out unified data
Unpack packing.
A specific example of the invention come illustrate second unit 182 by CAN data turn
It is changed to the situation of FlexRay bus datas.Assuming that the static section valid data of FlexRay bus datas
It is 32 bytes, then 4 frame period identical CAN messages can be synthesized into a frame FlexRay messages is dealt into
The static section of FlexRay.If 4 frame CAN message cycles, in selecting 4 frame messages, the cycle is most
In the small cycle as this FlexRay message, will not thus lose communication quality.
Example of the invention, 16 bytes are set to by FlexRay static section valid data length.
FlexRay bus messages are different on the cycle from CAN message, and CAN message is
Based on event triggering, the cycle of each message is not very accurate, and recipient only needs identification
It is that CAN ID just may know that for which frame message;But FlexRay bus messages are with CAN message not
Together, FlexRay bus messages are based on time triggered, and its each frame message is in time all
It is to determine, and can not determines simply by the frame identifier (Frame ID) of FlexRay
Which frame message bottom is, but by a dispatch list, will cross FlexRay Frame ID and its
Cycle count (Cycle Count) and dispatch list are compareed, just know be in FlexRay networks which
The message that individual node is sent.FlexRay is general with 64 Cycle Count (Cycle 0-Cycle 63)
It is a complete cycle, therefore the static section message cycle of FlexRay is usually single Cycle
The integral multiple in Count cycles.
The present invention is by the cycle design of single Cycle Count into 5ms, and a complete communication is all greatly
Phase be cycle on 5ms*64=320ms, therefore FlexRay buses will be 5ms integral multiple, i.e.,
5ms, 10ms, 15ms etc..The message cycle phase of CAN has 10ms, 12ms to flexible,
15ms, 20ms etc., for the message for being similar to 12ms, go in FlexRay buses, need to be by its turn
10ms messages are sent out into, to ensure that speed is not lost in communication, data is not lost.
Example of the invention, between vehicle-mounted CAN bus data and FlexRay bus datas
Converting system also includes diagnostic module.Diagnostic module be configured to monitoring first CAN,
The operation of CAN, the second CAN and the 3rd CAN.
Alternatively, the vehicle-mounted CAN bus data according to example of the present invention and FlexRay bus datas
Between converting system, the 3rd CAN is configured to manage the diagnostic module by it
And FlexRay message routings are carried out with diagnosis route by it.
Alternatively, the vehicle-mounted CAN bus data according to example of the present invention and FlexRay bus datas
Between converting system, the data conversion module includes:First module, it is used to send out
It is sent in the first CAN, the second CAN and the 3rd CAN any one
FlexRay data are divided into n frame CAN data, have same period difference ID per frame CAN data,
It is true with CAN data lengths under the vehicle-mounted CAN agreement that wherein n is based on FlexRay data lengths
It is fixed;Second unit, it is used to that being received from the first CAN for FlexRay buses will to be sent to
Hair device, the second CAN transceiver and the CAN of any one in the 3rd CAN transceiver
Data configuration is into FlexRay data.
Alternatively, the vehicle-mounted CAN bus data according to example of the present invention and FlexRay bus datas
Between converting system, the second unit be configured to by some frame CAN message data configurations into
One frame FlexRay message datas, and with the week of cycle minimum in some frame CAN message data
Phase as the FlexRay message datas for being constituted the transmission cycle.
A kind of conversion side between vehicle-mounted CAN bus data and FlexRay bus datas is also provided
Method, it is characterised in that methods described includes:Reception will be converted into the CAN of FlexRay bus datas
Bus data, the CAN data configuration that some frames are received is into a frame FlexRay data;
Reception will be converted into the FlexRay bus datas of CAN data, by a frame FlexRay number of buses
According to n frame CAN data are divided into, there is same period difference ID, wherein n bases per frame CAN data
Determine in the CAN data lengths under FlexRay data lengths and the vehicle-mounted CAN agreement.
Alternatively, the vehicle-mounted CAN bus data according to example of the present invention and FlexRay bus datas
Between conversion method, the CAN data configuration that some frames are received is into a frame FlexRay
During data, cycle minimum cycle is used as being constituted using in some frame CAN message data
The transmission cycle of FlexRay message datas.
Brief description of the drawings
Fig. 1 be according to the vehicle-mounted CAN bus data of example of the present invention and FlexRay bus datas it
Between converting system structural representation.
The communication process that FlexRay node is diagnosed by CAN network that Fig. 2 shows.
Fig. 3 be according to the vehicle-mounted CAN bus data of example of the present invention and FlexRay bus datas it
The operation of the second CAN and the 3rd CAN.And the 3rd CAN be configured to lead to
Cross its described diagnostic module of management and FlexRay message routings are carried out by it and route with diagnosis.
Diagnostic module diagnoses message during diagnosis for CAN network, to meet
TP layer protocols specified in ISO15765-2, and diagnostic application layer specified in ISO14229-2
Agreement, for FlexRay network diagnosis messages, will meet TP specified in ISO10681-2 layers of association
View and ISO14229-2 diagnostic application layer protocols.
Put it briefly, the diagnosis message of CAN network meets the requirement of CAN, on FlexRay networks
Diagnosis message meet FlexRay requirement.
Example of the invention, for the system, the direct gateway of diagnostics port, diagnosis message is needed
Gateway is first passed through, data conversion module judges that diagnosis message is to FlexRay according to CAN ID
Network, then message is processed into the message of FlexRay forms by data conversion module 18.CAN
Message and FlexRay messages can be one-to-one, and frame CAN diagnosis messages can correspond to one
Individual FlexRay diagnoses message.CAN diagnosis message valid data length is 8 bytes, FlexRay nets
The diagnosis message valid data length of network is set to 16 bytes.
Example of the invention, data conversion module 18 may be implemented in the ECU of vehicle
In ECU.
The communication process that FlexRay node is diagnosed by CAN network that Fig. 2 shows.CAN is examined
Diagnosis message is issued gateway by disconnected instrument first, then after carrying out data conversion by data conversion module 18
Certain node on FlexRay networks is forwarded to, after FlexRay node receives diagnosis message, is returned
Multiple corresponding message after data conversion module 18 carries out protocol conversion process again, will be reported to gateway
Text is forwarded to CAN network, and diagnostic equipment just can receive this message.It is wherein many in CAN network
Frame is transmitted, and can be transmitted with the multiframe in FlexRay networks and corresponded.Here, data conversion mould
Block 18 can be configured in gateway.
In fig. 2,1 (SF) is single frames diagnosis message, and diagnosis destination node is FlexRay networks
On ECU;2 (STF) are the single frames diagnosis messages of FlexRay;3 (STF) are FlexRay
The multiframe transmission of network, is the multiframe response message to diagnostic equipment;4 (FF) are CAN networks
Multiframe transmission;5 (FC) are the flow control informations in CAN network;6 (FC) are FlexRay
Flow control information on network;7 (LF) are that FlexRay network diagnosises reply multiframe transmission most
A later frame;8 (CF) are that the last frame that message replys multiframe transmission is diagnosed in CAN network.
Illustratively, illustrate how herein by CAN diagnosis message be converted into FlexRay diagnosis message with
And its communication details.
Condition
For example:The order of parameter identification (PID) C000 is read, instruction format is 241 03 22
C0 00, then diagnostic module transmission:
241 03 22 C0 00 (241 represent a certain ECU diagnosis address, and 03 is TP layers of information,
Represent that efficient diagnosis data length is 3 bytes, 22 is diagnostic service number, represents and reads certain
PID, meets ISO 14229 and ISO 15765-2 diagnostic normses)
Bus is replied:641 10 0A 62 C0 00 00 00 00
Diagnostic module sends:241 30 00 00 (flow control frames)
Bus is replied:641 21 01 03 FF FF 00 00 00
Transfer process
0x241 is the address of ECU, and 0x641 is the address of diagnostic equipment, the data flow such as institute of table 1
Show:
In table 1, for transport layer, italic character segment is valid data;Thickened portion is transmission
Layer protocol control information;Remainder data is filling data.Representated by the label of the 1st row of table 1
Each row, be described as follows:
● 1 and 2 all for PID is read in single frames request, and 0241 is the address of ECU in 2,
0641 is the address of diagnostic equipment, and 40 is the communication layers association of the STF of FlexRay
View control information, 03 is the length (i.e. FPL) of the valid data of this frame, and 0003 is
The length (i.e. ML) of the transmission data of single frames or multiframe, 2 is a single frame transmission.
● 3 transmit for multiframe, are the multiframe responses to diagnostic equipment, wherein, 0641 is diagnostic equipment
Address, 0241 is ECU addresses, and 40 is STF, and 06 is FPL length, 000A
Be ML, behind 6 bytes be valid data domain.
● 5 receive the flow control frame sent after the first frame that multiframe is asked for diagnostic equipment, and 6 is gateway
The flow control frame for receiving is switched to the flow control frame of the communication layers of FlexRay, 0241 is
ECU addresses, 0641 is diagnostic equipment address, and 83 is the flow control frame of CTS, and 00 is
BC (Bandwidth Control), 0F FF are Internet Buffer, it is necessary to say
It is bright, Internet Buffer be in the current flow control frame of CAN it is no,
Therefore addition is needed to characterize the Internet of diagnostic equipment when gateway forwards
Buffer。
● 7 is the successive frame that ECU sends, and 06 41 is diagnostic equipment address, and 02 41 are
ECU addresses, 90 is last frame (LF), and 04 is FPL, and 00 0A is ML
(ML with STF above is equal), behind four bytes be that communication layers are effective
Data byte.
Due to being diagnosed to FlexRay networks by the 3rd CAN, work as diagnostic module
When receiving bus message by the 3rd CAN and recording, because data volume is big, it is impossible to real
Existing total data is while monitoring record.When FlexRay networks carry out message to the 3rd CAN
During route, message is carried out into packet route.According to the present invention, gateway is on FlexRay networks
Modules carry out packet, and 8 ECU can be included in FlexRay networks of the invention
Node 1, node 2,3 points of node are then A groups, by node from 1 to 8 by node, numbering
4th, node 5,6 points of node are B groups, are C groups by node 7,8 points of node.By to net
Close and send control command, the route pattern of gateway can be switched.Gateway for FlexRay networks to
The message of diagnostics port CAN network (that is, the interface of diagnostic module and the 3rd CAN)
Route pattern is divided into three kinds, pattern 1, pattern 2, pattern 3.
If gateway is operated in route pattern 1, be forwarded to for A group FlexRay messages by gateway
CAN3 networks, for data analysis and data record;If gateway is operated in pattern 2, gateway
B group FlexRay messages are forwarded to CAN3 networks, if gateway is operated in pattern 3, gateway
C group FlexRay messages are forwarded to CAN3 networks.CAN3 networks refer to the 3rd CAN
Bus and its transceiver and the net constituted by the element of the 3rd CAN interconnection
Network.
For FlexRay networks, gateway of the present invention supports that across a network bus program refreshes work(
Energy.So-called bus program refreshes, refer to not by single-chip microcomputer programming mouthful, using communication network as
Transmission medium, modules journey in network is realized using the program updating service in diagnostic service
The function that sequence refreshes.Using FlexRay diagnostic equipments, it is right in FlexRay networks to may be coupled directly to
Each module is refreshed.Gateway of the present invention supports diagnosis routing function, wherein diagnostic service
Comprising the respective services needed for program updating.By the CAN-FlexRay of gateway of the present invention
Diagnosis routing function, FlexRay networks are forwarded to by program updating message routing, and it is right to realize
The refreshing of FlexRay nodes.
For FlexRay networks, gateway of the present invention supports that across a network bus program refreshes work(
Energy.So-called bus program refreshes, refer to not by single-chip microcomputer programming mouthful, using communication network as
Transmission medium, modules journey in network is realized using the program updating service in diagnostic service
The function that sequence refreshes.Using FlexRay diagnostic equipments, it is right in FlexRay networks to may be coupled directly to
Each module is refreshed.Gateway of the present invention supports diagnosis routing function, wherein diagnostic service
Comprising the respective services needed for program updating.By the CAN-FlexRay of gateway of the present invention
Diagnosis routing function, FlexRay networks are forwarded to by program updating message routing, and it is right to realize
The refreshing of FlexRay nodes.
Wherein electric source modes management module, is made up of two parts, and a part is input switching circuit,
Another part is output relay circuit.Wherein input switching circuit, the input of external three road rigid line,
By being connected on single-chip microcomputer after level conversion.Three road rigid lines inputs be respectively ACC, RUN,
CRANK, is connected with vehicle ignition switch.Ignition switch has 4 positions, respectively OFF,
ACC、RUN、CRANK.Wherein output relay circuit, there is three external relays of output end
Device, three output ends be respectively ACC Relay output ends, RAP Relay output ends,
RUN/CRANK Relay output ends.
When key goes to OFF, three rigid line inputs are low level, and vehicle is in OFF moulds
Formula, now three relay output ends be low level, now 3 road CAN and 1 road FlexRay
In a dormant state, without bus communication;When key goes to ACC, ACC inputs are electricity high
Flat, the input of other two-way is low level, and vehicle is under ACC mode, now ACC Relay
And RAP Relay are high level, now 3 road CAN and 1 road FlexRay are in waking up
State, there is bus communication and message routing;When key goes to RUN, ACC, RUN are defeated
Go out end and be high level, vehicle is in RUN patterns, now ACC Relay, RAP Relay
And RUN/CRANK Relay are high level, 3 road CAN and 1 road FlexRay is in and calls out
The state of waking up, there is bus communication and message routing;When key goes to CRANK, RUN inputs
End is high level with CRANK output ends, and ACC inputs are low level, and vehicle is in
CRANK patterns, now ACC Relay and RUN/CRANK Relay are high level, RAP
Relay is low level, and vehicle is in fired state, and it is dynamic that engine performs igniting under motor drive
Make, bus is in wake-up states.CRANK is a unstable state, when vehicle is lighted a fire successfully
Afterwards, CRANK patterns are automatically exited from, RUN patterns are entered into, key can be automatic from CRANK
Position springs back to RUN positions.
By the location of firing key, the dormancy of the powering mode and network of vehicle is determined
Wake-up states, complete vehicle network management.It is whole when firing key goes to OFF from ACC
Car network will not immediately enter dormancy, and gateway can start a timer, after timing terminates,
Whole network can just enter dormancy, stop communication.
Example of the invention, also provides a kind of vehicle-mounted CAN bus data and FlexRay buses
Conversion method between data.Fig. 3 is the schematic flow sheet of the method.As illustrated, in step
30, reception will be converted into the CAN data of FlexRay bus datas.In step 32, if will
The CAN data configuration that dry frame is received into a frame FlexRay data, wherein, constituted
FlexRay data.In step 34, reception will be converted into the FlexRay number of buses of CAN data
According to.In step 36, a frame FlexRay bus datas are divided into n frame CAN data, per frame CAN
There is data same period difference ID, wherein n to be based on FlexRay data lengths and the vehicle-mounted CAN
CAN data lengths under agreement determine.Method as shown in Figure 3 can combine car as shown in Figure 1
The converting system between CAN data and FlexRay bus datas is carried to realize.
Although with reference to accompanying drawing in described above, disclosing specific embodiment of the invention,
But one of skill in the art will understand that, can without departing from the spirit of the invention,
Disclosed specific embodiment is deformed or changed.Embodiments of the invention are only used for illustrating simultaneously
It is not used in the limitation present invention.
Claims (7)
1. the converting system between a kind of vehicle-mounted CAN bus data and FlexRay bus datas, it is characterised in that the system includes:First CAN transceiver, for receiving the data that are sent in the first CAN or sending the data in first CAN;
Second CAN transceiver, for receiving the data that are sent in the second CAN or sending the data in second CAN;
3rd CAN transceiver, for receiving the data that are sent in the 3rd CAN or sending the data in the 3rd CAN;
FlexRay bus transceivers, for receiving the data that are sent in FlexRay buses or sending the data in the FlexRay buses;
Data conversion module, it is used to give reception its CAN into FlexRay bus datas and by the data is activation after conversion to FlexRay buses, and the CAN data conversion that will be received into FlexRay bus datas and by the data is activation after conversion the data conversion from CAN for receiving;And
Control module, it electrically connects, and controls their operation with the first CAN transceiver, the second CAN transceiver, the 3rd CAN transceiver, FlexRay bus transceivers, data conversion module;
Wherein, the first CAN transceiver, be electrically connected to each other between the second CAN transceiver, the 3rd CAN transceiver and electrically connected with data conversion module, the FlexRay bus transceivers are electrically connected with the data conversion module.
2. converting system as claimed in claim 1, it is characterised in that the system also includes diagnostic module, its operation for being configured to monitoring first CAN, the second CAN and the 3rd CAN.
3. converting system as claimed in claim 2, it is characterised in that the 3rd CAN is configured to manage the diagnostic module and carry out FlexRay message routings by it by it route with diagnosis.
4. the converting system as described in any one in Claim 1-3, it is characterised in that the data conversion module includes:
First module, it is used to that the first CAN, the second CAN will to be sent to and the FlexRay data of any one are divided into n frame CAN data in the 3rd CAN, there is same period difference ID, wherein n to be based on FlexRay data lengths per frame CAN data to determine with the CAN data lengths under the vehicle-mounted CAN agreement;
Second unit, the CAN data configurations of any one from the first CAN transceiver, the second CAN transceiver and in the 3rd CAN transceiver that it is used to being sent to FlexRay buses are into FlexRay data.
5. converting system as claimed in claim 4, it is characterized in that, the second unit is configured to some frame CAN message data configurations into a frame FlexRay message datas, and using the cycle of cycle minimum in some frame CAN message data as the transmission cycle of the FlexRay message datas for being constituted.
6. the conversion method between a kind of vehicle-mounted CAN bus data and FlexRay bus datas, it is characterised in that methods described includes:
Reception will be converted into the CAN data of FlexRay bus datas,
The CAN data configuration that several are received is into a frame FlexRay data;
Reception will be converted into the FlexRay bus datas of CAN data,
One frame FlexRay bus datas are divided into n frame CAN data, be there is same period difference ID, wherein n to be based on FlexRay data lengths per frame CAN data and determined with the CAN data lengths under the vehicle-mounted CAN agreement.
7. conversion method as claimed in claim 6, it is characterized in that, when the CAN data configuration that some frames are received is into a frame FlexRay data, transmission cycle of the cycle of cycle minimum as the FlexRay message datas for being constituted using in some frame CAN message data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510449880.5A CN106713092A (en) | 2015-07-28 | 2015-07-28 | Conversion system for vehicle-mounted CAN bus data and FlexRay bus data and conversion method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510449880.5A CN106713092A (en) | 2015-07-28 | 2015-07-28 | Conversion system for vehicle-mounted CAN bus data and FlexRay bus data and conversion method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106713092A true CN106713092A (en) | 2017-05-24 |
Family
ID=58894861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510449880.5A Pending CN106713092A (en) | 2015-07-28 | 2015-07-28 | Conversion system for vehicle-mounted CAN bus data and FlexRay bus data and conversion method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106713092A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108121326A (en) * | 2017-12-11 | 2018-06-05 | 北京经纬恒润科技有限公司 | A kind of fault diagnosis method and system |
CN108614500A (en) * | 2018-06-22 | 2018-10-02 | 北京科东电力控制系统有限责任公司 | Electric vehicle monitoring device and electric vehicle |
CN108891227A (en) * | 2018-06-29 | 2018-11-27 | 深圳市汇川技术股份有限公司 | A kind of method, system and control panel that vehicle is communicated with air-conditioning |
CN114500679A (en) * | 2022-01-27 | 2022-05-13 | 中国第一汽车股份有限公司 | Can protocol conversion method and device, electronic equipment and storage medium |
CN114650194A (en) * | 2022-03-29 | 2022-06-21 | 深圳市元征科技股份有限公司 | Data communication method, device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1996966A (en) * | 2005-12-20 | 2007-07-11 | 富士通天株式会社 | Communication message converting apparatus and communication message converting method |
CN101478460A (en) * | 2008-10-28 | 2009-07-08 | 上海电力学院 | FlexRay-CAN communication gateway and implementing method |
CN102325128A (en) * | 2011-07-11 | 2012-01-18 | 北京交通大学 | Protocol conversion device and method for FlexRay bus and LIN bus |
CN102710479A (en) * | 2012-06-14 | 2012-10-03 | 北京理工大学 | Automobile gateway system for inverse resolution of communication protocols |
-
2015
- 2015-07-28 CN CN201510449880.5A patent/CN106713092A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1996966A (en) * | 2005-12-20 | 2007-07-11 | 富士通天株式会社 | Communication message converting apparatus and communication message converting method |
CN101478460A (en) * | 2008-10-28 | 2009-07-08 | 上海电力学院 | FlexRay-CAN communication gateway and implementing method |
CN102325128A (en) * | 2011-07-11 | 2012-01-18 | 北京交通大学 | Protocol conversion device and method for FlexRay bus and LIN bus |
CN102710479A (en) * | 2012-06-14 | 2012-10-03 | 北京理工大学 | Automobile gateway system for inverse resolution of communication protocols |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108121326A (en) * | 2017-12-11 | 2018-06-05 | 北京经纬恒润科技有限公司 | A kind of fault diagnosis method and system |
CN108614500A (en) * | 2018-06-22 | 2018-10-02 | 北京科东电力控制系统有限责任公司 | Electric vehicle monitoring device and electric vehicle |
CN108891227A (en) * | 2018-06-29 | 2018-11-27 | 深圳市汇川技术股份有限公司 | A kind of method, system and control panel that vehicle is communicated with air-conditioning |
CN108891227B (en) * | 2018-06-29 | 2021-12-21 | 深圳市汇川技术股份有限公司 | Method and system for communication between whole vehicle and air conditioner and control panel |
CN114500679A (en) * | 2022-01-27 | 2022-05-13 | 中国第一汽车股份有限公司 | Can protocol conversion method and device, electronic equipment and storage medium |
CN114500679B (en) * | 2022-01-27 | 2024-03-26 | 中国第一汽车股份有限公司 | can protocol conversion method, can protocol conversion device, electronic equipment and storage medium |
CN114650194A (en) * | 2022-03-29 | 2022-06-21 | 深圳市元征科技股份有限公司 | Data communication method, device, electronic equipment and storage medium |
CN114650194B (en) * | 2022-03-29 | 2024-05-10 | 深圳市元征科技股份有限公司 | Data communication method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110758289B (en) | Sleep and wake-up method of in-vehicle hybrid network comprising vehicle-mounted Ethernet | |
US11233750B2 (en) | Method and apparatus for allocating transmission opportunities in vehicle network | |
CN106713092A (en) | Conversion system for vehicle-mounted CAN bus data and FlexRay bus data and conversion method thereof | |
JP4847469B2 (en) | Data transmission method in control system having a plurality of stations, and control system | |
EP2863587B1 (en) | Flexray communications using ethernet | |
CN105388858B (en) | Method of operating a communication node in a network | |
CN108156062A (en) | The gateway controller of various communications protocols including compatible Ethernet and CAN FD | |
US11171807B2 (en) | Method and apparatus for allocating priority transmission opportunities in vehicle network | |
CN107566235A (en) | Message data transmission method and device and electric vehicle | |
Navet et al. | A review of embedded automotive protocols | |
CN109189432A (en) | A kind of automobile ECU data write with a brush dipped in Chinese ink method and relevant device | |
CN210839611U (en) | Sleep and awakening device of in-vehicle hybrid network comprising vehicle-mounted Ethernet | |
CN107181615A (en) | A kind of method and device emulated to CRH2 TCNs | |
KR20130099813A (en) | Method for changing an operating state of at least one device | |
CN117917881A (en) | Traffic scheduling method and device and vehicle | |
Mahmud | In-vehicle network architecture for the next-generation vehicles | |
US20200344740A1 (en) | Method and apparatus for transmitting and receiving data stream performed in vehicle network | |
CN115002160B (en) | Vehicle cloud service implementation method and system | |
Wang et al. | Design of TSN-based Ethernet driver working model for time-aware scheduling | |
KR101654720B1 (en) | A method for controlling can by can coordinator | |
Marques et al. | Efficient transient error recovery in FlexRay using the dynamic segment | |
KR100583811B1 (en) | The can message identifier allocation method and the can message transfer arbitration method for the humanoid robot | |
CN113541991B (en) | Train network control system and communication control method based on time sensitive network | |
Herpel et al. | Routing of safety-relevant messages in automotive ECU networks | |
Min et al. | Performance Enhancement of In-Vehicle 10BASE-T1S Ethernet Using Node Prioritization and Packet Segmentation |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170524 |
|
RJ01 | Rejection of invention patent application after publication |