Background technology
At present, known pure electric automobile bus system is directly to adopt in the orthodox car mature C AN bus system substantially, the bus system that does not meet pure electric automobile, vehicle interior temperature changes greatly in the pure electric automobile, electro countermeasure and other electronic noises are stronger than fuel-engined vehicle, environment is abominable, makes the serviceability of network in pure electric automobile seem particularly important.Car-mounted electronic device can be divided into four classes by the data type and the performance requirement of communication: information entertainment, power drive system, body electronics system, fault localization system.Because the transfer rate of this four type systematic has a great difference, CAN bus width scope, ability to communicate and communication speed can not satisfy multimedia recreation demands of applications in the electronlmobil fully.So just can not form the ripe complete Communication Control network of a car load.
Along with increasing rapidly of the electronics package of follow-on high-grade manned vehicle, multibus merges, the bus system of hierarchical control will make the car load Control Network form the general layout of " local one-tenth net, regional interconnected ", adopt the higher fieldbus of transfer rate at information entertainment, at the high fieldbus of power drive system reliability of service, different in-vehicle electronic system subnets is fused into vehicle netbios by design-calculated gateway in the car, increase network utilization and the communication reliability, this has progressively become the development tendency of vehicle netbios.
In 2009 04 phases of Central China University of Science and Technology's journal " based on the pure electric sedan inter-vehicle information system of the CAN " literary composition a kind of technical solution has been proposed, that is: the employing high-speed CAN respectively of information system and low speed CAN make up network information system, do not consider the application of the multimedia entertainment system of pure electric vehicle, continuous development along with pure electric automobile, all the time to face more high-revolving communication need, the network application demand of the pure electric automobile that this network information system still can not satisfy fully.
In 2009 02 phases of automated manufacturing " based on the research of the TTCAN dispatching algorithm of electronlmobil ", transmission of messages is unpredictable constantly, low priority message gets clogged easily in order to solve, bus meets uneven impartial, quote Time Triggered mechanism, formed the TTCAN agreement, this agreement also is based on traditional CAN bus topolopy, the key distinction is in the agreement of application layer and session layer, though improve to some extent but fail to realize hierarchical network thought at all, can not satisfy the multimedia equipment application demand.
In the prior art, the car load network that makes up pure electric automobile is lacked actual, feasible scheme.
Summary of the invention
The objective of the invention is to optimize the car load network architecture, improve the in-vehicle network degree of utilization and ensure the communication reliability, realize that many fieldbuss merge, and give full play to different fieldbus advantages in order to make up a kind of car load Control Network that meets pure electric automobile.
The present invention is achieved by the following technical solutions.
Based on Industrial Ethernet, the method and the device of a kind of high speed of suitable bottom communication, stable vehicle-mounted fieldbus and multibus hierarchical control, the network integration proposed.
Method of the present invention is to constitute multilayer distributed bus system (referring to accompanying drawing 1) with industry ethernet (the present invention claims NCU_BUS again), CAN bus, LIN bus, at the bigger equipment of industry ethernet layer carry communication data amount, connect the relatively low equipment of communication speed in the CAN bus layer, carry out data communication by gateway between the bus.
Device of the present invention is with industry ethernet, CAN bus, LIN bus, constitutes multilayer distributed bus system.The industry ethernet layer connects the big amusement equipment of communication data amount, as infotainment devices such as portable entertainment device, back seat entertainment systems, DVD, and by the information interaction between whole-control system (NCU-VMS-02 contains the NCU_BUS-CAN gateway) and CAN bus realization different bus; The CAN bus layer connects the relatively low equipment of communication speed, as electronic machine such as battery management system, electric machine control system, ABS system and vehicle seat module etc., and by the information interaction between CAN-LIN gateway and LIN bus realization different bus; The LIN bus layer connects equipment such as back mirror, guidance panel, door lock, vehicle window.
In constructional drawing shown in Figure 1, the bigger equipment of carry communication data amount on bottom NCU_BUS communication bus, for example back seat entertainment systems, in-car TV etc., whole-control system (NCU-VMS-02) is the second generation intelligence whole-control system based on the NCU_BUS bus, system not only has the car load control unit, and the integrated gateway function, adopt the ARM9 design, can satisfy the data exchange demand of NCU_BUS bus layer and CAN bus layer fully; Connect electric machine control system and pure electric automobile battery management system (NCU-BMS-01) in the CAN bus layer, door module and vehicle seat module all are the sub-net module that has gateway, can alleviate the pressure communication of CAN bus layer like this, adopt the lower LIN bus of cost in inside modules, both cost-cutting also can improve network system stability, realized the advantage of network hierarchy control.
Whole-control system of the present invention (referring to accompanying drawing 2), comprise control system MCU, industry ethernet controller, CAN bus controller, car load control executive circuit, display module, GPRS module, GPS module etc., the industry ethernet controller is connected with industry ethernet by isolator, the CAN bus controller is by transceiver and the total wire joint of CAN, and GPRS module, GPS module are connected to control system MCU.
Whole-control system is integrated GPS module and GPRS module, can manage car load equipment by car load circuit execution module, connect CAN controller and NCU_BUS controller, CAN bus and NCU_BUS bus are carried out the data relay transmission by MCU, MCU is as the gateway of two-layer bus, can interim data also play the effect of data isolation, guaranteeing that the multilayer bus is not disturbed mutually improves communication robust.
CAN-LIN gateway of the present invention (referring to accompanying drawing 3) comprises central controller (gateway), CAN bus interface circuit, LIN bus interface circuit.The CAN bus is connected to central controller (gateway) by the CAN bus interface circuit, and the LIN bus is connected to central controller (gateway) by the LIN bus interface circuit.
Data are done the physics isolation by the MCU transfer of central controller and to data between bus, guarantee communication robust between CAN, LIN bus.
The present invention adopts the IEEE802.3 procotol at the media access control sublayer of NCU_BUS software design-calculated Physical layer and data link layer, adopt the bus transfer agreement of a cover simplification in transport layer, promptly cancel upper TCP/IP agreement, simplify agreement in the type of ether frame head with filling to adopt in the field: comprise frame length (2 byte), frame number (2 byte), segmentation marker (2 byte), verification and (2 byte), data (42-1492 byte).
The present invention had both simplified upper TCP/complicated control step of IP agreement, had also kept the big characteristics of ethernet single frames transmitted data amount, guaranteed the reliability of bus transfer data simultaneously.So just overcome the little shortcoming of CAN fieldbus transmitted data amount, stablized at a high speed, be applicable to the fieldbus transmission specification of electronlmobil.
The present invention connects infotainment devices such as portable entertainment device, back seat entertainment systems, DVD at NCU_BUS bus communication layer, and design is based on the whole-control system of this bus, car load Control Network unit both can have been done by this system, also can be used as the Communication Gateway of NCU_BUS bus layer and CAN bus layer, finish the different bus information interaction.Connect electronic machines such as the relatively low battery management system (NCU-BMS-01) of communication speed, electric machine control system, ABS system in the CAN bus layer, simultaneously a plurality of distinct devices of carry.In order to alleviate CAN bus layer pressure communication, simplify network, cost-cutting adopts the lower LIN bus of cost to make up communication subnet in the low side network, realizes data interaction between the different Communication Layers by the CAN-LIN gateway then.
The present invention realizes the design based on the multilayer distributed bus system of industry ethernet (NCU_BUS), ripe CAN bus, LIN bus in the pure electric automobile bus design, make full use of various bus advantages, the NCU_BUS of bottom can stablize the information interaction between the big data on flows equipment of high-revolving realization, for upper layer data provides secure support alternately, ensure the realization that Vehicle Electronic Control is integrated, information is unitized.
The present invention is on the basis of satisfying the requirement of existing electric automobile whole Control Network structure, with distinct device communication need stratification, merge different fieldbus advantages, communication need and communication speed had both been guaranteed, the stability of car load network system is provided again, is the multimedia messages development structure failure-free communication network of electronlmobil.
The specific embodiment
The present invention is further described below in conjunction with drawings and Examples.
Present embodiment whole-control system MCU chip is S3C2440, and the industry ethernet controller chip is RTL8019, and CAN bus controller chip is MCP2510, and central controller (gateway) chip is SST89E516RD2.
With industry ethernet, CAN bus, LIN bus, constitute multilayer distributed bus system.The industry ethernet Communication Layer connects portable entertainment device, back seat entertainment systems, DVD, and by the information interaction between whole-control system and CAN bus realization different bus; The CAN bus layer connects relatively low battery management system, electric machine control system, the ABS system of communication speed, and by the information interaction between CAN-LIN gateway and LIN bus realization different bus; The LIN bus layer connects back mirror, guidance panel, door lock, vehicle window.
Media access control sublayer in NCU_BUS software design-calculated Physical layer and data link layer adopts the IEEE802.3 procotol, adopt the bus transfer agreement of a cover simplification in transport layer, promptly cancel upper TCP/IP agreement, simplify agreement in the type of ether frame head with filling to adopt in the field: comprise frame length (2 byte), frame number (2 byte), segmentation marker (2 byte), verification and (2 byte), data (42-1492 byte).
Described whole-control system (referring to accompanying drawing 2), comprise control system MCU, industry ethernet controller, CAN bus controller, car load control executive circuit, display module, GPRS module, GPS module, the industry ethernet controller is connected with industry ethernet by isolator, and the CAN bus controller is by transceiver and the total wire joint of CAN.GPRS module, GPS module are connected to control system MCU.
Described CAN-LIN gateway (referring to accompanying drawing 3) comprises central controller (gateway), CAN bus interface circuit, LIN bus interface circuit.The CAN bus is connected to central controller (gateway) by the CAN bus interface circuit, and the LIN bus is connected to central controller (gateway) by the LIN bus interface circuit.