A kind of method for transmitting signals and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method for transmitting signals and device.
Background technology
With the development of computer (and internet), the industrial products in human being's production life are more and more modified
For " OK " in intelligent artifact, especially clothing, food, lodging and transportion -- basic necessities of life, from aircraft, automobile even bicycle, the vehicles slowly move towards intelligence
Change.
At present, the signal transmission in the vehicles has more preferably embodiments in vehicles intellectuality, such as, when
Monitor car speed it is higher when, send safety instruction, so as to driver it can be noted that traffic safety;And for example, monitor electronic
When automobile (or electric bicycle) electricity is less than certain threshold value, alarm is sent;Also such as, weather forecast etc. is obtained by internet, carried
Show safety etc..
Prior art is generally entered in the intelligentized signals transmission of the vehicles according to the queue mode of first come, first served
Row transmission, for example monitored according to preset rules after particular event occurs, it will be prompted to signal and be added to during signal lines up, take turns to this
During cue, it is transmitted.However, the security of the vehicles is first forever, but prior art is obviously due to first
The queue mode arrived afterwards so that the transmission of some signals postpones, and damages security.
The content of the invention
The embodiment of the present invention provides a kind of method for transmitting signals and device, to solve prior art according to first come, first served
Queue mode carries out signal transmission, the problem of causing signal delay to damage security.
The embodiment of the present invention provides a kind of method for transmitting signals, including:
Determine driving mode;
Heighten the priority of the security classes signal of the corresponding driving mode;
When receiving the signal generated extremely according to monitoring, signal transmission is carried out according to the priority class of traffic after adjustment.
The embodiment of the present invention provides a kind of signal transmitting apparatus, including:Determining unit, adjustment unit, transmission unit, its
In,
The determining unit, for determining driving mode;
The adjustment unit, the priority of the security classes signal for heightening the corresponding driving mode;
The transmission unit, for when receive according to monitoring generate extremely signal when, it is excellent according to the signal after adjustment
First level carries out signal transmission.
Method for transmitting signals and device provided in an embodiment of the present invention, during vehicle travels, it is determined that traveling mould
Formula, and the priority of security classes signal corresponding with driving mode is heightened, when monitoring abnormal signal, according to excellent after adjustment
First level carries out signal transmission, that is, after driving mode is determined, improves the excellent of security classes signal corresponding to the driving mode
First level, so as to when producing security classes signal, send in time, the delay that safety signal is sent under the driving mode is reduced,
Compared to the queue mode that prior art uses first come, first served, the present embodiment can reduce security classes letter by adjusting priority
Number delay, improve traveling process security.Solve the problems, such as signal delay and damage security.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet for the method for transmitting signals that the embodiment of the present invention 1 provides;
Fig. 2 is the schematic diagram for the adjustment priority class of traffic that the embodiment of the present invention 1 provides;
Fig. 3 is the schematic diagram for the adjustment priority class of traffic that the embodiment of the present invention 1 provides;
Fig. 4 is the schematic diagram for the adjustment priority class of traffic that the embodiment of the present invention 1 provides;
Fig. 5 is the schematic flow sheet of the method for transmitting signals for the running car that the embodiment of the present invention 2 provides;
Fig. 6 is the computer equipment structural representation that the embodiment of the present invention 2 provides automotive interior;
Fig. 7 is the structure chart for the signal transmitting apparatus that the embodiment of the present invention 3 provides.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Below in conjunction with accompanying drawing, the technical scheme that various embodiments of the present invention provide is described in detail.
Embodiment 1
As it was previously stated, prior art is in the intelligentized signals transmission of the vehicles, generally according to first come, first served
Queue mode is transmitted, such as by taking automobile as an example, first monitors that vehicle interior temperature is higher, can generate the prompting letter of " opening refrigeration "
Number, then monitor that acceleration is too fast again, the cue of " driving with caution " can be generated, but due to according to first come, first served
Queue mode be transmitted, the prompting for " opening refrigeration " so will first send, retransmit the prompting of " driving with caution ".
Obviously the prompting " to drive with caution " is more important, but delay occurs, runs counter to the principle of safety first;Even " opening
Open refrigeration " cue before also have it is some other as the security-related property such as multimedia mistake, bath of glass deficiency compared with
The signal of difference, this is just more unfavorable for safety.Based on this defect, the invention provides a kind of method for transmitting signals, improves existing
The method for transmitting signals of the vehicles, improve security.The schematic flow sheet of this method as shown in figure 1, this method include it is following
Step:
Step 11:Determine driving mode.
During the traveling of the vehicles, can there are a variety of driving modes or situation, for example aircraft (passenger plane) is flying
During row, have take off, landing mode, also have and run into air-flow and fly unstable pattern;Motorcycle or battery-operated motor cycle
(bicycle) has situation of the situation of scorch, situation about jolting, oil mass or not enough power supply etc. in driving procedure;Vapour
Car as more conventional trip mode, also have the situation of scorch, congestion, jolt, sleet situations such as.Traffic said herein
Instrument can refer to the various industrial products for traffic trip, such as aircraft, steamer, train, automobile, bicycle etc., traveling
Pattern can refer to various situations when using vehicles trip.
Now it is introduced by taking most common vehicles automobile as an example, namely assumes that this method is applied on automobile, in vapour
During car traveling, it is thus necessary to determine that going out driving mode can judge which signal is important and which is more secondary, institute
Driving mode is determined with this step can in the process of moving, specifically, can be according to the sensor being integrated on automobile
To determine, such as the infrared sensor that vehicle body installs additional, for measurement distance, when distance is less than certain threshold value, it is defined as colliding
Pattern;And for example Raindrop sensor detects whether to rain and size etc. of rainfall, it may be determined that rainy day pattern, it is seen that ground, can be with
The driving modes such as snowy day, haze are determined by other specific sensors.
In actual applications, driving mode can also be determined according to preset travel rule, for example, it is default for fast mode
Traveling rule is that average speed per hour reaches High Speed Threshold within 1 minute;It is within 3 seconds for the default traveling rule of acceleration pattern
Specific change rule of acceleration etc., it can be that different driving modes presets different traveling rules, exist when monitoring automobile
During traveling, after matching default traveling rule, it is possible to driving mode is determined, for example High Speed Threshold is 60km/h,
So when monitoring the average speed within 1 minute and reaching 72km/h, it is possible to be defined as fast mode.Similarly, prison is worked as
When the average speed controlled within 1 minute is less than 10km/h, it is possible to be defined as traffic congestion pattern.
In the car, an electronic control unit be present, also known as " car running computer ", " vehicle-mounted computer " etc., (Electronic
Control Unit, abbreviation ECU), be automobile specified microcomputerized controller, similar to computer, by microprocessor (CPU), deposit
The large scale integrated circuit such as reservoir (ROM, RAM), input/output interface (I/O), analog-digital converter (A/D) and shaping, driving
Composition, i.e., " ECU is exactly the brain of automobile ".
Infrared sensor described above, Raindrop sensor etc. can be used as input equipment, similarly, be driven a vehicle for monitoring
Speed, acceleration, the device of indoor and outdoor temperature, can be connected with ECU, and the data that input equipment is monitored are transferred to
ECU, ECU can be operated by data processing etc., determine driving mode.
Step 12:Heighten to should driving mode security classes signal priority.
In all signals, it can substantially be divided to two classes, i.e. security classes signal and non-security class signal, by taking automobile as an example, car
The signals such as speed is too high, tire pressure is insufficient, indicating oven temperature of engine, engine oil pressure deficiency, car door are not turned off, can influence to drive a vehicle and drive
The person of sailing (passenger) safety, these are properly termed as security classes signal;In addition, such as air-conditioning (vehicle interior temperature) is abnormal, multimedia equipment is different
The signals such as often, driving recording is abnormal, reverse image is abnormal, automatic start-stop is abnormal, to driving and driver (passenger) security implication
It is not very big to be properly termed as non-security class signal.
It should be understood that some signals can be not belonging to security classes signal in general, but in specific feelings
Must be just security classes signal under condition, such as car light abnormal signal, it is different in the importance of different time sections, is filled in illumination
During foot (such as daytime), the abnormal signal can of car light is non-security classes signal, but at illumination insufficient (such as night), car light is different
Normal signal can even must be security classes signal, and for example rain brush exception or glass water surplus deficiency, in fine day situation
Under, can be with right and wrong security classes signal, but in sleety weather, it is possible to or even must be security classes signal.
It can be seen that different driving modes can correspond to different security classes signals, so this step can be directed in step 11
The driving mode determined, by should the priority of security classes signal of driving mode heighten, such as, the row determined
It is fast mode to sail pattern, then adjusts the priority of the security classes signals such as abnormal tyre pressure, abnormal, the engine temperature exception of car door
Height, the priority of these signals is set to be higher than the priority of other non-security class signals, during really to there are these abnormal signals,
It can in time send, remind driver to pay attention to.
Specifically, can be heightened by priority tag, such as shown in Fig. 2 can be different by abnormal tyre pressure, car door
Often, the priority of the security classes signal such as engine temperature exception is arranged to the second priority, and other non-security class signals are kept
The first order, here the second level be more than the first priority, when there is the second signal priority, be bound to prior to the first priority carry out
Send, if after the second priority is all sent completely, the signal that can just take turns to the first priority is sent.Namely form safety
The situation that class signal " can jump the queue " at any time, as long as producing, it is possible to which " jumping the queue " is preferentially transmitted to above.
In actual applications, security classes signal can have a lot, even if being security classes signal, also have different important
Property, such as, under traffic congestion pattern, in order to ensure safety, the exception that security classes signal middle rolling car radar monitoring goes out is most important, hair
Motivation temperature anomaly secondly, engine oil pressure it is abnormal again, so, in one embodiment, this step can include:Heighten peace
The priority of universal class signal, and the priority of whole security classes signals is reset.Specifically, security classes signal is being heightened
While, each in whole security classes signals is arranged according to certain priority orders, such as shown in figure 3,
Security classes signal middle rolling car radar ranked first priority extremely under traffic congestion pattern, engine temperature ranked second extremely priority,
Engine oil pressure ranked third priority extremely, etc..Here the series of priority is smaller, and priority is higher.If monitor driving thunder
So just sent at first up to abnormal (close with leading vehicle distance), if the first priority and the second priority do not produce exception,
And there is exception in engine oil pressure, then just optimal to be transmitted engine oil pressure abnormal signal.
Same safe class is may belong in fact in view of some security classes signals, and even if is all security classes letter
Number, it is possibility to have different classifications, so in one embodiment, this step can also include:According to different safety class,
The priority of each hierarchically secure class signal is heightened respectively, wherein, at least one security classes signal is included in each safe class.Tool
Body, security classes signal can be divided into more than one safe class, such as lower security grade and high safety grade, each safety
At least one security classes signal can be included in grade, for example under the pattern of jolting, abnormal tyre pressure, hair are included in high safety grade
The signals such as motivation temperature anomaly, comprising the signal such as speed limit is abnormal, driving radar is abnormal in lower security grade.Can with as shown in figure 4,
High safety grade signal is arranged to third priority, lower security level signal is arranged to the second priority, by non-security class
Signal is arranged to the first priority.Here the series of priority is bigger, and priority is higher.Monitored when simultaneously in same priority
Two signals when, can be transmitted according to the order monitored.
ECU is had been described above in a previous step, is the car running computer in automobile, and similarly, the operation of this step also may be used
To be completed by ECU, specifically, the memory (being preferably internal memory) in ECU, a priority class of traffic list, the list are safeguarded
Can generate in automobile starting, and change with the change of driving mode, specific change procedure with regard to as introduced above,
According to different driving modes, heighten corresponding to security classes signal priority.
Step 13:When receiving the signal generated extremely according to monitoring, letter is carried out according to the priority class of traffic after adjustment
Number transmission.
The priority of signal is have adjusted according to driving mode in step 12, so can receive in this step
To the signal generated extremely according to monitoring, signal transmission is carried out according to the priority class of traffic after adjustment, for example, it is true in a step 11
It is traffic congestion pattern to define driving mode, and according to have adjusted the priority class of traffic shown in Fig. 3, then when driving radar monitoring is arrived
When abnormal (spacing is less than secure threshold), preferentially it is transmitted, if monitor engine oil pressure exception, and drive a vehicle radar and hair
When motivation temperature is without exception, the abnormal signal of preferential engine oil pressure.
By taking automobile as an example, all signal transmission can pass through bus, such as CAN (Controller Area
Network, controller local area network), in the prior art the queue mode of first come, first served be exactly signal to be sent in the bus
Sent in the way of first come, first served, and this step can be when ECU receives abnormal signal, according to existing signal priority
Level, preferentially sends some signal in CAN, for example by way of providing token etc., reaches the purpose of " controllable clearance ", so as to
Reach the purpose of control signal transmission order.And be used as output equipment, can by the instrument board in automobile, multimedia equipment,
HUD (Head Up Display, head-up display) etc., is shown.
In actual applications, the different vehicles may correspond to different computer systems, and the above is only by taking automobile as an example
It is introduced.
The method provided using embodiment 1, during vehicle travels, determines driving mode, and heighten and travel
The priority of security classes signal corresponding to pattern, when monitoring abnormal signal, signal biography is carried out according to the priority after adjustment
It is defeated, that is, after driving mode is determined, the priority of security classes signal corresponding to the driving mode is improved, so as to produce
It during security classes signal, can in time send, reduce the delay that safety signal is sent under the driving mode, adopted compared to prior art
With the queue mode of first come, first served, the present embodiment can reduce the delay of security classes signal, improve traveling by adjusting priority
The security of process.Solve the problems, such as signal delay and damage security.This method is except suitable for that on automobile, can also fit
It is intelligent for currently a popular vehicle intellectualized and electric bicycle for any vehicles, all have obvious excellent
Gesture.
Embodiment 2
Based on identical invention thinking, the embodiment of the present invention provides a kind of method for transmitting signals of running car, passes through tune
The priority of high safety class signal transmission, improve the security of driving procedure.The schematic flow sheet of this method was as shown in figure 5, should
Method comprises the steps:
Step 21:When driving, driving model is determined according to default traffic rule.
During driver drives a car, according to default traffic rule, driving model is determined, such as in embodiment 1
Step 11 in fast mode rule and traffic congestion pattern rules, mountain is and for example determined by the change frequency and amplitude of compass
The displacement of upper left and right under road pattern, or monitoring vehicle body, pattern etc. of jolting is determined according to preset rules.
In actual applications, the determination of driving model can also be carried out by the auxiliary equipment beyond automobile, or is combined auxiliary
Equipment complex is helped to determine, such as can be according to default traffic congestion rule, and the section jam situation synthesis that smart mobile phone obtains
Driving model is determined, and or rainy day pattern etc. is determined according to Raindrop sensor and the weather forecast synthesis of smart mobile phone acquisition.
As shown in fig. 6, for the computer equipment structural representation of automotive interior, input equipment and/or external input device
The data got are transferred to ECU by bus CAN, ECU determines driving model according to default traffic rule.
Step 22:According to it is default to should driving model priority class of traffic strategy, heighten the priority of security classes signal,
And the priority of whole security classes signals is reset.
Driving model is defined in step 21, this step can is according to signal priority corresponding with the driving model
Level strategy, the priority of security classes signal is heightened, and the priority of whole security classes signals is reset, specifically can be with
With reference to the introduction in embodiment 1.It should be noted that for non-security class signal, it can keep constant according to original order,
Can also be randomly ordered.As shown in fig. 6, ECU safeguards a priority class of traffic list, the priority of signal is included in the list,
ECU can be adjusted according to different driving models.
Step 23:When receiving the signal driven a vehicle and generated extremely according to monitoring, according to the priority class of traffic after adjustment
Carry out signal transmission.
When driving, if really having monitored driving exception, such as, engine temperature mistake too small with leading vehicle distance
Heat, water tank temperature overheat etc., is transmitted according to the priority of step 22, to ensure that most important abnormal signal is sent at first.
Recipient can be car running computer or smart mobile phone etc. of connection is kept with car running computer, not only as recipient but also can
To be shown.Such as Fig. 6, ECU can be by providing the modes such as token, the output order of control signal, and output equipment equally may be used
To be internal or outside.
It should be noted that when driving, driving model can change, such as by fast mode to traffic congestion mould
Formula, by traffic congestion pattern to rainy day pattern etc., so determine that driving model is can to perform or be periodically executed at any time, and
After driving model change, the priority class of traffic is adjusted in time, ensures that most important signal can be timely transmitted to driver, improve
Security.
The method provided using embodiment 2, in vehicle traveling process, determines driving model, and heighten and the driving mould
The priority of security classes signal corresponding to formula, when monitoring the abnormal signal of driving conditions, according to preferential grading after adjustment
Row signal transmits, and reduces the delay that safety signal is sent under the driving model, improves the security of driving procedure.
Embodiment 3
Based on identical inventive concept, embodiment 3 provides a kind of signal transmitting apparatus, improves the letter of the existing vehicles
Number transmission method, improve security.Fig. 7 is the structure chart of the device, and the device includes:Determining unit 31, adjustment unit 32, pass
Defeated unit 33, wherein,
Determining unit 31, is determined for driving mode;
Adjustment unit 32, it can be used for the priority for heightening the security classes signal of corresponding driving mode;
Transmission unit 33, it can be used for when receiving the signal generated extremely according to monitoring, according to the signal after adjustment
Priority carries out signal transmission.
In one embodiment, determining unit 31, can be used for:
According to preset travel rule, driving mode is determined.
In one embodiment, adjustment unit 32, can be used for:
According to the priority class of traffic strategy of default corresponding driving mode, the priority of security classes signal is heightened.
In one embodiment, adjustment unit 32, can be used for:
According to different safety class, the priority of each hierarchically secure class signal is heightened respectively, wherein, in each safe class
Include at least one security classes signal.
In one embodiment, adjustment unit 32, can be used for:
The priority of security classes signal is heightened, and the priority of whole security classes signals is reset.
All functional units of the device, can be integrated in the processor of computer, for example if the vehicles are
Automobile, then it can be integrated in ECU.
Above-mentioned related work(can be realized by hardware processor (hardware processor) in the embodiment of the present invention
Can module.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, it can be as the part that unit is shown or may not be physics list
Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs
In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness
Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on
The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers
Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation
Method described in some parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.