Vehicle bus method for safety monitoring, device and system
Technical field
The present invention relates to electronic technology, particularly relate to a kind of vehicle bus method for safety monitoring, device
And system.
Background technology
Controller local area network (Controller Area Network, CAN) bus protocol is ISO
The serial communication protocol of International standardization.Owing to the data communication of CAN has prominent real-time
Property and motility, be increasingly subject to people's attention, be especially widely used on automotive field.
CAN is the most important bus of interior of body, is the core network of current automotive interior,
It is connected to such as engine control system, gearbox control system, auto-cruising control, instrumental panel
With the modules such as car body control module, permissible based on the CAN data transmitted in CAN
These systems and module are controlled.
But CAN is the most under attack at present, thus causes CAN data quilt
Distort, traffic safety is threatened.In the prior art, often through production firm or dimension
Repair a little when vehicle is safeguarded, check vehicle to know whether CAN exists safety
Leak and the most under attack, but this mode, owing to needs wait that vehicle is safeguarded, lead
Cause the inefficient of monitoring CAN safety.
Summary of the invention
The present invention provides a kind of vehicle bus method for safety monitoring, device and system, is used for solving now
There is the inefficient technical problem monitoring CAN safety in technology.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
First aspect, it is provided that a kind of vehicle bus safety monitoring device, including: CAN connects
Mouth, processor, memorizer and vehicle are to surrounding devices (Vehicle to X, V2X) transmitter;
Described CAN interface, described memorizer and described V2X transmitter respectively with described place
Reason device connects;
Described CAN interface, for reading CAN data from CAN, by described
CAN data are one-way transmitted to described processor;
Described processor, obtains at least two CAN for carrying out described CAN data replicating
Bus data, is one-way transmitted to described V2X by described at least two CAN data
Transmitter, and deposit described in another in described at least two CAN data is one-way transmitted to
Reservoir;
Described memorizer, stores for the CAN data being transmitted described processor;
Described V2X transmitter, for sending described based on V2X communication mode to monitoring server
The CAN data that processor is transmitted.
Second aspect, it is provided that a kind of vehicle bus safety monitoring system, including being provided with as above institute
The vehicle of the vehicle bus safety monitoring device stated, and monitoring server;
Described monitoring server, is used for receiving CAN data, and to described CAN
Data are monitored.
The third aspect, it is provided that a kind of vehicle bus method for safety monitoring, including:
CAN interface is used to read CAN data from CAN;
Use described CAN interface to CAN data described in processor one-way transmission;
Use described processor that described CAN data are replicated, it is thus achieved that at least two CAN
Bus data;
Use described processor at least two CAN number described in V2X transmitter one-way transmission
According to one, and another at least two CAN data described in memorizer one-way transmission
One;
The CAN data using described memorizer to be transmitted described processor store;
Described V2X transmitter is used to send described place based on V2X communication mode to monitoring server
The CAN data that reason device is transmitted.
Vehicle bus method for safety monitoring, device and the system that the embodiment of the present invention provides, passes through CAN
EBI will read CAN data from CAN and be one-way transmitted to processor, processor
CAN data are one-way transmitted to V2X transmitter, and V2X transmitter communicates based on V2X
Mode is transmitted to monitoring server, and processor is also by this CAN data one-way transmission
Store to memorizer, can in real time CAN data be supervised realizing monitoring server
Control, and find the exception existing for CAN data in time, improve the efficiency of security monitoring.
Meanwhile, the backup by memorizer in a device, these CAN data carried out and processor with
One-way transmission between CAN interface, memorizer and V2X transmitter, effectively prevent employing
The mode attacked monitoring server and attack vehicle bus safety monitoring device is usurped
Change monitored CAN data.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the present invention
Technological means, and can be practiced according to the content of description, and the present invention's be upper in order to allow
State and can become apparent with other objects, features and advantages, below especially exemplified by the concrete reality of the present invention
Execute mode.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit
Place will be clear from understanding for those of ordinary skill in the art.Accompanying drawing is only used for illustrating preferably
The purpose of embodiment, and it is not considered as limitation of the present invention.And at whole accompanying drawing
In, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
The structure of a kind of vehicle bus safety monitoring device 10 that Fig. 1 provides for the embodiment of the present invention one
Schematic diagram;
The knot of a kind of vehicle bus safety monitoring device 10 that Fig. 2 is provided by the embodiment of the present invention two
Structure schematic diagram;
The structural representation of the vehicle bus safety monitoring system that Fig. 3 is provided by the embodiment of the present invention three
Figure;
Fig. 4 is vehicle bus safety monitoring device 10 scheme of installation;
Fig. 5 shows for the flow process of a kind of vehicle bus method for safety monitoring that the embodiment of the present invention four provides
It is intended to.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although it is attached
Figure shows the exemplary embodiment of the disclosure, it being understood, however, that can be with various shapes
Formula realizes the disclosure and should not limited by embodiments set forth here.On the contrary, it is provided that these
Embodiment is able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Vehicle bus method for safety monitoring, dress to embodiment of the present invention offer below in conjunction with the accompanying drawings
Put and be described in detail with system.
Embodiment one
The structure of a kind of vehicle bus safety monitoring device 10 that Fig. 1 provides for the embodiment of the present invention one
Schematic diagram, the vehicle bus safety monitoring device 10 that the present embodiment is provided is installed on vehicle interior,
As it is shown in figure 1, vehicle bus safety monitoring device 10 includes:
CAN interface 11, processor 12, memorizer 13 and V2X transmitter 14.
CAN interface 11, memorizer 13 and V2X transmitter 14 is respectively with processor 12 even
Connect.
Wherein, CAN interface 11, for reading CAN number from the CAN of vehicle
According to, CAN data are one-way transmitted to processor 12.
Processor 12, obtains at least two CAN for carrying out CAN data replicating
Data, are one-way transmitted to V2X transmitter 14 by least two CAN data,
And another at least two CAN data is one-way transmitted to memorizer 13.
Concrete, as a kind of possible implementation, processor 12 receives CAN and connects
Then these CAN data are replicated once by the CAN data that mouth 11 is sent, and then
Obtain two CAN data and be sent respectively to V2X transmitter 14 and memorizer 13.
Memorizer 13, stores for CAN data transmitted to processor 12.
Concrete, it is internal that memorizer 13 is in vehicle bus safety monitoring device 10, is used for storing
The CAN data at least read from the CAN of vehicle in one hour.Due to cost
Limited, the limited storage space of memorizer 13, when memory space is the fullest, the newest CAN
Data will cover the CAN data of oldest stored.This mode ensure that when vehicle occurs
After accident and danger, it is possible to record accident occurs the CAN data of at least one hour front.
V2X transmitter 14, for sending processor based on V2X communication mode to monitoring server
12 transmitted CAN data.
Concrete, V2X transmitter 14 is used for connecting monitoring server by wisdom roadnet.?
V2X communication base station it is deployed with in wisdom roadnet.When V2X transmitter 14 receives processor
These CAN data will be sent to wisdom road system by the CAN data that 12 send
System.These CAN data are sent to the background monitoring service of vehicle manufacturer by wisdom roadnet
Device.Owing to the memory space of monitoring server is bigger, the CAN data that therefore can store
Data volume is bigger.Generally, the traffic rate that CAN produces is 100KBps, passes through
20 to 80KBps can be reached after compression, and the traffic rate of V2X communication mode is minimum
400KBps, V2X communication mode is fully able to satisfied total for the CAN between monitoring server
Line data are transmitted.
As can be seen here, between processor and CAN interface, memorizer and V2X transmitter it is
One-way transmission, and be connected with each other by I2C interface, concrete, processor 12 and CAN
It is provided with the unidirectional transmission unit of data between interface 11, memorizer 13 and V2X transmitter 14.
Optionally, the unidirectional transmission unit of data is one-way transmission optical gate.
Owing to being unidirectional biography between processor and CAN interface, memorizer and V2X transmitter
Defeated, thus effectively prevent and from outside vehicle, vehicle bus safety monitoring device 10 is attacked,
Thus memorizer 13 is write, to distort monitored CAN data.
Further, the reading pin of memorizer 13 is in blank state.
Thus memorizer 13 is served only for storage so that the interface of this reading information is unavailable.Work as vehicle
After causing danger, need to take out the storage chip of memorizer 13, be arranged on external read-write equipment
On, the CAN data that memorizer 13 is stored could be read, thus enhance CAN
The confidentiality of data, it is to avoid data leak caused safety problem.
In the present embodiment, CAN data will be read from CAN by CAN interface
Being one-way transmitted to processor, CAN data are one-way transmitted to V2X transmitter by processor,
V2X transmitter is transmitted to monitoring server based on V2X communication mode, and processor also will
These CAN data are one-way transmitted to memorizer and store, with realize monitoring server can be real
Time CAN data are monitored, and find exception existing for CAN data in time,
Improve the efficiency of security monitoring.Meanwhile, by memorizer in a device to this CAN number
According between the backup carried out and processor and CAN interface, memorizer and V2X transmitter
One-way transmission, effectively prevent employing and attacks and monitoring server to vehicle bus safety
The mode that supervising device carries out attacking distorts monitored CAN data.
Embodiment two
The knot of a kind of vehicle bus safety monitoring device 10 that Fig. 2 is provided by the embodiment of the present invention two
Structure schematic diagram, as in figure 2 it is shown, the vehicle bus safety monitoring device provided in a upper embodiment
On the basis of 10, the present embodiment farther includes: V2X receptor 21 and voice-output unit
22。
V2X receptor 21 is connected with voice-output unit 22.
V2X receptor 21, for receiving the information that monitoring server sends.
Wherein, information is that CAN data are monitored and work as determining by monitoring server
CAN data are generated when existing abnormal.
Optionally, V2X receptor 21 and V2X transmitter 14 may be constructed V2X communication unit,
It is integrated on same hardware chip.
Voice-output unit 22, for broadcasting prompt information.
Optionally, voice-output unit 22 is speaker.
Owing to the monitoring server disposal ability on backstage is strong, therefore after receiving CAN data,
According to predefined vehicle communication agreement, quickly resolve.Once in CAN data
The CAN message noted abnormalities, monitoring server will generate information, by wisdom roadnet,
The V2X receptor 21 being sent in vehicle bus safety monitoring device 10, V2X receptor 21
Receive information, directly reported by voice-output unit 22, remind driver to note travelling
Safety.
Further, vehicle bus safety monitoring device 10 also includes compression unit 23.
Compression unit 23 is connected with CAN interface 11 and processor 12 respectively.
Compression unit 23, enters for the CAN data being read CAN interface 11
Row compression.
Owing to the data in CAN are a lot, data volume is relatively big, and has the biggest repeatability,
Therefore by the means of data compression, CAN data compression is become the CAN that data volume is less
Bus data, to reduce data transmission and the pressure of storage.
In the present embodiment, CAN data will be read from CAN by CAN interface
Being one-way transmitted to processor, CAN data are one-way transmitted to V2X transmitter by processor,
V2X transmitter is transmitted to monitoring server based on V2X communication mode, and processor also will
These CAN data are one-way transmitted to memorizer and store, with realize monitoring server can be real
Time CAN data are monitored, and find exception existing for CAN data in time,
Improve the efficiency of security monitoring.Meanwhile, by memorizer in a device to this CAN number
According between the backup carried out and processor and CAN interface, memorizer and V2X transmitter
One-way transmission, effectively prevent employing and attacks and monitoring server to vehicle bus safety
The mode that supervising device carries out attacking distorts monitored CAN data.Further, since work as
Determine prompting driver when CAN data exist abnormal, thus further increase the peace of driving
Quan Xing.
Embodiment three
The structural representation of the vehicle bus safety monitoring system that Fig. 3 is provided by the embodiment of the present invention three
Figure, as it is shown on figure 3, include vehicle 20, and monitoring server 30.
Wherein, the vehicle bus that vehicle 20 is provided with embodiment one or embodiment two is provided is supervised safely
Control device 10.
Concrete, Fig. 4 is vehicle bus safety monitoring device 10 scheme of installation, as shown in Figure 4,
Vehicle bus safety monitoring device 10 in vehicle 20 is by onboard diagnostic system (On-Board
Diagnostic, OBD) interface is connected with the CAN of vehicle.
OBD interface is the standard interface of vehicle, is typically in the position on the left side below steering wheel.This
Vehicle bus safety monitoring device 10 in embodiment only receives the data of CAN, not to
CAN sends data.Therefore, vehicle bus safety monitoring device 10 will not be to CAN
Any burden is caused with vehicle-mounted relevant device.
Monitoring server 30, is used for receiving CAN data, and enters CAN data
Row monitoring.
Further, monitoring server 30 is additionally operable to when determining that CAN data exist abnormal,
Generate information, and send information to vehicle bus safety monitoring device 10.
Monitoring server 30 is according to predefined vehicle communication agreement, fast to CAN data
Speed resolves.The CAN message once noted abnormalities in CAN data, monitoring service
Device will generate information, by wisdom roadnet 40, be sent to vehicle bus security monitoring dress
Putting the V2X receptor 21 in 10, V2X receptor 21 receives information, directly passes through
Voice-output unit 22 is reported, and reminds driver to note driving safety.
In the present embodiment, CAN data will be read from CAN by CAN interface
Being one-way transmitted to processor, CAN data are one-way transmitted to V2X transmitter by processor,
V2X transmitter is transmitted to monitoring server based on V2X communication mode, and processor also will
These CAN data are one-way transmitted to memorizer and store, with realize monitoring server can be real
Time CAN data are monitored, and find exception existing for CAN data in time,
Improve the efficiency of security monitoring.Meanwhile, by memorizer in a device to this CAN number
According between the backup carried out and processor and CAN interface, memorizer and V2X transmitter
One-way transmission, effectively prevent employing and attacks and monitoring server to vehicle bus safety
The mode that supervising device carries out attacking distorts monitored CAN data.Further, since work as
Determine prompting driver when CAN data exist abnormal, thus further increase the peace of driving
Quan Xing.
Embodiment four
Fig. 5 shows for the flow process of a kind of vehicle bus method for safety monitoring that the embodiment of the present invention four provides
It is intended to, as it is shown in figure 5, include:
Step 501, use CAN interface read CAN data from CAN.
Step 502, use CAN interface use one-way transmission mode to send CAN to processor
Bus data.
Wherein, one-way transmission mode, specifically refer to data and be only capable of and be transmitted in one direction,
And can not reverse transfer, implement, device and the reception of CAN data can sent
Data unidirectional transmission unit is set between the device of CAN data, such as one-way transmission optical gate, from
And realize one-way transmission.As a kind of possible way of realization, processor and CAN interface,
The unidirectional transmission unit of data it is respectively provided with between memorizer and V2X transmitter.
CAN data are replicated by step 503, use processor, it is thus achieved that at least two CAN
Bus data.
Concrete, as a kind of possible implementation, processor receives CAN interface and sends out
Then these CAN data are replicated once by the CAN data come, and then obtain two
Individual CAN data are sent respectively to V2X transmitter and memorizer.
Further, before described CAN data are replicated by processor, compression unit can
It is compressed with the CAN data that described CAN interface is read.
Step 504, processor use one-way transmission mode to send at least two to V2X transmitter respectively
In individual CAN data one, and send at least two CAN data to memorizer
In another.
It should be noted that processor and CAN interface, memorizer and V2X transmitter it
Between connected by I2C interface.
The CAN data that processor is sent by step 505, memorizer store.
Wherein, the reading pin of memorizer is in blank state.
Concrete, memorizer storage was at least read from the CAN of vehicle in one hour
CAN data.Owing to cost is limited, the limited storage space of memorizer, when memory space
Full, the CAN data received the most the latest will cover the CAN data of oldest stored.
This mode ensure that after accident and danger occurs in vehicle, it is possible to before the generation of record accident at least
The CAN data of one hour.
Step 506, V2X transmitter send processor based on V2X communication mode to monitoring server
The CAN data sent.
It should be noted that step 505 and step 506 can perform successively to perform simultaneously,
This is not limited by the present embodiment.
Further, after procedure 506, it is also possible to use V2X receptor to receive monitoring server
The information sent, and then use voice-output unit to report this information.In the present embodiment,
CAN data will be read from CAN by CAN interface to be one-way transmitted to process
Device, CAN data are one-way transmitted to V2X transmitter by processor, V2X transmitter based on
V2X communication mode is transmitted to monitoring server, and processor is also by these CAN data
Be one-way transmitted to memorizer store, with realize monitoring server can be in real time to CAN number
According to being monitored, and find the exception existing for CAN data in time, improve security monitoring
Efficiency.Meanwhile, the backup by memorizer in a device, these CAN data carried out and
One-way transmission between processor and CAN interface, memorizer and V2X transmitter, effectively
Avoid employing monitoring server is attacked and vehicle bus safety monitoring device is attacked
The mode hit distorts monitored CAN data.Further, since when determining CAN
Prompting driver when data exist abnormal, thus further increase the safety of driving.
One of ordinary skill in the art will appreciate that: realize the whole of above-mentioned each method embodiment
Or part steps can be completed by the hardware that programmed instruction is relevant.Aforesaid program is permissible
It is stored in a computer read/write memory medium.This program upon execution, performs to include
State the step of each method embodiment;And aforesaid storage medium includes: ROM, RAM, magnetic
The various medium that can store program code such as dish or CD.
It is last it is noted that various embodiments above is only in order to illustrate technical scheme,
It is not intended to limit;Although the present invention being described in detail with reference to foregoing embodiments,
It will be understood by those within the art that: foregoing embodiments still can be remembered by it
The technical scheme carried is modified, or carries out the most some or all of technical characteristic
With replacing;And these amendments or replacement, do not make the essence of appropriate technical solution depart from this
Invent the scope of each embodiment technical scheme.