Sliding switch assembly, switch position detection method and motor vehicle
By introducing the first and second detection circuits and microcontroller units into the sliding switch assembly, the problem that the switch assembly cannot detect the switch position when it is poorly contacted is solved, and a functional selection of high accuracy and robustness is achieved.
Patent Information
- Application Number
- CN201910636416.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-15
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2039-07-15
AI Technical Summary
The existing switch components cannot detect the switch position due to poor contact in low temperatures and other situations, which affects the accuracy of function selection.
A sliding switch assembly is designed, including a sliding switch, a function selection device and a switch detection device. Through the first detection circuit and the microcontroller unit, the contact state of the sliding switch and the function selection device is detected, and the position of the sliding switch is detected based on the capacitance characteristics when the contact is poor.
It realizes that the switch position can be accurately detected when the switch and the function selection device are in poor contact, improving the accuracy and robustness of function selection.
Smart Images

Figure CN112230131B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic control, and more particularly to a sliding switch assembly, a switch position detection method, and a motor vehicle. Background Art
[0002] With the widespread application of electronic control technology in civil and commercial fields, switch components integrating multiple functions are widely used in the fields of motor vehicle control, power distribution control, etc., which also puts higher requirements on switch components.
[0003] The current switch assembly generally includes a switch and a function selection device. During operation, the user operates the switch to select each function module in the function selection device. When the switch contacts the corresponding function module, the switch assembly can determine the function currently selected by the user. However, when the switch and the function selection device are in poor contact, for example, in low temperature conditions, the lubricating oil between the switch and the function selection device freezes and the switch cannot directly contact the function selection device, the switch is in an open circuit load state relative to the function selection device, and the switch assembly cannot obtain the position of its switch.
[0004] Therefore, there is a need for a switch component that can detect the position of a switch in a function selection device and determine the function currently selected by a user both when the switch is in contact with the function selection device and when the switch is in an open circuit load state relative to the function selection device, and which has high detection accuracy and robustness. Summary of the invention
[0005] In view of the above problems, the present disclosure provides a sliding switch assembly, a switch position detection method and a motor vehicle. By using the sliding switch assembly provided by the present disclosure, when the sliding switch is in an open circuit load state relative to the function selection device, the sliding switch assembly can still well detect the switch position, thereby achieving good function selection.
[0006] According to one aspect of the present disclosure, a sliding switch assembly is provided, the sliding switch assembly comprising a sliding switch and a function selection device, the function selection device having a plurality of function sections, the sliding switch sliding on the plurality of function sections to select the corresponding function sections, the sliding switch assembly further comprising a switch detection device, the switch detection device comprising: a first detection circuit, which outputs a first detection signal, the first detection signal indicating a state in which at least one function section among the plurality of function sections of the function selection device is selected or no function section is selected; a micro control unit, which receives the first detection signal and determines a position of the sliding switch in the function selection device based on the first detection signal indicating a selection of at least one function section among the plurality of function sections of the function selection device; a second detection circuit, which outputs a second detection signal, the second detection signal indicating a position of the sliding switch in the function selection device, the second detection circuit being different from the first detection circuit and the second detection signal being different from the first detection signal; wherein, when the first detection signal indicates a state in which no function section is selected, the micro control unit controls the second detection circuit to operate, and determines the position of the sliding switch in the function selection device based on the second detection signal.
[0007] In some embodiments, the function selection device is a function selection circuit board, and a plurality of function sections arranged on the function selection device are spaced apart from each other.
[0008] In some embodiments, the first detection signal is a signal generated based on the detection of voltage characteristics, and the second detection signal is a signal generated based on the detection of capacitance characteristics.
[0009] In some embodiments, the first detection circuit is a voltage detection circuit, and the first detection circuit includes: a plurality of detection resistors, the plurality of detection resistors are connected in series with each other, and each of the plurality of detection resistors is connected to a corresponding functional segment on a function selection device; wherein the first detection circuit generates and outputs a first detection signal based on the voltage of the plurality of detection resistors.
[0010] In some embodiments, the second detection circuit is a capacitance detection circuit, and the second detection circuit includes: a pre-charging module, which is configured to charge each functional segment on the function selection device; a data acquisition module, which is configured to detect the charging and discharging process of each functional segment on the function selection device, and generate a corresponding detection charging and discharging time; a second detection signal generating module, which is configured to compare the detection charging and discharging time with a preset charging and discharging time threshold of each functional segment, and generate a second detection signal based on the comparison result.
[0011] In some embodiments, when the detection charge and discharge time of each functional section is less than or equal to a preset charge and discharge time threshold, the second detection signal generation module generates and outputs a detection error signal.
[0012] In some embodiments, when the micro control unit receives a detection error signal, the micro control unit will generate an alarm signal based on the detection error signal.
[0013] According to another aspect of the present disclosure, a switch position detection method for a sliding switch assembly as described above is provided, the method comprising: outputting the first detection signal through the first detection circuit, the first detection signal indicating the state of selection of at least one functional segment among multiple functional segments of the function selection device or no functional segment selection; receiving the first detection signal through the micro control unit, and determining the position of the sliding switch in the function selection device based on the first detection signal indicating the selection of at least one functional segment among multiple functional segments of the function selection device; when the first detection signal indicates the state of no functional segment selection, controlling the second detection circuit to operate through the micro control unit, outputting the second detection signal through the second detection circuit, the second detection signal indicating the position of the sliding switch in the function selection device, the second detection circuit being different from the first detection circuit, and the second detection signal being different from the first detection signal; receiving the second detection signal through the micro control unit, and determining the position of the sliding switch in the function selection device based on the second detection signal.
[0014] In some embodiments, outputting a second detection signal through a second detection circuit includes: charging each functional segment on the function selection device; detecting the charging and discharging process of each functional segment on the function selection device, and generating a corresponding detection charging and discharging time; comparing the detection charging and discharging time with a preset charging and discharging time threshold of each functional segment, and generating a second detection signal based on the comparison result.
[0015] In some embodiments, when the detected charge and discharge time of each functional section is less than or equal to a preset charge and discharge time threshold, a detection error signal is generated and output.
[0016] In some embodiments, a corresponding alarm signal is generated and output according to the detection error signal.
[0017] According to another aspect of the present disclosure, a motor vehicle is provided, comprising the sliding switch assembly as described above.
[0018] By utilizing the sliding switch assembly provided by the present disclosure, it is possible to detect the position of the sliding switch when the sliding switch is in contact with the function selection device; in particular, when the sliding switch is in an open circuit load state relative to the function selection device, the sliding switch assembly can also well detect the position of the sliding switch, and the detection of the sliding switch position has high accuracy and good robustness. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can also be obtained based on these drawings without creative work. The following drawings are not deliberately scaled according to the actual size, and the focus is on illustrating the main purpose of the present disclosure.
[0020] Figure 1 A schematic block diagram of a slide switch assembly 400 according to an embodiment of the present disclosure is shown;
[0021] Figure 2A A schematic diagram showing a voltage detection circuit 520 according to an embodiment of the present disclosure;
[0022] Figure 2B shows an equivalent schematic diagram of a voltage detection circuit when the sliding switch selects the functional section 503 according to an embodiment of the present disclosure;
[0023] Figure 3 1 is a schematic block diagram of a capacitance detection circuit 600 according to an embodiment of the present disclosure;
[0024] Figure 4A An exemplary flow chart showing a pre-charging sub-circuit according to an embodiment of the present disclosure;
[0025] Figure 4B A schematic diagram showing a capacitor charging and discharging process according to an embodiment of the present disclosure.
[0026] Figure 5 An exemplary flow chart of a switch position detection method 100 according to an embodiment of the present disclosure is shown;
[0027] Figure 6 An exemplary flow chart of a process 200 of outputting a second detection signal through a second detection circuit according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0028] The technical solutions in the embodiments of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present disclosure, rather than all embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work also fall within the scope of protection of the present disclosure.
[0029] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0030] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules can be used. The modules are only illustrative, and different aspects of the systems and methods can use different modules.
[0031] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously as required. Meanwhile, other operations may also be added to these processes, or a certain step or several steps of operations may be removed from these processes.
[0032] According to one aspect of the present disclosure, a slide switch assembly is provided.
[0033] Figure 1 A schematic block diagram of a slide switch assembly 400 according to an embodiment of the present disclosure is shown.
[0034] Reference Figure 1 The sliding switch assembly 400 includes a sliding switch 430 and a function selection device 420. The function selection device 420 has a plurality of function sections. The sliding switch 430 slides on the plurality of function sections to select corresponding function sections.
[0035] The function selection device 420 may be a multifunctional selection panel of a motor vehicle, or a power distribution selection box or other function selection device in a building power distribution system. The present disclosure is not limited by the specific type of the function selection device and its application area.
[0036] The multiple function sections of the function selection device can be set based on actual needs. For example, when the function selection device is a multifunctional selection panel of a motor vehicle, the function sections it has can be, for example, a windshield wiper wiping start-stop function section, a car audio function section, a voice call function section, a heating and ventilation control function section, an emergency alarm function section, etc. The embodiments of the present disclosure are not limited by the specific functions and the specific number of function sections set.
[0037] The sliding switch may be, for example, one sliding switch, or may be a plurality of sliding switches. The embodiments of the present disclosure are not limited by the number of sliding switches provided.
[0038] For example, the function selection device may be a function selection circuit board integrated with multiple function sections, and the function selection is realized by sliding the slide switch on the function selection circuit board. Alternatively, the function selection device may be obtained by electrically connecting multiple separate function module subcircuits, and the slide switch may be, for example, multiple slide switches, each corresponding to a subcircuit slide switch of each function module subcircuit, and the selection of each function section in the function selection device may be realized respectively by the slide switch equipped by each function module subcircuit. The embodiments of the present disclosure are not limited by the specific composition of the function selection device and the specific selection method adopted for function selection.
[0039] The sliding switch assembly further includes a switch detection device 410 , which is connected to the function selection device and includes a first detection circuit 411 , a micro control unit 412 , and a second detection circuit 413 .
[0040] The first detection circuit 411 is configured to output a first detection signal, wherein the first detection signal indicates a state in which at least one functional section among a plurality of functional sections of the function selection device is selected or no functional section is selected.
[0041] The first detection circuit 411 is intended to detect the function segment selection state of the current function selection device. It can be, for example, a voltage detection circuit, or a current detection circuit or other types of detection circuits. The embodiments of the present disclosure are not limited by the specific type of the first detection circuit.
[0042] The first detection signal is a signal that characterizes the current function segment selection state of the function selection device. It can be, for example, an analog signal, such as a currently detected voltage signal or current signal, or it can also be a digital signal, such as a pulse signal or a square wave signal. The embodiments of the present disclosure are not limited by the specific type of the first detection signal.
[0043] The micro control unit 412 is configured to receive the first detection signal and determine a position of the slide switch in the function selection device based on the first detection signal indicating selection of at least one of the plurality of function sections of the function selection device.
[0044] The micro control unit may receive the first detection signal, for example, by wired means; or it may receive the first detection signal wirelessly. The embodiments of the present disclosure are not limited by the specific manner in which the micro control unit receives the first detection signal.
[0045] The selected state of at least one functional section among the multiple functional sections of the function selection device represents the selected state of at least one functional section in the function selection device, for example, the user currently selects the functional section for starting the windshield wiper.
[0046] When the first detection signal is a voltage signal, the microcontroller unit can, for example, obtain the sliding switch position indicated by the first detection signal based on the voltage value of the voltage signal and a comparison table of voltage values and sliding switch positions. The embodiments of the present disclosure are not limited by the specific method of determining the sliding switch position through the first detection signal.
[0047] The second detection circuit 413 is configured to output a second detection signal, the second detection signal indicating the position of the slide switch in the function selection device, the second detection circuit is different from the first detection circuit and the second detection signal is different from the first detection signal.
[0048] The second detection circuit is intended to detect the position of the slide switch in the function selection device. It can be, for example, a capacitance detection circuit, or other detection circuits. The present disclosure is not limited by the type of the second detection circuit and its specific composition.
[0049] The second detection signal is intended to characterize the position of the slide switch in the function selection device, and can be, for example, an analog signal, such as a detected voltage signal or current signal, or a digital signal, such as a pulse signal or a square wave signal. The embodiments of the present disclosure are not limited by the specific type of the second detection signal.
[0050] It should be understood that the first detection circuit and the second detection circuit used in the present disclosure are only used to distinguish two detection circuits with different circuit structures and detection methods, and are not intended to limit them.
[0051] In some embodiments, the first detection circuit and the second detection circuit can both be independent detection circuits and electrically connected to the micro control unit, or the first detection circuit and the second detection circuit can both be integrated into the micro control unit. The embodiments of the present disclosure are not limited by the connection and structural relationship between the first detection circuit, the second detection circuit and the micro control unit.
[0052] It should be understood that the first detection signal and the second detection signal are different, which is only intended to illustrate that the sources of their signal generation are different and the contents they indicate are different, and is not intended to limit them. The first detection signal and the second detection signal can be, for example, signals of the same type, such as both being voltage signals; or they can also be signals of different types, such as the first detection signal is a voltage signal and the second detection signal is a pulse signal. The embodiments of the present disclosure are not limited by the relationship between the signal types of the first detection signal and the second detection signal.
[0053] Wherein, when the first detection signal indicates that there is no function section selection state, the micro control unit controls the second detection circuit to operate, and determines the position of the sliding switch in the function selection device based on the second detection signal.
[0054] Among them, the state of no function segment selection represents that all function segments in the function selection device are not selected, for example, the current user has not performed a selection operation on the function selection device, or when the user makes a selection through the sliding switch, the sliding switch and the function selection device have poor contact, resulting in the sliding switch being in an open circuit load state and failing to be recognized.
[0055] The microcontroller unit determines the position of the switch in the function selection device based on the second detection signal, for example, by: when the second detection signal is a digital signal, according to the digital value of the obtained digital signal, based on the comparison of the digital value with a preset digital value, determining the corresponding position of the sliding switch. The embodiments of the present disclosure are not limited by the specific method of determining the position of the sliding switch by the second detection signal.
[0056] Based on the sliding switch assembly provided in the present application, when detecting the position of the sliding switch in the function selection device, when the first detection circuit detects that the function selection device is currently in a non-function segment selection state, a second detection circuit different from the first detection circuit is provided to detect the position of the sliding switch, and the position of the sliding switch is determined based on the obtained second detection signal, so that the problem that the position of the sliding switch cannot be determined by the function segment selection state when the sliding switch and the function selection device are in poor contact can be effectively solved, while improving the robustness and accuracy of the position detection of the sliding switch.
[0057] In some embodiments, the function selection device is a function selection circuit board, and a plurality of function sections arranged on the function selection device are spaced apart from each other.
[0058] Among them, the function selection circuit board is, for example, a printed circuit board, the sliding switch and each of the multiple functional sections are made of conductive materials, which can be, for example, copper foil or nickel-chromium alloy. The embodiments of the present disclosure are not limited by the specific composition of the conductive material.
[0059] By arranging a plurality of functions in corresponding functional sections in the function selection device and at the same time arranging the plurality of functional sections to be spaced apart from each other, when a sliding switch is moved on a function selection circuit board, it is possible to effectively avoid detection errors in the position of the sliding switch caused by the sliding switch being located at the junction of two adjacent functional sections.
[0060] In some embodiments, the first detection signal is a signal generated based on the detection of voltage characteristics, and the second detection signal is a signal generated based on the detection of capacitance characteristics.
[0061] By using the first detection circuit to detect based on voltage characteristics and generate a corresponding first detection signal, when the user manipulates the sliding switch to contact each functional section, the user's current function selection can be efficiently and real-time fed back; at the same time, by setting the second detection circuit to detect based on capacitance characteristics and generate a second detection signal, when the first detection signal indicates that there is currently no functional section selection, the position of the sliding switch can be further accurately detected by detecting the capacitance characteristics. Based on this, the detection efficiency and detection accuracy of the sliding switch position detection in the sliding switch assembly can be taken into account.
[0062] In some embodiments, the first detection circuit is a voltage detection circuit, and the first detection circuit includes a plurality of detection resistors connected in series, and each of the plurality of detection resistors is connected to a corresponding functional segment on the function selection device.
[0063] The first detection circuit generates and outputs a first detection signal based on the voltages of the plurality of detection resistors.
[0064] In some embodiments, the resistance values of the multiple detection resistors are different from each other, and their resistance values can be selected based on actual needs. For example, when there are three detection resistors, their resistance values can be set to 50Ω, 75Ω, 150Ω, or other resistance values. The embodiments of the present disclosure are not limited by the resistance values of the detection resistors.
[0065] Figure 2AA schematic diagram of a voltage detection circuit according to an embodiment of the present disclosure is shown. Figure 2B FIG. 4 shows an equivalent schematic diagram of a voltage detection circuit when the slide switch selects section 503 according to an embodiment of the present disclosure.
[0066] Reference Figure 2A , which shows a slide switch 510 in a slide switch assembly, a function selection device 500, where the function selection device is a function selection circuit board, on which a plurality of function sections (such as Figure 2A 502, 503), and a grounding section (such as Figure 2A The grounding section 501 is connected to the ground terminal GND, and each section 501, 502, 503 is formed as a copper pad on the function selection circuit board. At this time, the sliding switch has two contacts, one of which is always in contact with the grounding section 501, and the other contact can be in contact with the function sections 502, 503 based on the sliding of the user to realize the selection of the function.
[0067] The voltage detection circuit 520 includes, for example, a detection resistor R T1 , R T2 , R T3 And a detection shunt resistor R0 is connected to a reference voltage Vref, which can be 12V, for example. T2 , R T3 They are connected to functional section 502 and functional section 503 respectively. Figure 2A The detection resistor R T2 Connected to functional section 502, the detection resistor R T3 Connected to functional section 503. The detection shunt resistor R0 is intended to prevent the problem of excessive current in the voltage detection circuit when all resistors are short-circuited. The voltage detection circuit uses the voltage value at the location of the test point T as the first detection signal and transmits the first detection signal to the micro control unit in real time.
[0068] Among them, the detection resistor R T1 , R T2 , R T3 The resistance values of are, for example, 200Ω, 300Ω, and 600Ω, respectively, and the resistance value of the detection shunt resistor R0 is 100Ω. Specifically, when the user does not select any functional section or the sliding switch is in poor contact with the functional section, the voltage value of the detection point T in the voltage detection circuit is 11V; when the user selects the functional area 503 by operating the sliding switch, the detection resistor R connected to the functional area 503 is T3 will be short-circuited, causing the total resistance of the detection resistor in the circuit to change. The equivalent circuit diagram of the voltage detection circuit at this time is as follows: Figure 2B As shown, the voltage value of the detection point T at this time is 10 V. Therefore, by measuring the voltage value of the detection point T, the selection of the functional section in the current circuit can be characterized.
[0069] By setting the first detection circuit as a voltage detection circuit, a plurality of detection resistors connected in series are set therein, and each of the plurality of detection resistors is set to be connected to a corresponding functional segment on a function selection circuit board, so that the voltage value based on a preset detection point in the voltage detection circuit can reflect the functional segment selection state in the current circuit, thereby realizing convenient and fast sliding switch position detection.
[0070] In some embodiments, the second detection circuit is, for example, a capacitance detection circuit.
[0071] Figure 3 FIG. 6 is a schematic block diagram of a capacitance detection circuit 600 according to an embodiment of the present disclosure.
[0072] Reference Figure 3 , wherein the second detection circuit is a capacitance detection circuit 600 , and the second detection circuit includes a pre-charging module 610 , a data acquisition module 620 , and a second detection signal generating module 630 .
[0073] The pre-charging module 610 is configured to charge each functional segment on the function selection device.
[0074] The charging process may, for example, be configured to charge each functional section of the function selection device to a preset charging voltage. The charging voltage may, for example, be set based on circuit characteristics and specific requirements, such as being set to 3.3V, or being set to 5V. The embodiments of the present disclosure are not limited by the specific voltage value of the preset charging voltage.
[0075] In some embodiments, the pre-charging module may be, for example, a charging and discharging electronic circuit. Figure 4A A schematic diagram of a charging and discharging electronic circuit of a second detection circuit according to an embodiment of the present disclosure is shown. Figure 4B A schematic diagram showing a capacitor charging and discharging process according to an embodiment of the present disclosure.
[0076] Reference Figure 4A and Figure 4B , the above charging and detection process can be described in more detail. Figure 4AAn exemplary charging and discharging electronic circuit is shown in . The charging and discharging electronic circuit includes a capacitor C to be measured, a charging branch M1 and a discharging branch M2 connected in parallel with the capacitor to be measured. The capacitor to be measured may be, for example, a segment equivalent capacitor of a functional segment in a function selection device. The charging branch M1 includes a charging power supply and a charging shunt resistor R1. The charging voltage of the charging power supply is, for example, 5V, and the charging shunt resistor R1 may be set based on needs, for example, it may be set to 200Ω (ohms). The discharging branch M2 includes a discharging shunt resistor R2, and the discharging shunt resistor R2 may be set based on actual needs, for example, it may be set to 100Ω. The charging branch and the discharging branch may be selected, for example, via a charge and discharge selection switch K, and switch to the discharging process after the charging process is completed, thereby realizing the detection of the charging and discharging performance.
[0077] Figure 4B A schematic diagram of the charging and discharging process of a capacitor according to an embodiment of the present disclosure is shown.
[0078] For example, when using Figure 4A When the charging and discharging electronic circuit shown in the figure charges and discharges a functional section, the charging and discharging process of the section equivalent capacitance of a functional section is as follows: Figure 4B The charging and discharging process includes the charging process of the capacitor and the discharging process of the capacitor. The charging and discharging time is the total time of the charging process and the discharging process.
[0079] The data acquisition module 620 is configured to detect the charging and discharging process of each functional section on the function selection device and generate corresponding detection charging and discharging time.
[0080] In some embodiments, the data acquisition module may be, for example, a pulse counting circuit. For each functional segment, when the pre-charging module starts to charge the functional segment, the pulse counting circuit starts to work, for example, starts to generate a pulse signal with a constant pulse time period, and calculates the number of pulse signals generated; when the functional segment goes through the charging and discharging process, for example, when the voltage of the functional segment capacitor is lower than a preset discharge voltage, it indicates that the discharge process is completed. At this time, the pulse counter will stop generating pulse signals, end the pulse counting process, and use the number of pulses corresponding to the current functional segment charging and discharging process as the detection charging and discharging time signal of the functional segment and output the detection charging and discharging time signal.
[0081] For example, if the pulse period (the pulse period represents the time from the start of a pulse to the start of the next adjacent pulse) in the pulse counting circuit is set to 10ms, then if the charge and discharge time of a functional section is 150ms, then the corresponding detection charge and discharge time signal is 15. The detection charge and discharge time signal can be in the form of binary code or octal code, for example.
[0082] It should be understood that the data acquisition module may also have other components or adopt other methods to detect the charge and discharge time. The embodiments of the present disclosure are not limited by the specific structural configuration of the data acquisition module and the specific selection method adopted.
[0083] The second detection signal generating module 630 is configured to compare the detected charge and discharge time with a preset charge and discharge time threshold of each functional section, and generate a second detection signal based on the comparison result.
[0084] The charge and discharge time threshold can be the same value for each functional section on the function selection device, for example, the preset charge and discharge time threshold for each functional section is 100ms, or different preset charge and discharge time thresholds can be set for each functional section, for example, the equivalent capacitance value of each functional section is substituted into the calculation formula to obtain the corresponding preset charge and discharge time threshold, or the detection time of the charge and discharge process of each functional section is measured when no function selection is performed and used as the preset charge and discharge time of each functional section. The embodiments of the present disclosure are not limited by the specific value of the preset charge and discharge time threshold and the setting method of the preset charge and discharge time threshold.
[0085] The preset charge and discharge time threshold value can be represented by a preset charge and discharge time signal, for example, wherein the preset charge and discharge time signal is, for example, for each functional section of the function selection device, when it is not selected by the sliding switch (that is, the sliding switch is not located on the functional section), the corresponding charge and discharge time signal is charged and detected by the pre-charging module. For example, it is a digital quantity in binary or octal encoding form, or it can also have other forms. The embodiments of the present disclosure are not limited by the representation form of the preset charge and discharge time threshold value.
[0086] When the preset charge and discharge time threshold is represented by a preset charge and discharge time signal, the second detection signal generating module may be, for example, a signal comparison circuit, which compares the detection charge and discharge time signal corresponding to each functional segment with the preset charge and discharge time signal of the functional segment to obtain a comparison result signal corresponding to each functional segment, and processes the comparison result signal of each functional segment to obtain a second detection signal.
[0087] The above process of generating the second detection signal based on the comparison result can be described in more detail, for example. Based on the principle of capacitive touch sensing, it can be known that when the sliding switch approaches a functional section, for example, when the sliding switch is located above a functional section, although the sliding switch is not in contact with the functional section, the equivalent sliding capacitance of the sliding switch can be coupled with the equivalent capacitance of the slider to generate a composite capacitance. And because the composite capacitance is larger than the equivalent capacitance value of the conductive section on the circuit board, when the switch is located above a functional section, the composite capacitance of the functional section will be significantly greater than the functional section capacitance it has. Based on this, according to the capacitance charge and discharge characteristics, the charge and discharge time of the composite capacitance will be significantly greater than the charge and discharge time of the equivalent capacitance of the functional section.
[0088] Based on this, when it is detected that the detection charging and discharging time in a certain functional section of the function selection device is greater than its preset charging and discharging time, a second detection signal can be generated, and the second detection signal indicates that the current sliding switch is located on the functional section.
[0089] Reference Figure 2A , the above process can be described in more detail. For example, for the functional section 503, if the current sliding switch is located on the functional section, the detection charge and discharge signal of the current functional section can be obtained through the pre-charging module and the data acquisition module, for example, the detection charge and discharge signal is 25. If the preset charge and discharge signal of the functional section 503 is 15, and it is set that if the detection charge and discharge signal is greater than the preset charge and discharge signal, a high level signal is generated as the comparison result signal, and if the detection charge and discharge signal is less than or equal to the preset charge and discharge signal, a low level signal is generated as the comparison result signal, then for the functional section 503, the corresponding comparison result signal is a high level signal. Further, if there is only one sliding switch in the current function selection device and it is located on the functional section 503, the comparison result signals on the functional sections 501 and 502 are both low level signals. At this time, the comparison result signals in the functional sections 501, 502, and 503 are combined, and a second detection signal can be further generated, and the second detection signal indicates that the sliding switch is located in the functional section 503.
[0090] By setting the second detection circuit as a capacitance detection circuit, and realizing the detection of the position of the sliding switch based on the capacitance detection circuit, a second detection signal corresponding to the position of the sliding switch is generated, so that when the sliding switch is not in contact with each functional section in the function selection device, that is, when the sliding switch is in an open circuit load state relative to the function selection device, the position of the sliding switch in the function selection device at this time can still be detected based on the capacitance characteristics of each functional section, thereby obtaining the function selected by the user at this time. The detection capability of the sliding switch assembly for the position of the sliding switch is improved.
[0091] In some embodiments, when the detected charge and discharge time of each functional section is less than or equal to a preset charge and discharge time threshold, a detection error signal is generated and outputted through the second detection circuit.
[0092] As mentioned above, when the detection charge and discharge time of each functional section is less than or equal to the preset charge and discharge time threshold, it indicates that the current sliding switch does not exist on any functional section in the function selection device. At this time, the detection error signal output indicates that there is a selection error in the current sliding switch assembly. The error situation may be, for example, that the function selection device in the sliding switch assembly is not powered on, resulting in the inability to make a selection, or that the sliding switch is severely worn or lost, resulting in the inability to make a selection at the current stage. The embodiments of the present disclosure are not limited by the specific indication content of the detection error signal.
[0093] The function selection error signal may be, for example, an analog signal or a digital signal. The embodiments of the present disclosure are not limited by the specific type of the error selection signal.
[0094] Specifically, when the second detection circuit is a capacitor detection circuit, when the detection charge and discharge time of each functional segment is less than or equal to the preset charge and discharge time threshold, that is, the detection charge and discharge signal of each functional segment is less than or equal to the preset charge and discharge time signal, at this time, the comparison result signal of each functional segment is a low-level signal. At this time, the second detection circuit can, for example, generate a detection error signal, which indicates that the sliding switch is not on any functional segment in the current stage.
[0095] Based on the above, when the detected charging and discharging time of each functional section is less than or equal to the preset charging and discharging time threshold, the second detection circuit is enabled to generate and output a detection error signal, so that the abnormal working state of the current sliding switch component can be promptly fed back to the micro control unit for subsequent processing.
[0096] In some embodiments, when the micro control unit receives a detection error signal, an alarm signal is generated by the micro control unit based on the detection error signal.
[0097] The alarm signal is intended to indicate that the current sliding switch assembly is in an abnormal working state. The alarm signal may be, for example, an analog signal or a digital signal. The alarm signal may be, for example, output to a user terminal or a user interface via a microcontroller unit to provide feedback to the user; or it may be transmitted to other subunits within the microcontroller unit, for example, it may be transmitted to an error screening subunit of the microcontroller unit for subsequent error detection and processing. The embodiments of the present disclosure are not limited by the type of the alarm signal and the module to which it is output.
[0098] Based on the above, when the detection charge and discharge time of each functional section is less than or equal to the preset charge and discharge time threshold, the micro control unit receives the detection error signal of the second detection circuit and generates a corresponding alarm signal based on the error signal, so that the abnormal working state of the current sliding switch assembly can be promptly fed back to the user or other control units for subsequent processing.
[0099] According to another aspect of the present disclosure, a switch position detection method for the sliding switch assembly as described above is provided.
[0100] Figure 5 An exemplary flow chart of a switch position detection method 100 according to an embodiment of the present disclosure is shown.
[0101] Reference Figure 5 First, in step S101, the first detection circuit outputs the first detection signal, and the first detection signal indicates the state of selection of at least one functional segment among the multiple functional segments of the function selection device or no functional segment selection.
[0102] As mentioned above, the function selection device has multiple function sections, and one or more function sections in the function selection device are selected by, for example, a sliding switch, that is, the user selects the corresponding function section by adjusting the position of the sliding switch on the function selection device.
[0103] The function selection device may be, for example, a multifunctional selection panel of a motor vehicle, or a power distribution selection box or other function selection device in a building power distribution system. The present disclosure is not limited by the specific type of the function selection device and its application area.
[0104] The first detection circuit is intended to detect the current function segment selection state of the function selection device. The first detection signal is a signal representing the current function segment selection state of the function selection device. The embodiments of the present disclosure are not limited by the specific type of the first detection circuit and the specific type of the first detection signal.
[0105] Specifically, the first detection signal may, for example, indicate the state of at least one of the multiple function sections of the function selection device being selected or no function section being selected when the user makes a selection. The state of at least one of the multiple function sections of the function selection device being selected represents the state in which at least one function section of the function selection device is selected; the state of no function section being selected represents that all function sections of the function selection device are not selected. The embodiments of the present disclosure are not limited by the specific selection state indicated by the first detection signal.
[0106] Thereafter, in step S102 , the first detection signal is received by the micro control unit.
[0107] The microcontroller unit may receive the first detection signal in a wired manner, for example, by being electrically connected to the first detection circuit to receive the first detection signal; or it may receive the first detection signal in a wireless manner, for example, by receiving the first detection signal based on a Zigbee or Bluetooth communication protocol. The embodiments of the present disclosure are not limited by the specific manner in which the microcontroller unit receives the first detection signal.
[0108] After the micro control unit receives the first detection signal, in step S103 , it is determined whether the first detection signal indicates a selected state of at least one function segment among a plurality of function segments of the function selection device or indicates a state where no function segment is selected.
[0109] Based on the judgment, if the first detection signal indicates the selected state of at least one functional segment among the multiple functional segments of the function selection device, then in step S104, the position of the sliding switch in the function selection device is determined based on the first detection signal indicating the selection of at least one functional segment among the multiple functional segments of the function selection device.
[0110] The process of determining the switch position based on the first detection signal may, for example, be: when the first detection signal is a voltage signal, according to the voltage value of the voltage signal obtained, based on a comparison table of voltage values and switch positions, the position of the sliding switch indicated by the first detection signal is obtained; or other methods may be used to obtain the corresponding position of the sliding switch based on the first detection signal. The embodiments of the present disclosure are not limited to the specific method of determining the position of the sliding switch by the first detection signal.
[0111] If the first detection signal indicates a state where no function is selected, then in step S105, the microcontroller controls the second detection circuit to work, and the second detection circuit outputs a second detection signal, wherein the second detection signal indicates the position of the slide switch in the function selection device. The second detection circuit is different from the first detection circuit, and the second detection signal is different from the first detection signal.
[0112] The second detection circuit is intended to detect the position of the slide switch in the function selection device. It can be, for example, a capacitance detection circuit, or other detection circuits. The present disclosure is not limited by the type of the second detection circuit and its specific composition.
[0113] The second detection signal is intended to characterize the position of the switch in the function selection device, and can be, for example, an analog signal, such as a detected voltage signal or current signal, or a digital signal, such as a pulse signal or a square wave signal. The embodiments of the present disclosure are not limited by the specific type of the second detection signal.
[0114] It should be understood that the use of the first detection circuit and the second detection circuit in the present disclosure is only used to distinguish the first detection circuit and the second detection circuit, and is not intended to limit them. The first detection signal and the second detection signal are different, which is only intended to illustrate that their signal generation sources are different and the contents they indicate are different, and is not intended to limit them. The embodiments of the present disclosure are not limited by the relationship between the signal types of the first detection signal and the second detection signal.
[0115] Thereafter, after being processed by the second detection circuit, in step S106 , the second detection signal is received by the micro control unit, and the position of the slide switch in the function selection device is determined based on the second detection signal.
[0116] The microcontroller unit may receive the second detection signal in a wired manner, for example, by connecting to the second detection circuit to receive the second detection signal; or it may receive the second detection signal in a wireless manner, for example, by receiving the second detection signal based on a Zigbee or Bluetooth communication protocol. The embodiments of the present disclosure are not limited by the specific manner in which the microcontroller unit receives the second detection signal.
[0117] Based on the above method, when detecting the position of the sliding switch in the sliding switch assembly, when the first detection circuit detects that the function selection device is currently in a non-functional segment selection state, the sliding switch position detection is performed by setting a second detection circuit different from the first detection circuit, and the sliding switch position is determined based on the obtained second detection signal, so that the problem that the sliding switch position cannot be determined by the functional segment selection state when the sliding switch and the function selection device are in poor contact can be effectively solved, while improving the robustness and accuracy of the sliding switch position detection.
[0118] Figure 6 FIG. 2 shows an exemplary flow chart of a process 200 of outputting a second detection signal through a second detection circuit according to an embodiment of the present disclosure. Figure 6 First, in step S201, each functional segment on the function selection device is charged.
[0119] The charging process may be implemented, for example, by a charging subcircuit integrated in the second detection circuit, or it may also be implemented by a charging subcircuit electrically connected to the outside of the second detection circuit. The embodiments of the present disclosure are not limited by the specific implementation of the charging process.
[0120] The charging process may be configured to charge each functional segment on the function selection device to a preset charging voltage. The charging voltage may be configured based on circuit characteristics and specific requirements, and the embodiments of the present disclosure are not limited to the specific voltage value of the preset charging voltage.
[0121] Then, in step S202, the charging and discharging process of each functional section on the function selection device is detected, and a corresponding detection charging and discharging time is generated.
[0122] The detection of the charging and discharging process of each functional section characterizes the time domain characteristics of the corresponding section when detecting the charging and discharging. The detection of the charging and discharging process can be started at the same time as the charging process, at which time it can detect the charging and discharging process of each functional section, and obtain the overall charging and discharging time of the functional section, and use it as the detection charging and discharging time.
[0123] In some embodiments, for example, the detected charge and discharge time can be converted into a detection charge and discharge signal so as to be subsequently output or processed. The embodiments of the present disclosure are not limited by the specific representation method of the detection charge and discharge time.
[0124] For example, the detection process can be implemented by a pulse counting method, such as counting the time of capacitor charging and discharging through a pulse counter, and representing the time amount by the digital quantity of the number of pulse signals. Therefore, corresponding to each functional section, a corresponding pulse signal amount is generated based on its charging and discharging time. At this time, the numerical value of the pulse signal amount is proportional to the charging and discharging time of each functional section; the detection process can also be implemented in other ways, and the embodiments of the present disclosure are not limited by the specific method used to detect the charging and discharging time.
[0125] Based on the above, it should be understood that the operations of steps S201 and S202 can be performed in parallel or in sequence, and no limitation is imposed on them herein.
[0126] In some embodiments, the charging process may be performed by Figure 4A The charging and discharging electronic circuit shown. The charging and discharging electronic circuit includes a capacitor C to be tested, a charging branch and a discharging branch connected in parallel with the capacitor to be tested. The charging branch and the discharging branch can be selected, for example, via a charge and discharge selection switch K, and switch to the discharging process after the charging process is completed, thereby facilitating the detection of the charging and discharging performance.
[0127] After the detected charge and discharge time is obtained, in step S203, the detected charge and discharge time is compared with a preset charge and discharge time threshold of each functional section, and a second detection signal is generated based on the comparison result.
[0128] Based on the above, in the present application, the functional circuit board is first charged by using a second detection circuit, and the charging and discharging process of each functional section is detected to obtain the detection charging and discharging time, and the detection charging and discharging time is compared with the preset charging and discharging time of each functional section to generate a second detection signal, so that when the sliding switch is not in contact with each functional section, based on detecting the equivalent capacitance charging and discharging characteristics of the sliding switch and each functional section, the position of the sliding switch can also be well detected, and the detection process has high robustness and detection accuracy.
[0129] In some embodiments, when the detected charge and discharge time of each functional section is less than or equal to a preset charge and discharge time threshold, a detection error signal is generated and outputted through the second detection circuit.
[0130] The situation where the detection charge and discharge time of each functional section is less than or equal to the preset charge and discharge time threshold indicates that the current sliding switch does not exist on any functional section in the function selection device, that is, the current sliding switch component is in an abnormal working state. The abnormal working state may be that the function selection device of the sliding switch component is not powered on, resulting in the user being unable to make a selection, or the sliding switch is severely worn or lost, resulting in the inability to make a selection at the current stage. The embodiments of the present disclosure are not limited by the specific abnormal content.
[0131] The function selection error signal indicates that the current sliding switch assembly is in an abnormal working state, and it may be, for example, an analog signal or a digital signal. The embodiments of the present disclosure are not limited by the specific type of the error selection signal.
[0132] Based on the above, when the detected charging and discharging time of each functional section is less than or equal to the preset charging and discharging time threshold, the second detection circuit is enabled to generate and output a detection error signal, so that the abnormal working state of the current sliding switch component can be promptly fed back to the micro control unit for subsequent processing.
[0133] In some embodiments, when the micro control unit receives a detection error signal, an alarm signal is generated by the micro control unit based on the detection error signal.
[0134] The alarm signal is intended to indicate that the current sliding switch assembly is in an abnormal working state. The alarm signal may be, for example, an analog signal or a digital signal. The alarm signal may be, for example, output to a user end or an external functional unit via a microcontroller unit to provide feedback to the user; or it may be transmitted to other subunits within the microcontroller unit, for example, it may be transmitted to an error screening subunit of the microcontroller unit for subsequent error detection and processing. The embodiments of the present disclosure are not limited by the type of the alarm signal and its output.
[0135] Based on the above, when the detection charge and discharge time of each functional section is less than or equal to the preset charge and discharge time threshold, the micro control unit receives the detection error signal and generates a corresponding alarm signal based on the error signal, so that the abnormal working state of the current sliding switch assembly can be promptly fed back to the user or other control units for subsequent processing.
[0136] According to another aspect of the present disclosure, a motor vehicle is provided, which includes the sliding switch assembly as described above, and the motor vehicle can execute the switch position detection method for the sliding switch assembly described above, realize the various functions described above, and can well realize the detection and response process of the sliding switch position in the sliding switch assembly, and has high detection accuracy and detection efficiency.
[0137] The present application uses specific words to describe the embodiments of the present application. For example, "first / second embodiment", "one embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or multiple times in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.
[0138] In addition, it will be appreciated by those skilled in the art that various aspects of the present application may be illustrated and described by a number of patentable categories or situations, including any new and useful process, machine, product or combination of substances, or any new and useful improvements thereto. Accordingly, various aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may all be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". In addition, various aspects of the present application may be represented as a computer product located in one or more computer-readable media, which includes computer-readable program code.
[0139] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the invention belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology and should not be interpreted in an idealized or extremely formal sense, unless explicitly defined as such herein.
[0140] The above is an explanation of the present invention and should not be considered as a limitation thereof. Although several exemplary embodiments of the present invention have been described, it will be readily appreciated by those skilled in the art that many modifications may be made to the exemplary embodiments without departing from the novelty and advantages of the present invention. Therefore, all such modifications are intended to be included within the scope of the present invention as defined in the claims. It should be understood that the above is an explanation of the present invention and should not be considered as being limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present invention is defined by the claims and their equivalents.
Claims
1. A sliding switch assembly, comprising a sliding switch and a function selection device, wherein the function selection device has a plurality of function sections, the sliding switch slides on the plurality of function sections to select corresponding function sections, the sliding switch assembly further comprising a switch detection device, the switch detection device comprising: a first detection circuit, which outputs a first detection signal, wherein the first detection signal indicates a state in which at least one functional section among a plurality of functional sections of the function selection device is selected or no functional section is selected, and the first detection signal is a signal generated based on detection of voltage characteristics; a micro control unit that receives the first detection signal and determines a position of the slide switch in the function selection device based on the first detection signal indicating selection of at least one of the plurality of function sections of the function selection device; a second detection circuit, which outputs a second detection signal, the second detection signal indicating the position of the slide switch in the function selection device, the second detection circuit being different from the first detection circuit and the second detection signal being a signal generated based on detection of capacitance characteristics; Wherein, when the first detection signal indicates that there is no function section selection state, the micro control unit controls the second detection circuit to operate, and determines the position of the sliding switch in the function selection device based on the second detection signal.
2. The slide switch assembly of claim 1, wherein: The function selection device is a function selection circuit board, and a plurality of function sections arranged on the function selection device are spaced apart from each other.
3. The slide switch assembly of claim 1, wherein: The first detection circuit is a voltage detection circuit, and the first detection circuit includes: a plurality of detection resistors, the plurality of detection resistors are connected in series with each other, and each of the plurality of detection resistors is connected to a corresponding functional segment on the function selection device; The first detection circuit generates and outputs a first detection signal based on the voltages of the plurality of detection resistors.
4. The slide switch assembly of claim 1, wherein: The second detection circuit is a capacitance detection circuit, and the second detection circuit includes: a pre-charging module, configured to charge each functional segment on the function selection device; A data acquisition module, which is configured to detect the charging and discharging process of each functional section on the function selection device and generate corresponding detection charging and discharging time; The second detection signal generating module is configured to compare the detected charge and discharge time with the preset charge and discharge time threshold of each functional section, and generate a second detection signal based on the comparison result.
5. The slide switch assembly of claim 4, wherein: When the detection charge and discharge time of each functional section is less than or equal to the preset charge and discharge time threshold, the second detection signal generation module generates and outputs a detection error signal.
6. The slide switch assembly of claim 5, wherein: When the micro control unit receives a detection error signal, the micro control unit will generate an alarm signal based on the detection error signal.
7. A switch position detection method for a sliding switch assembly according to any one of claims 1 to 6, the method comprising: Outputting the first detection signal through the first detection circuit, the first detection signal indicating the state of selection of at least one functional section among the plurality of functional sections of the function selection device or the state of no functional section selection, the first detection signal being a signal generated based on the detection of voltage characteristics; receiving the first detection signal by the microcontroller, and determining the position of the slide switch in the function selection device based on the first detection signal indicating the selection of at least one of the plurality of function sections of the function selection device; When the first detection signal indicates a non-function section selection state, the second detection circuit is controlled by the micro control unit to work, and a second detection signal is output through the second detection circuit, wherein the second detection signal indicates the position of the slide switch in the function selection device, the second detection circuit is different from the first detection circuit, and the second detection signal is a signal generated based on the detection of the capacitance characteristic; The second detection signal is received by the micro control unit, and the position of the slide switch in the function selection device is determined based on the second detection signal.
8. The switch position detection method according to claim 7, wherein: Outputting the second detection signal by the second detection circuit includes: charging each functional section on the function selection device; Detecting the charging and discharging process of each functional section on the function selection device and generating corresponding detection charging and discharging time; The detected charge and discharge time is compared with a preset charge and discharge time threshold of each functional section, and a second detection signal is generated based on the comparison result.
9. The switch position detection method according to claim 8 further comprises: When the detected charge and discharge time of each functional section is less than or equal to the preset charge and discharge time threshold, a detection error signal is generated and output.
10. The switch position detection method according to claim 9 further comprises: According to the detection error signal, a corresponding alarm signal is generated and output.
11. A motor vehicle comprising the sliding switch assembly according to any one of claims 1 to 6.
Citation Information
Patent Citations
Keyboard detection circuit and method thereof
CN101359034A
Pointer, position detection apparatus and position detection method
CN102147675A