CN117885752A - Method and device for processing data in vehicle, vehicle and storage medium - Google Patents

Method and device for processing data in vehicle, vehicle and storage medium Download PDF

Info

Publication number
CN117885752A
CN117885752A CN202410084430.XA CN202410084430A CN117885752A CN 117885752 A CN117885752 A CN 117885752A CN 202410084430 A CN202410084430 A CN 202410084430A CN 117885752 A CN117885752 A CN 117885752A
Authority
CN
China
Prior art keywords
state
switch
function
contacts
vehicle
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
Application number
CN202410084430.XA
Other languages
Chinese (zh)
Inventor
狄忠举
李海霞
齐逸
杨雪珠
任志航
孙承锐
姜云升
李军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by FAW Group Corp filed Critical FAW Group Corp
Priority to CN202410084430.XA priority Critical patent/CN117885752A/en
Publication of CN117885752A publication Critical patent/CN117885752A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a method and a device for processing data in a vehicle, the vehicle and a storage medium. Wherein the method comprises the following steps: determining force data of a function switch in response to a function switch trigger in the vehicle, wherein the function switch includes a plurality of contacts; based on the stress data, respectively adjusting working states of a plurality of contacts of the functional switch, wherein the working states are used for representing whether the contacts are in a closed state or an open state; based on the operating state, an execution state of the function corresponding to the function switch is determined. The invention solves the technical problem of easy false triggering of the function switch.

Description

Method and device for processing data in vehicle, vehicle and storage medium
Technical Field
The present invention relates to the field of vehicles, and in particular, to a method and apparatus for processing data in a vehicle, and a storage medium.
Background
Currently, different functions can be realized through different function switches (such as a physical key switch) in a vehicle, for example, an ACC function can be started by pressing a function key of an adaptive cruise control (Adaptive Cruise Control, abbreviated as ACC); the function of returning to the P gear and the like can be realized by pressing a Parking (P) gear button of an electronic gear shifting system, so that the function switch is one of common and necessary devices for vehicles and other industrial products.
In the related art, when the function switch fails, the corresponding function may not be executed, so that the vehicle runs abnormally, the safety of the key function and the safety of the expected function cannot be ensured, and the technical problem of easy false triggering of the function switch exists.
Aiming at the technical problem that the function switch is easy to trigger by mistake, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for processing data in a vehicle, the vehicle and a storage medium, and aims to at least solve the technical problem that a function switch is easy to trigger by mistake.
According to an aspect of an embodiment of the present invention, there is provided a method for processing data in a vehicle, including: determining force data of a function switch in response to a function switch trigger in the vehicle, wherein the function switch includes a plurality of contacts; based on the stress data, respectively adjusting working states of a plurality of contacts of the functional switch, wherein the working states are used for representing whether the contacts are in a closed state or an open state; based on the operating state, an execution state of the function corresponding to the function switch is determined.
Optionally, based on the stress data, adjusting the working states of the plurality of contacts of the functional switch respectively includes: and adjusting the working state of the contact in response to the stress data of the contact being greater than the stress data threshold.
Optionally, determining the execution state of the function corresponding to the function switch based on the working state includes: in response to the operational state of at least the target number of contacts being a closed state, the execution state of the function is determined to be an allowed execution state.
Optionally, determining the execution state of the function corresponding to the function switch based on the working state includes: in response to the operating state having at least the target number of contacts being an open state, the executing state of the function is determined to be an inhibit executing state.
Optionally, in response to the execution state being an abnormal state, obtaining an output voltage of the function switch; based on the output voltage, an abnormal contact position in the function switch is determined.
Optionally, determining an abnormal contact position in the functional switch based on the output voltage includes: the abnormal contact position is determined based on the output voltage of the digital terminal in the functional switch and/or the output voltage of the analog terminal in the functional switch.
Optionally, determining an abnormal contact position in the functional switch based on the output voltage includes: judging the output voltage according to a state combination table corresponding to the function switch to obtain a judging result; based on the judgment result, the abnormal contact position is determined.
According to another aspect of the embodiment of the present invention, there is also provided a device for processing data in a vehicle, including: a first determining unit configured to determine stress data of a function switch in response to a function switch trigger in a vehicle, wherein the function switch includes a plurality of contacts; the adjusting unit is used for respectively adjusting the working states of the contacts of the functional switch based on the stress data, wherein the working states are used for representing that the contacts are in a closed state or an open state; and the second determining unit is used for determining the execution state of the corresponding function of the function switch based on the working state.
According to another aspect of an embodiment of the present invention, there is also provided a computer-readable storage medium. The computer readable storage medium includes a stored program, wherein the program when run controls a device in which the computer readable storage medium is located to execute the method for processing data in a vehicle according to the embodiment of the present invention.
According to another aspect of an embodiment of the present invention, there is also provided a processor. The processor is used for running a program, wherein the program executes the method for processing the data in the vehicle.
In an embodiment of the invention, in response to a function switch trigger in a vehicle, determining stress data of the function switch, wherein the function switch comprises a plurality of contacts; based on the stress data, respectively adjusting working states of a plurality of contacts of the functional switch, wherein the working states are used for representing whether the contacts are in a closed state or an open state; based on the operating state, an execution state of the function corresponding to the function switch is determined. That is, the invention uses the multi-contact switch, determines the working state of a plurality of contacts based on the stress data of the function switch, and determines whether to execute the corresponding function of the function switch based on the working state, thereby ensuring the safety of the key function and the safety of the expected function, further realizing the technical effect of avoiding false triggering of the function switch, and solving the technical problem of easy false triggering of the function switch.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of a method of processing data in a vehicle according to an embodiment of the invention;
FIG. 2 is a block diagram of a key type switch according to an embodiment of the present invention;
fig. 3 is a schematic view of a vehicle control apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present invention, there is provided an embodiment of a method of processing data in a vehicle, it being noted that the steps shown in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
Fig. 1 is a flowchart of a method for processing data in a vehicle according to an embodiment of the present invention, as shown in fig. 1, the method may include the steps of:
step S102, in response to triggering of a function switch in the vehicle, determining stress data of the function switch, wherein the function switch comprises a plurality of contacts.
In the technical solution provided in the above step S102 of the present invention, when the function switch in the vehicle is triggered, in response to the function switch in the vehicle being triggered, the stress data of the function switch when the function switch is triggered is determined. The function switch may be a physical key switch, a shift handle, a key switch, for example, a function activating key, a P-gear key, etc. of the adaptive cruise control, may include a plurality of contacts, and may be a key switch of a multi-contact voting mechanism circuit, for example, a key switch of a three-contact voting mechanism circuit (may be simply referred to as a three-contact key switch), which should be noted, however, only by way of illustration and not limitation of the type of the function switch. The force data may be used to characterize the force of depression of the function switch, etc.
Alternatively, the user may trigger the function switch by pressing or the like. The vehicle may determine the force data of the function switch in response to the function switch being triggered. For example, the force data may be determined by determining information such as the pressing force, pressing direction, etc. of the user.
Step S104, based on the stress data, respectively adjusting the working states of a plurality of contacts of the functional switch, wherein the working states are used for representing whether the contacts are in a closed state or an open state.
In the technical scheme provided in the step S104, after the stress data is obtained, the stress data is analyzed to adjust the working states of the contacts in the functional switch according to the stress data. Wherein the operating state may be used to characterize the contact as being in a closed state or an open state.
Optionally, when the working states of the plurality of contacts in the functional switch are closed states, if stress data is acquired at this time to determine which contacts the stress data is acting on, the working states of the acting contacts can be respectively adjusted to open states based on the stress data. Or when the working states of a plurality of contacts in the functional switch are in an open state, if the stress data is received at the moment, the stress data is determined to act on the contacts, and the working states of the acted contacts can be respectively adjusted to be in a closed state based on the stress data. It should be noted that, the adjustment of the working state of the contact is only illustrated and not limited specifically. The multiple contacts can be three contacts, four contacts and the like, the contacts can be switches in a circuit diagram, the contacts can be key switches, and the switch is different from key switches in a function switch, and the function switch comprises multiple contacts. The number of contacts in the functional switch, and the type of contacts, are not particularly limited, as these are merely examples.
For example, when the user wants to turn on the P range, the function switch of the P range may be triggered by pressing the function switch, and the stress data when the user presses the function switch may be determined in response to the function switch of the P range being triggered. And if the stress data can be applied to the three contacts in the functional switch, the working states of the three contacts can be adjusted to be closed states.
Step S106, based on the working state, the execution state of the corresponding function of the function switch is determined.
In the technical solution of step S106 of the present invention, based on the working states of the plurality of contacts, it may be determined whether the function switch is successfully triggered, and based on the triggering condition of the function switch, the execution state of the corresponding function may be determined. The execution state may include an enable execution state or a disable execution state, and it should be noted that the execution state is merely illustrative and the type of the execution state is not specifically limited.
For example, if the operating state in which the plurality of contacts exist is a closed state, the executing state of the function corresponding to the function switch may be determined to be an enabled executing state, or if the operating state in which the plurality of contacts exist is an opened state, the executing state of the function corresponding to the function switch may be determined to be an disabled executing state.
In order to solve the problem, in the embodiment, a multi-contact key switch is provided, and functions corresponding to the functional switch, such as P-gear key operation, ACC opening and other key switch functions, can be correctly judged and realized through the multi-contact key switch, so that the problem of the expected functional safety of the key switch which is easy to be touched by mistake and misused by the single-contact switch is solved; the functional safety problems of low failure coverage rate and poor usability of the single-contact key switch are also solved.
The application includes steps S102 to S106, responding to the triggering of the function switch in the vehicle, and determining the stress data of the function switch, wherein the function switch includes a plurality of contacts; based on the stress data, respectively adjusting working states of a plurality of contacts of the functional switch, wherein the working states are used for representing whether the contacts are in a closed state or an open state; based on the operating state, an execution state of the function corresponding to the function switch is determined. That is, the invention uses the multi-contact switch, determines the working state of a plurality of contacts based on the stress data of the function switch, and determines whether to execute the corresponding function of the function switch based on the working state, thereby ensuring the safety of the key function and the safety of the expected function, further realizing the technical effect of avoiding false triggering of the function switch, and solving the technical problem of easy false triggering of the function switch.
The above-described method of this embodiment is further described below.
As an optional embodiment, step S104, based on the force data, adjusts the working states of the plurality of contacts of the function switch respectively, including: and adjusting the working state of the contact in response to the stress data of the contact being greater than the stress data threshold.
In this embodiment, in response to a function switch trigger in the vehicle, it is determined whether the force data of each contact in the function switch is greater than a force data threshold, and if the force data of the contact is greater than the force data threshold, the operating state of the contact may be adjusted. The force data threshold may be a preset value, for example, may be 5 newton, 3 level, etc., which is only illustrated herein, and the size and type of the force threshold are not specifically limited.
Because there may be a false triggering problem during the process of triggering the function switch by the user, in this embodiment, in order to avoid the false triggering problem, the stress data of the user is analyzed, if the stress data is smaller than the stress data threshold, the false triggering may be performed by the user, and only if the stress data of the contact is greater than the stress data threshold, the working state of the contact is adjusted.
For example, assume that the function switch is a three-contact switch. When the user triggers the function switch by pressing or clicking, the stress data of the function switch are obtained, whether the stress data of each contact in the function switch is larger than a stress data threshold is respectively determined, and the working state of the contact can be adjusted only when the stress data of the contact is larger than the stress data threshold, for example, the working state of the contact in a closed state can be adjusted to an open state, and the working state of the contact in an open state can be adjusted to a closed state.
As an optional embodiment, step S106, determining, based on the working state, the execution state of the function corresponding to the function switch includes: in response to the operational state of at least the target number of contacts being a closed state, the execution state of the function is determined to be an allowed execution state.
In this embodiment, after the operating states of the plurality of contacts in the function switch are adjusted based on the force data, it is determined whether or not the operating state of the target number of contacts is the closed state, and if the operating state of the target number of contacts is the closed state, it may be determined that the executing state of the function is the executing permission state. The number of targets may be two, three, or four, and is merely illustrative, and the number of targets is not particularly limited.
For example, assume that there are three contacts in the function switch, the target number is 2. When the working state of not less than two of the three contacts is a closed state (also called a closed on state), it can be determined that the double-contact press contact exists in the function switch, and then the circuit signal output by the output end of the switch circuit is a circuit on signal, namely, a P-gear press signal, it can be determined that the execution state of the P-gear function is an allowed execution state, and further, the vehicle can be controlled to execute gear shifting.
For another example, if at least two of the three contact switches in the gear shift handle P-gear button are open, it indicates that the P-gear button is not pressed; and if at least two of the three contact switches in the P-gear button of the gear shifting handle are closed, the P-gear button is pressed.
As an optional embodiment, step S106, determining, based on the working state, the execution state of the function corresponding to the function switch includes: in response to the operating state having at least the target number of contacts being an open state, the executing state of the function is determined to be an inhibit executing state.
In this embodiment, after the operating states of the plurality of contacts in the function switch are adjusted based on the force data, it is determined whether or not the operating state of the target number of contacts is the off state, and if the operating state of the target number of contacts is the off state, it may be determined that the execution state of the function is the execution prohibition state. The number of targets may be two, three, or four, and is merely illustrative, and the number of targets is not particularly limited.
For example, assume that there are three contacts in the function switch, the target number is 2. When the working state of the three contacts is not less than that of the two contacts is the disconnection state, it can be determined that the double contacts are pressed to be contacted in the function switch, and then a circuit signal output by the output end of the switch circuit is a circuit disconnection signal, namely, a signal that the P gear is not pressed, the execution state of the P gear function can be determined to be the forbidden execution state, and further, the vehicle can not be controlled to execute gear shifting.
Optionally, if at least two of the three contacts in the P-gear button of the gear shifting handle are disconnected, the P-gear button is not pressed, and the execution state of the function can be determined to be an execution prohibition state; if at least two of the three contact switches in the P-gear button of the gear shifting handle are closed, the P-gear button is indicated to be pressed, and the execution state of the function can be determined to be the permission execution state.
As an alternative embodiment, the method may further include: acquiring an output voltage of the function switch in response to the execution state being an abnormal state; based on the output voltage, an abnormal contact position in the function switch is determined.
In this embodiment, if the execution state of the function corresponding to the function switch is an abnormal state, for example, it should be performed in the execution-permitted state but not in the execution-prohibited state, it may be determined that the execution state of the function is an abnormal state. In response to the execution state being an abnormal state, an output voltage of the function switch may be acquired. Based on the output voltage, an abnormal contact position in the function switch can be determined. The abnormal contact position may be a failure position, for example, a shift handle failure position.
The problem of insufficient functions or misuse of personnel exists in the process of researching the expected function safety of the vehicle, so that the problem caused by electronic and electric failures is solved for the function safety research. Considering that a key switch cannot generally select a vehicle-standard chip with a vehicle safety integrity (Automotive Safety Integrity Level, abbreviated as ASIL) level to realize functional safety and expected functional safety of the key switch, in this embodiment, the key switch of a multi-contact voting mechanism circuit, for example, the key switch of a three-contact voting mechanism circuit is designed to realize failure detection of the functional switch, and the embodiment judges the failure state of a contact in the functional switch by acquiring the output voltage of a circuit interface corresponding to the functional switch, so that the process of mechanically disassembling a vehicle handle or other covering key switch devices during failure is avoided, and the purpose of improving the failure recognition is achieved simply and practically.
Optionally, the embodiment can effectively identify the functional state of the key switch by utilizing a circuit voting mechanism of the multi-contact functional switch, so that the usability and the robustness of the system are improved, and the expected functional safety and the functional safety of the key switch are realized; in this embodiment, the failure state of the functional switch is determined by detecting the output voltage of the circuit interface of the functional switch, for example, the failure state of the P-gear key is determined by detecting the output voltage of the circuit interface of the gear shifting handle, so that the working procedures of mechanically disassembling the vehicle handle or other covering key switch devices when the functional switch fails are saved, and the method is simple, convenient and feasible, and has high fault identification degree.
As an alternative embodiment, determining an abnormal contact position in the functional switch based on the output voltage includes: the abnormal contact position is determined based on the output voltage of the digital terminal in the functional switch and/or the output voltage of the analog terminal in the functional switch.
In this embodiment, the circuit of the function switch includes a digital terminal outputting a digital voltage and an analog terminal outputting an analog voltage, the digital voltage outputted from the digital terminal and the analog voltage outputted from the analog section are determined, and the abnormal contact position is determined based on the digital voltage and/or the analog voltage. The digital terminal may be a digital signal output terminal. The output voltage of the Digital terminal may be a voltage between a power supply terminal (VCC) and a terminal of the Digital terminal, may be referred to as a Digital voltage, and may be a Digital signal voltage. The output voltage of the analog (analog) terminal may be a voltage between the power terminal and the two terminals of the analog terminal, which may be referred to as an analog voltage, and may be an analog signal voltage. The analog terminal may be an analog signal output terminal.
Alternatively, if both contact one and contact two are on, the output voltage of the analog signal (analog) output terminal (i.e., analog terminal) is U1; if the first contact is on and the second contact is off, the output voltage of the analog end is U2; if the first contact is disconnected and the second contact is connected, the output voltage of the analog end is U3; if both contact one and contact two are open, the output voltage at the analog terminal is U4. If the contact three is opened, the output voltage of the digital terminal is U1' =5V; if contact three is on, the output voltage of the digital terminal is U2' =0v. When the contacts are in different off or on states, the output voltages of the digital end and the analog end are greatly different, so that when the execution state of the function switch is an abnormal state, the output voltage of the digital end and/or the output voltage of the analog end can be obtained, and the position of the abnormal contact can be determined based on the output voltage.
As an alternative embodiment, determining an abnormal contact position in the functional switch based on the output voltage includes: judging the output voltage according to a state combination table corresponding to the function switch to obtain a judging result; based on the judgment result, the abnormal contact position is determined.
In this embodiment, a state combination table of the function switch may be referred in advance, and when an abnormal contact position of the function switch needs to be determined, an output voltage may be obtained, and the output voltage may be determined according to the state combination table corresponding to the function switch, so as to obtain a determination result, and based on the determination result, the abnormal contact position is determined. The judging result can be used for representing the output end with abnormal output voltage. The state combination table can be pre-constructed, can comprise an analog input design table and a digital input design table, and can be a switch real table consisting of the analog input design table and the digital input design table.
For example, it is predetermined that the output voltage of the analog terminal is U1 if both the first contact and the second contact are on; if the first contact is on, when the second contact is off, the output voltage of the analog end is U2; if the first contact is disconnected and the second contact is connected, the output voltage of the analog end is U3; if both contact one and contact two are open, the output voltage at the analog terminal is U4. Thus, the contacts can be given an analog input design table under different switching states and faults, and table 1 is an analog input design table, as shown in table 1:
Table 1 analog input design table
Optionally, it is predetermined that if the contact three is opened, the output voltage of the digital terminal is U1' =5v; if contact three is on, the output voltage of the digital terminal is U2' =0v. Table 2 is a digital input design table, and as shown in table 2, the theoretical voltage values of the circuit output are different for the contact three under different states and faults.
Table 2 digital input design table
Alternatively, table 1 and table 2 are combined to obtain a switching truth table, and table 3 is a switching truth table, and as shown in table 3, various state combinations of analog signal 1, analog signal 2 and digital signal 3 can be obtained to form a switching truth table, so as to obtain a functional redundancy design (also referred to as a voting mechanism) of key detection.
TABLE 3 switch truth table
For example, assuming that three contacts are provided in the function switch, if the driving object does not trigger the P button, it is indicated that the driving object does not want to enter P, and under normal conditions, at least 2 of the 3 contact switches in the P button of the gear shifting handle should be disconnected, so that the gear shifting handle is ensured not to send a P signal unexpectedly, and the whole vehicle is not expected to enter P gear. The availability and the safety of the whole vehicle P gear are ensured. Under abnormal conditions, the driving object does not press the P key, but contacts with more than or equal to two numbers are closed due to faults, so that the gear shifting handle is not available, the execution state of the functional switch is an abnormal state, and the abnormal position of the internal circuit switch of the P key can be rapidly obtained by determining the output voltage, so that the technical effects of timely maintenance or replacement and improvement of detectability are achieved.
The table 4 is a table corresponding to the voltage value and the whole vehicle performance under the condition that the P key is not pressed, as shown in the table 4, when the P key is not pressed, the voltage value and the shift handle performance of the P gear circuit of the shift handle are shown in the table 4, and when the digital voltage of the third contact is 5 volts (V) and the analog voltage controlled by the first contact and the second contact is U4, it can be determined that the three switches are in the off state, the shift handle is normal, no P gear signal is sent, the whole vehicle performance of the vehicle is normal, and no P gear is entered. If the whole vehicle is abnormal and the P gear is wrongly entered at the moment, digital voltage and analog voltage are collected, if the digital voltage is 5V and the analog voltage is U1, the contact three can be determined to be normal and be disconnected; the first contact and the second contact are abnormal, and normally closed clamping stagnation exists. If the whole vehicle is abnormal, the P gear is wrongly entered, digital voltage and analog voltage are acquired, if the digital voltage is 0V and the analog voltage is U3, abnormal closing of the contact three can be determined, abnormal closing of the contact two is determined, the contact one is in an open state, namely, the gear shifting handle is abnormal due to the fact that the contact two and the contact three are abnormal at present, so that a P gear signal is wrongly sent, and other conditions can be analogized according to a table 4, and details are omitted.
Table 4 table of voltage value and vehicle performance in case of not pressing P key
For another example, if the driving object presses the P button, the driving object intends to enter P. Under normal conditions, at least 2 contact switches in the P keys of the gear shifting handle are closed, so that the gear shifting handle is ensured to send a P-gear signal according to the expected driving object to enable the whole vehicle to enter the P gear. The availability and the safety of the whole vehicle P gear are ensured. Under abnormal conditions, when the fault disconnection of the contact switch is larger than or equal to 2, and the gear shifting handle is not available, the abnormal position of the internal circuit switch of the P key can be rapidly obtained through the voltage value, so that the internal circuit switch can be maintained or replaced in time, and the detectability is improved.
In table 5, under the condition of pressing the P button, the voltage value corresponds to the whole vehicle performance, as shown in table 5, if the whole vehicle performance is abnormal and the P gear cannot be carried out unexpectedly when the P button is pressed, the digital voltage and the analog voltage are monitored, if the digital voltage is 5V and the analog voltage is U4, it can be determined that the three switches are in the off state, so that the gear shifting handle is abnormal and no P gear signal is sent. When the P key is pressed, if the whole vehicle is abnormal and the P gear cannot be carried out unexpectedly, the digital voltage and the analog voltage are monitored, if the digital voltage is 0V and the analog voltage is U4, the abnormal disconnection of the contact II and the contact I, which leads to the abnormal gear shifting handle and the incapability of sending the P gear signal, can be determined. When the P key is pressed, if the whole vehicle is normal, the vehicle enters the P gear, digital voltage and analog voltage can be monitored, if the digital voltage is 5V and the analog voltage is U1, abnormal disconnection of the contact three can be determined, and normally closed clamping stagnation of the contact one and the contact two can be determined. Other cases of pressing the P key can be analogized according to table 5, and will not be described here.
TABLE 5 correspondence table between voltage values and vehicle performance in case of pressing P key
/>
Optionally, when the P keeps off the button unusual, driving object or maintenance personal can be through pressing the P button respectively and not pressing the P button and whether whole car can hang into the P and keep off to combine the voltage value that detects the gear shifting handle P fender circuit output, when not needing to disassemble the handle process, judge the gear shifting handle failure bit fast, so that maintenance or change gear shifting handle, perhaps carry out follow-up control processing in order further to improve whole car's controllability after detecting the inefficacy.
Optionally, the embodiment can monitor the voltage of the P gear according to a plurality of contacts of the internal circuit, and through voltage value comparison, when the gear shifting handle is abnormal, the abnormal state can remind a driving object in an alarm signal mode, and the situation that P gear is not expected to enter or P cannot be expected to enter is prevented from causing the sliding of the vehicle, so that the whole vehicle controllability is improved.
Optionally, the embodiment can monitor a plurality of switch voltages of the internal circuit of the P gear, and through voltage value comparison, when the gear shifting handle is abnormal, an abnormal state can be sent to the rear-end gear shifting control system, and a gear shifting abnormal path is terminated in time so as to improve the controllability of the whole vehicle.
The embodiment uses the multi-contact switch, determines the working states of a plurality of contacts based on the stress data of the function switch, and determines whether to execute the corresponding function of the function switch based on the working states, thereby ensuring the safety of the key function and the safety of the expected function, realizing the technical effect of avoiding false triggering of the function switch, and solving the technical problem of easy false triggering of the function switch.
Example 2
The technical solution of the embodiment of the present invention will be illustrated in the following with reference to a preferred embodiment.
Different functions can be realized through different entity key switches in the vehicle, for example, the ACC function can be started by pressing an ACC function activation key; the P gear button of the electronic gear shifting system is pressed, so that the functions of P gear return and the like can be realized. Physical key switches are one of the common and necessary devices for vehicles and other industrial products.
The expected functional safety of the vehicle can be used for researching and solving the problems of insufficient functions or misuse of personnel; functional safety can be studied to solve the problems caused by electronic and electrical failures. However, in the current industry, a key switch cannot generally select a vehicle-mounted chip with an ASIL level to realize the functional safety and the expected functional safety of the key switch, so that the usability and the safety of the key switch are poor.
In the related art, the whole vehicle function safety design is designed to ensure the controllability of the whole vehicle, and the whole vehicle safety targets are generally distributed to all subsystems, for example, according to the whole vehicle function safety design scheme, an ACC key switch is distributed with ASIL A grade, and the failure of the ACC key switch can cause unexpected triggering to activate the ACC function, so that unexpected acceleration of the whole vehicle is caused; similarly, according to the safety design scheme of the whole vehicle function, an ASIL A grade can be allocated to the P-gear key switch of the electronic gear shifting system, and the failure of the P-gear key switch of the electronic gear shifting system can lead to unexpected failure of P-gear entering, so that the whole vehicle is caused to slide unexpectedly, or unexpected P-gear entering is caused, and the whole vehicle is caused to be unstable in unexpected deceleration. Meanwhile, as the common switch design is generally a single-contact switch, the problems of unexpected false touch, false touch and the like are also easy to be caused, so that the function safety problem of unexpected triggering or unexpected closing of the key switch is caused.
In a related technology, a P-gear lock control system and a method based on state management for a pure electric vehicle are provided, however, the method only aims at realizing P-gear control or realizing a mechanical mechanism for P-gear parking, can not quickly determine the on or off state of a P-gear button, and can not determine whether a fault occurs, so that the technical problem of false triggering of a function switch still exists.
In another related technology, a gear shifting mechanism of a two-gear transmission is also provided, and the technical problem that the state of a P-gear button on an electronic gear shifting handle is not monitored and a function switch is easy to trigger by mistake is still solved only for a mechanical mechanism for realizing P-gear parking.
In order to solve the problems, the invention provides a key switch function realization and failure detection device which accords with functional safety and expected functional safety, wherein the case switch is designed as a key switch of a three-contact voting mechanism circuit, can correctly judge and realize the key switch functions of a driving object such as P-gear key operation, ACC opening and the like, and solves the expected functional safety problem of the key switch that a single-contact switch is easy to touch by mistake and touch by mistake; and the functional safety problems of low failure coverage rate and poor usability of the single-contact key switch; meanwhile, the problem of judging the true cause of the failure of the switch quickly can be solved, and the maintenance is convenient.
The following further describes an embodiment of the present invention by taking an electronic shift handle P-gear push-button switch as an example.
Fig. 2 is a block diagram of a key switch according to an embodiment of the present invention, and as shown in fig. 2, an internal circuit of the electronic shift handle P-stage key switch may include at least three switches, where the three switches may correspond to three contacts provided.
Alternatively, assume that there are three contacts in the function switch, the target number is 2. When the working state of not less than two of the three contacts is a closed state (also called a closed on state), it can be determined that the double-contact press contact exists in the function switch, and then the circuit signal output by the output end of the switch circuit is a circuit on signal, namely, a P-gear press signal, it can be determined that the execution state of the P-gear function is an allowed execution state, and further, the vehicle can be controlled to execute gear shifting.
Alternatively, assume that there are three contacts in the function switch, the target number is 2. When the working state of the three contacts is not less than that of the two contacts is the disconnection state, it can be determined that the double contacts are pressed to be contacted in the function switch, and then a circuit signal output by the output end of the switch circuit is a circuit disconnection signal, namely, a signal that the P gear is not pressed, the execution state of the P gear function can be determined to be the forbidden execution state, and further, the vehicle can not be controlled to execute gear shifting.
Alternatively, contact 201 and contact 202 determine the voltage at both the VCC and analog (1 & 2) terminals, referred to herein as the analog voltage; switch 203 determines the voltage across VCC and Digital (3), referred to herein as the Digital voltage.
In this embodiment, it is predetermined that the output voltage of the analog terminal is U1 if both the contact 201 and the contact 202 are on; if the contact 201 is on, when the contact 202 is off, the output voltage of the analog terminal is U2; if the contact 201 is opened, the contact 202 is closed, and the output voltage of the analog terminal is U3; the output voltage at the analog terminal is U4 if both contacts 201 and 202 are open. Thus, the contacts can be given an analog input design table under different switch states and faults, as shown in table 1 above:
alternatively, it is predetermined that if the contact 203 is opened, the output voltage of the digital terminal is U1' =5v; if the contact 203 is on, the output voltage of the digital terminal is U2' =0v. Table 2 is a digital input design table, and as shown in table 2, the theoretical voltage values of the circuit output are different for different states and faults of the contact 203.
Alternatively, table 1 and table 2 are combined to obtain a switching truth table, and table 3 is a switching truth table, and as shown in table 3, various state combinations of analog signal 1, analog signal 2 and digital signal 3 can be obtained to form a switching truth table, so as to obtain a functional redundancy design (also referred to as a voting mechanism) of key detection.
For example, assuming that three contacts are provided in the function switch, if the driving object does not trigger the P button, it is indicated that the driving object does not want to enter P, and under normal conditions, at least 2 of the 3 contact switches in the P button of the gear shifting handle should be disconnected, so that the gear shifting handle is ensured not to send a P signal unexpectedly, and the whole vehicle is not expected to enter P gear. The availability and the safety of the whole vehicle P gear are ensured. Under abnormal conditions, the driving object does not press the P key, but contacts with more than or equal to two numbers are closed due to faults, so that the gear shifting handle is not available, the execution state of the functional switch is an abnormal state, and the abnormal position of the internal circuit switch of the P key can be rapidly obtained by determining the output voltage, so that the technical effects of timely maintenance or replacement and improvement of detectability are achieved.
For another example, as shown in table 4, when the P button is not pressed, the P-gear circuit voltage value, the shift handle performance and the whole vehicle performance of the shift handle are shown in table 4, and when the digital voltage of the contact 203 is 5 volts (V) and the analog voltage controlled by the contact 201 and the contact 202 is U4, it can be determined that the three switches are all in the off state, the shift handle is normal, no P-gear signal is sent, the whole vehicle performance of the vehicle is normal, and no P-gear is entered. If the whole vehicle is abnormal and P gear is wrongly entered at the moment, digital voltage and analog voltage are collected, if the digital voltage is 5V and the analog voltage is U1, the contact 203 can be determined to be normal and to be disconnected; the contact 201 and the contact 2 are abnormal, and normally closed jamming exists. If the whole vehicle is abnormal, the P gear is wrongly entered, the digital voltage and the analog voltage are acquired, if the digital voltage is 0V and the analog voltage is U3, abnormal closing of the contact 203 can be determined, abnormal closing of the contact 202 is determined, the contact 201 is in an open state, namely, the current abnormality of the contact 202 and the contact 203 causes abnormality of a gear shifting handle, so that the P gear signal is wrongly transmitted, and other conditions can be analogized according to the table 4, and the details are omitted.
As an alternative example, if the driving object presses the P key, the driving object intends to enter P. Under normal conditions, at least 2 contact switches in the P keys of the gear shifting handle are closed, so that the gear shifting handle is ensured to send a P-gear signal according to the expected driving object to enable the whole vehicle to enter the P gear. The availability and the safety of the whole vehicle P gear are ensured. Under abnormal conditions, when the fault disconnection of the contact switch is larger than or equal to 2, and the gear shifting handle is not available, the abnormal position of the internal circuit switch of the P key can be rapidly obtained through the voltage value, so that the internal circuit switch can be maintained or replaced in time, and the detectability is improved.
As yet another alternative example, as shown in table 5, when the P button is pressed, if the whole vehicle is abnormal and the P gear cannot be expected to be entered, the digital voltage and the analog voltage are monitored, if the digital voltage is 5V and the analog voltage is U4, it may be determined that the shift handle is abnormal and the P gear signal is not sent because the three switches are all in the off state. When the P key is pressed, if the whole vehicle is abnormal and the P gear cannot be carried out unexpectedly, the digital voltage and the analog voltage are monitored, if the digital voltage is 0V and the analog voltage is U4, the abnormal disconnection of the contact 202 and the contact 201 can be determined, so that the gear shifting handle is abnormal and the P gear signal cannot be sent. When the P key is pressed, if the whole vehicle is normal, the vehicle enters the P gear, digital voltage and analog voltage can be monitored, if the digital voltage is 5V and the analog voltage is U1, abnormal disconnection of the contact 203 can be determined, and normally closed clamping stagnation of the contact 201 and the contact 202 can be determined.
Optionally, when the P keeps off the button unusual, driving object or maintenance personal can be through pressing the P button respectively and not pressing the P button and whether whole car can hang into the P and keep off to combine the voltage value that detects the gear shifting handle P fender circuit output, when not needing to disassemble the handle process, judge the gear shifting handle failure bit fast, so that maintenance or change gear shifting handle, perhaps carry out follow-up control processing in order further to improve whole car's controllability after detecting the inefficacy.
Optionally, the embodiment can monitor the voltage of the P gear according to a plurality of contacts of the internal circuit, and through voltage value comparison, when the gear shifting handle is abnormal, the abnormal state can remind a driving object in an alarm signal mode, and the situation that P gear is not expected to enter or P cannot be expected to enter is prevented from causing the sliding of the vehicle, so that the whole vehicle controllability is improved.
Optionally, the embodiment can monitor a plurality of switch voltages of the internal circuit of the P gear, and through voltage value comparison, when the gear shifting handle is abnormal, an abnormal state can be sent to the rear-end gear shifting control system, and a gear shifting abnormal path is terminated in time so as to improve the controllability of the whole vehicle.
It is important to explain that the switch failure detection circuit and method provided by the embodiment are not limited to be used in the key circuit of the P-gear push switch of the electronic gear shifting system, any key switch can be specifically designed based on the circuit voting mechanism concept of the invention, so as to achieve the purposes of improving the usability of functions, realizing the safety of functions and expected functions and realizing the rapid detection of failure positions
In the embodiment, the circuit voting mechanism of the multi-contact function switch can effectively identify the function state of the key switch, so that the usability and the robustness of the system are improved, and the expected functional safety and the functional safety of the key switch are realized; in this embodiment, the failure state of the functional switch is determined by detecting the output voltage of the circuit interface of the functional switch, for example, the failure state of the P-gear key is determined by detecting the output voltage of the circuit interface of the gear shifting handle, so that the working procedures of mechanically disassembling the vehicle handle or other covering key switch devices when the functional switch fails are saved, and the method is simple, convenient and feasible, and has high fault identification degree.
In this embodiment, the cover device switch of the whole vehicle gear shifting handle or other key switch is not required to be disassembled, so that the P-gear on-off key operation (or other on-off key operation) of the driving object can be effectively identified, whether the P-gear on-off key (or other key function) fails or not is identified, and the purpose that the disassembling procedure is omitted due to the fact that the failure is Cha Zhen is achieved. The key switch abnormality detection device can realize the function safety level ASIL A grade (or ASIL grade distributed to the key switch according to the whole vehicle function safety scheme) distributed to the P gear (or other key functions) under the conditions of ensuring the function robustness and improving the usability, thereby achieving the purposes of improving the function usability and realizing the function safety and the expected function safety. Meanwhile, the method of the circuit voting mechanism is simple, convenient and practical, and all the key switches can be used for achieving the purposes of improving the usability of functions, achieving functional safety and expected functional safety and achieving rapid detection of failure positions.
In the embodiment, the multi-contact switch is used, the working states of the contacts are determined based on the stress data of the function switch, and whether the function corresponding to the function switch is executed is determined based on the working states, so that the safety of the key function and the safety of the expected function can be ensured, the technical effect of avoiding false triggering of the function switch is realized, and the technical problem that the function switch is easy to trigger by false is solved.
Example 3
According to the embodiment of the invention, a device for processing the data in the vehicle is also provided. The processing device of the in-vehicle data may be used to execute the processing method of the in-vehicle data in embodiment 1.
Fig. 3 is a schematic view of a vehicle control apparatus according to an embodiment of the present invention. As shown in fig. 3, the processing device 300 of data in a vehicle may include: a first determination unit 302, an adjustment unit 304, and a second determination unit 306.
A first determining unit 302 for determining stress data of a function switch in response to a function switch trigger in a vehicle, wherein the function switch comprises a plurality of contacts.
The adjusting unit 304 is configured to adjust an operating state of the plurality of contacts of the functional switch, respectively, based on the stress data, where the operating state is used to characterize whether the contacts are in a closed state or an open state.
The second determining unit 306 is configured to determine an execution state of the function corresponding to the function switch based on the operation state.
Optionally, the adjusting unit 304 includes: and the adjusting module is used for adjusting the working state of the contact in response to the fact that the stress data of the contact is larger than the stress data threshold value.
Optionally, the second determining unit 306 includes: and the first determining module is used for determining the execution state of the function to be the permission execution state in response to the working state that at least two contacts exist to be the closed state.
Optionally, the second determining unit 306 includes: and the second determining module is used for determining that the execution state of the function is the forbidden execution state in response to the fact that the working state of at least two contacts is the open state.
Optionally, the apparatus further comprises: an acquisition unit configured to acquire an output voltage of the function switch in response to the execution state being an abnormal state; and a third determination unit configured to determine an abnormal contact position in the function switch based on the output voltage.
Optionally, the third determining unit includes: and the third determining module is used for determining the abnormal contact position based on the output voltage of the digital end in the functional switch and/or the output voltage of the analog end in the functional switch.
Optionally, the third determining module includes: the processing unit is used for judging the output voltage according to the state combination table corresponding to the function switch to obtain a judging result; based on the judgment result, the abnormal contact position is determined.
In the embodiment of the invention, the first determining unit is used for responding to the triggering of the function switch in the vehicle to determine the stress data of the function switch, wherein the function switch comprises a plurality of contacts; the method comprises the steps of respectively adjusting working states of a plurality of contacts of a functional switch based on stress data through an adjusting unit, wherein the working states are used for representing whether the contacts are in a closed state or an open state; through the second determining unit, based on the working state, the execution state of the corresponding function of the function switch is determined, so that the safety of the key function and the safety of the expected function can be ensured, the technical effect of avoiding false triggering of the function switch is realized, and the technical problem of easy false triggering of the function switch is solved.
Example 4
According to an embodiment of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program executes the processing method of data in a vehicle in embodiment 1.
Example 5
According to an embodiment of the present invention, there is also provided a processor for running a program, wherein the program executes the processing method of the data in the vehicle in embodiment 1 when running.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of units may be a logic function division, and there may be another division manner in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and determined to be stand-alone products for sale or use, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method of the various embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (10)

1. A method of processing data in a vehicle, comprising:
determining force data of a function switch in a vehicle in response to the function switch triggering, wherein the function switch comprises a plurality of contacts;
based on the stress data, respectively adjusting working states of the contacts of the functional switch, wherein the working states are used for representing whether the contacts are in a closed state or an open state;
and determining the execution state of the corresponding function of the function switch based on the working state.
2. The method of claim 1, wherein adjusting the operating states of the plurality of contacts of the function switch, respectively, based on the force data comprises:
and adjusting the working state of the contact in response to the stress data of the contact being greater than a stress data threshold.
3. The method of claim 1, wherein determining the execution state of the function corresponding to the function switch based on the operation state comprises:
In response to at least a target number of the contacts being present in the operational state being the closed state, determining that the execution state of the function is an allowed execution state.
4. The method of claim 1, wherein determining the execution state of the function corresponding to the function switch based on the operation state comprises:
in response to at least a target number of the contacts being present in the operating state as the open state, determining that the executing state of the function is an inhibit executing state.
5. The method according to claim 1, wherein the method further comprises:
responding to the execution state as an abnormal state, and acquiring the output voltage of the function switch;
an abnormal contact position in the functional switch is determined based on the output voltage.
6. The method of claim 5, wherein determining the abnormal contact position in the functional switch based on the output voltage comprises:
and determining the abnormal contact position based on the output voltage of the digital end in the functional switch and/or the output voltage of the analog end in the functional switch.
7. The method of claim 5, wherein determining the abnormal contact position in the functional switch based on the output voltage comprises:
Judging the output voltage according to a state combination table corresponding to the function switch to obtain a judging result;
and determining the abnormal contact position based on the judging result.
8. A processing apparatus of data in a vehicle, characterized by comprising:
a first determination unit configured to determine stress data of a function switch in a vehicle in response to a trigger of the function switch, wherein the function switch includes a plurality of contacts;
the adjusting unit is used for respectively adjusting the working states of the contacts of the functional switch based on the stress data, wherein the working states are used for representing that the contacts are in a closed state or an open state;
and the second determining unit is used for determining the execution state of the corresponding function of the function switch based on the working state.
9. A vehicle, characterized by being adapted to perform the method of any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer readable storage medium is located to perform the method of any one of claims 1 to 7.
CN202410084430.XA 2024-01-19 2024-01-19 Method and device for processing data in vehicle, vehicle and storage medium Pending CN117885752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410084430.XA CN117885752A (en) 2024-01-19 2024-01-19 Method and device for processing data in vehicle, vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410084430.XA CN117885752A (en) 2024-01-19 2024-01-19 Method and device for processing data in vehicle, vehicle and storage medium

Publications (1)

Publication Number Publication Date
CN117885752A true CN117885752A (en) 2024-04-16

Family

ID=90650891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410084430.XA Pending CN117885752A (en) 2024-01-19 2024-01-19 Method and device for processing data in vehicle, vehicle and storage medium

Country Status (1)

Country Link
CN (1) CN117885752A (en)

Similar Documents

Publication Publication Date Title
JP6831281B2 (en) Battery monitoring system and battery monitoring device
JP4550760B2 (en) Engine start / stop control device
GB2327764A (en) Measuring system with exchangeable sensors
CN117885752A (en) Method and device for processing data in vehicle, vehicle and storage medium
JP5132527B2 (en) Engine start / stop device and control method thereof
JP4239794B2 (en) Engine start / stop device for vehicle
US9984843B2 (en) Method for detecting a latent failure mode in an electronic selector having an interface switch and at least two underlying switches
CN110513471B (en) Vehicle gear shifting signal detection method, vehicle ball head, vehicle and storage medium
CN113759291B (en) Fault detection method and device, energy storage system and readable storage medium
CN112130521B (en) Control device for safety control of engineering machinery
JP3657000B1 (en) Slot machine
EP3121753A1 (en) System for controlling the communication between a main device and an auxiliary device and associated main device and auxiliary device used in the system
CN111149088A (en) Method for operating a controller and device having a corresponding controller
CN111114557A (en) Vehicle control method and device, automobile, storage medium and processor
CN110955554A (en) Fault processing method, device, equipment and storage medium
KR101352601B1 (en) System and method for diagnosing a fault of start/stop button
CN105370470B (en) A kind of automatic clutch whistle control system
CN114961447B (en) Vehicle door control method and device and vehicle
US20030193766A1 (en) Switching Device For Signaling A Binary Information Item
CN113428074B (en) Touch type danger alarm switch control system and method
CN114454917B (en) Control signal processing method, system, vehicle-mounted safety computer and storage medium
JP2012064465A (en) Input device
CN115940084A (en) Protection system and method for precision resistor and automobile
EP3121754B1 (en) Safety system for controlling the communication between at least one control unit and an auxiliary device
CN113640658A (en) Method and device for identifying on-off state of speed regulation switch and electric appliance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination