CN109859978B - Rocker switch and vehicle with same - Google Patents

Rocker switch and vehicle with same Download PDF

Info

Publication number
CN109859978B
CN109859978B CN201910193682.5A CN201910193682A CN109859978B CN 109859978 B CN109859978 B CN 109859978B CN 201910193682 A CN201910193682 A CN 201910193682A CN 109859978 B CN109859978 B CN 109859978B
Authority
CN
China
Prior art keywords
circuit board
control chip
switch
assembly
rocker switch
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.)
Active
Application number
CN201910193682.5A
Other languages
Chinese (zh)
Other versions
CN109859978A (en
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.)
Beijing Foton Daimler Automobile Co Ltd
Original Assignee
Beijing Foton Daimler Automobile Co Ltd
Filing date
Publication date
Application filed by Beijing Foton Daimler Automobile Co Ltd filed Critical Beijing Foton Daimler Automobile Co Ltd
Priority to CN201910193682.5A priority Critical patent/CN109859978B/en
Publication of CN109859978A publication Critical patent/CN109859978A/en
Application granted granted Critical
Publication of CN109859978B publication Critical patent/CN109859978B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a rocker switch device and a vehicle with the rocker switch device, wherein the rocker switch device comprises a switch assembly and a mounting panel assembly, the switch assembly comprises at least one switch assembly, and each switch assembly is respectively assembled to a mounting part of the mounting panel assembly in an independently controllable manner; the mounting panel assembly comprises a first circuit board, a control chip is arranged on the first circuit board, each switch assembly comprises a rocker switch body and a second circuit board, the second circuit board is mounted on the first circuit board in a plugging mode, the second circuit board comprises a sampling resistor component and keys, the sampling resistor component is electrically connected to the control chip through the keys, two ends of the rocker switch body can be alternatively pressed down to trigger corresponding keys on the second circuit board to press and conduct AD conversion port current on the first circuit board control chip, and the control chip identifies selected key functions according to collected voltage signals and outputs the identified key functions in a corresponding message mode. The rocker switch device provided by the invention can be randomly plugged in and pulled out on line, and has high safety and intelligent control degree.

Description

Rocker switch and vehicle with same
Technical Field
The invention relates to a switch, in particular to a wane switch device capable of being randomly plugged in and out on line and a vehicle with the wane switch device.
Background
Along with the development of new vehicle types and super trucks of companies, the intelligent degree of the automobile is higher and higher, the intelligent control of a corresponding switch control system is also needed, and in order to realize the intelligent control of the rocker switch body capable of being randomly plugged in and out on line, the arrangement of the whole automobile switch system is optimized, so that the development of the rocker switch device capable of being randomly plugged in and out on line is urgent. The rocker switch device is applied, so that the intelligence and safety of the whole car are improved, and the competitiveness of the whole car is improved.
It is therefore desirable to have a solution that overcomes or at least alleviates at least one of the above-mentioned drawbacks of the prior art.
Disclosure of Invention
It is an object of the present invention to provide a rocker switch device that is freely pluggable on-line, overcoming or at least alleviating at least one of the above-mentioned drawbacks of the prior art.
In order to achieve the above object, the present invention provides a rocker switch device comprising a switch assembly and a mounting panel assembly, the switch assembly comprising at least one switch assembly, each of the switch assemblies being individually operatively mounted to a mounting portion of the mounting panel assembly; the mounting panel assembly comprises a first circuit board, a control chip is arranged on the first circuit board, each switch assembly comprises a rocker switch body and a second circuit board, the second circuit board is mounted on the first circuit board in a plug-in mode, the second circuit board comprises a sampling resistor component and keys, the sampling resistor component is electrically connected to the control chip through the keys, two ends of the rocker switch body are alternatively pressed down to trigger corresponding keys on the second circuit board to conduct current with the control chip, and the control chip identifies selected key functions according to collected voltage signals and outputs the identified key functions in a corresponding message mode.
Further, each second circuit board comprises two sampling resistor assemblies and two keys, wherein one sampling resistor assembly is connected through one key, and the other sampling resistor assembly is connected through the other key.
Further, the sampling resistor component comprises a plurality of resistors which are preset in resistance values and are respectively connected with 1-path AD sampling circuit, one end of each resistor is connected with the key, and the other end of each resistor is connected to the ground level; one end of the key is connected to the sampling resistor component, and the other end of the key is connected to the AD digital-to-analog conversion signal acquisition end of the control chip.
Further, each of the sampling resistor assemblies includes three of the resistors.
Further, the number of the switch assemblies is 4.
Further, the control chip outputs a message corresponding to the key function through the LIN transceiver.
Further, the first circuit board is also provided with plug interfaces with the same number as the switch assemblies, and each plug interface is provided with a signal acquisition end of the control chip; the sampling resistor assembly is inserted into the plug-in port in a matching way, one sampling resistor assembly is fixedly arranged in each of two ends of the rocker switch body, and the sampling resistor assembly at the pressed end of the rocker switch body can be conducted with the corresponding signal acquisition end in current.
Further, the mounting panel assembly further comprises a mounting panel and a bottom cover, the first circuit board is inserted on the bottom cover, the mounting panel is buckled on the bottom cover, the mounting panel is provided with mounting cavities which are arranged by a partition board in a separated mode and have the same number as the switch assemblies, one of the mounting cavities is assembled with one of the switch assemblies, and each of the switch assemblies can be independently controlled.
The invention also provides a vehicle comprising a rocker switch device as described above.
The invention realizes the random on-line plug of the rocker switch for the first time, can change the installation position on line by the user at will, the host factory can change the switch on line at will, expand the function such as the switch, etc., will improve the intelligence, security of the whole car, promote the competition of the whole car.
Drawings
Fig. 1 is a schematic structural diagram of an embodiment of a rocker switch device according to the present invention;
FIG. 2 is a schematic structural view and an exploded view of a mounting panel assembly of the rocker switch apparatus of FIG. 1;
Fig. 3 is a structural schematic view and an exploded schematic view of a split structure of a LIN line rocker switch body in the rocker switch device shown in fig. 1;
Fig. 4 is a schematic circuit diagram of the rocker switch apparatus shown in fig. 1;
Fig. 5 is a schematic control flow diagram of the rocker switch apparatus shown in fig. 1.
Detailed Description
In the drawings, the same or similar reference numerals are used to denote the same or similar elements or elements having the same or similar functions. Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
In the description of the present invention, the terms "center", "longitudinal", "lateral", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate an orientation or a positional relationship based on that shown in the drawings, only for convenience of description and simplification of the description, and do not indicate or imply that the apparatus or element to be referred to must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the scope of protection of the present invention.
As shown in fig. 1 to 4, the rocker switch device provided in this embodiment includes a switch assembly including at least one switch assembly 2, and a mounting panel assembly 1, each switch assembly 2 being individually mounted to a mounting portion of the mounting panel assembly 1 in an independently controllable manner. By "independently manipulable" is understood herein that each switch assembly 2 may be individually lowered or raised.
The mounting panel assembly 1 includes a first circuit board 11, a mounting panel 12, a bottom cover 13, and a cartridge clip 14, wherein:
The first circuit board 11 is inserted on the bottom cover 13, and the bottom of the mounting panel 12 is fastened on the bottom cover 13. The upper portion of the mounting panel 12 is provided with a plurality of mounting cavities 122 spaced apart by partitions 121 in order in the left-right direction perpendicular to the up-down direction. The mounting panel 12 is provided on both sides thereof with the cartridge snap 14, and the cartridge snap 14 is pushed down and lifted up when the cartridge snap is removed, so that the rocker switch device can be easily removed from the instrument panel. The number of remaining mounting cavities 122 is the same as the number of switch assemblies 2, and one mounting cavity 122 is fitted with one switch assembly 2, so that each switch assembly 2 can be pressed down or up individually.
The first circuit board 11 is provided with a control chip ECU, the control chip ECU can identify the unique key function represented by 3 different identification resistor combinations, and the signal acquisition end of the control chip ECU is an AD conversion port ADC used for carrying out A/D conversion on the acquired signals and inputting the acquired signals to the control chip ECU. The first circuit board 11 is further provided with plug interfaces 111 the same as the switch assemblies 2 in number, and each plug interface 111 is provided with a signal acquisition end ADC of a control chip ECU. The first circuit board 11 has ESD protection and short-circuit protection functions, so that hot plug of the function key can be realized without updating software. The model of the control chip ECU in this embodiment is STM8AF5289TA, with 16 ADC ports.
Each of the switch assemblies 2 includes a rocker switch body 21 and a second wiring board 22, and the rocker switch body 21 and the second wiring board 22 are assembled into an integral structure. The second wiring board 22 is mounted to the first wiring board 11 in a plugging manner, so that the rocker switch body 21 of an integral structure with the second wiring board 22 is assembled to the first wiring board 11. Wherein:
The second circuit board 22 includes a sampling resistor component 221 and a key 222, wherein two ends of the rocker switch body 21 are respectively and fixedly provided with the sampling resistor component 221, and the plugging end of the sampling resistor component 221 is adaptively inserted into the plugging port 111 on the first circuit board 11 through the key 222. The sampling resistor assembly 221 is electrically connected to the control chip ECU through a key 222, and both ends of the rocker switch body 21 are alternatively pressed. When one end of the rocker switch body 21 is pressed, the sampling resistor component 221 at the end is conducted with the corresponding signal acquisition end ADC current on the control chip ECU, and the control chip ECU identifies the selected key function according to the acquired voltage signal and outputs the identified key function in a corresponding message mode.
In one embodiment, each sampling resistor assembly 221 corresponds to a different key function. Each second circuit board 22 includes two sampling resistor assemblies 221 and two keys 222, wherein one sampling resistor assembly 221 is connected with one key 222, and the other sampling resistor assembly 221 is connected with the other key 222. In this way, one key 222 controls one sampling resistor assembly 221, and controls the sampling resistor assembly 221 independently, so that the sampling resistor assembly 221 with corresponding functions can be accurately controlled through the key 222 according to the function requirements.
In one embodiment, each signal acquisition terminal of the control chip ECU has a multi-path signal acquisition circuit, such as the 3-path AD sampling circuit shown in fig. 4. The sampling resistor component 221 comprises a plurality of resistors with preset resistance values, wherein the resistors are respectively connected into the 1-path AD sampling circuit, and the resistance value of each resistor is preset according to requirements, so that the specific key function of the sampling resistor component 221 is realized. In this embodiment, the resistor uses a thick acoustic resistor with an accuracy of 1%. One end of the sampling resistor component 221 is connected with the key 222, and the other end is connected with the ground level. One end of the key is connected with the sampling resistor component 221, and the other end is connected with the signal acquisition end of the control chip ECU. When the key 222 corresponding to the sampling resistor component 221 is closed, the sampling resistor component 221 and the signal acquisition end of the control chip ECU are conducted in current, so that the signal acquisition end of the control chip ECU can identify and output the key function of the sampling resistor component 221.
In one embodiment, each sampling resistor assembly 221 includes three resistors, and the three resistors have different resistance values, which can be preset according to the difference of the key functions, and identify the unique key function of the switch. The design ensures that a user can randomly replace the switch installation position on line, a host factory can randomly replace the switch on line, the functions of the switch are expanded, and the like, so that the intelligence and the safety of the whole vehicle are improved, and the competitiveness of the whole vehicle is improved. For example: when the pull-up voltage is +5V, the pull-up resistance is 2.7KΩ, and the sampling resistance of the cab lighting switch is designed to be 4KΩ, 4KΩ or 108KΩ, the partial pressure is 3V, 3V or 4V, the setting of the partial pressure corresponds to a key function, and a table corresponding to the partial pressure or resistance is compiled, so that the switch can be determined to be the cab lighting switch according to the table. No matter where the physical position of the switch is or how the switch is replaced, the voltage division on the 3 paths of resistors is constant as long as the resistance value in the switch is constant, and the control chip ECU can find out the function of the switch according to the corresponding table. This is also a function that is not available in the LIN switch currently on the market, and this is a method of marking the function with a resistance voltage division and recording the function table by a program, which is also a low cost method.
In one embodiment, the rocker switch device is a four-way switch, and the number of switch assemblies 2 is 4. Each switch assembly 2 is provided with two keys, if 32 switches are expanded according to the maximum requirement of each vehicle, 64 function keys are needed, and the number of the designed AD sampling resistors is needed to meet 64 different voltage combination functions. Every 3 resistors form a sampling resistor component of a key, and a switch assembly is provided with two keys, so that 6 sampling resistors are arranged inside the switch assembly. Because the two buttons of the rocker switch body cannot be pressed down simultaneously, 6 sampling resistors can be input to the control chip ECU through the same three paths of A/D respectively every 3 groups, the voltage values of the sampling resistors can be set to be 4 voltage levels which are 1V/2V/3V/4V respectively, and therefore, if the 3 resistors are used as one button, 4 3 =64 functions can be realized. Each three groups of AD conversion ports of the control chip ECU store 64 functional states in the control chip ECU, and after corresponding functional voltage values are detected, the control chip ECU sends corresponding messages to set relevant functional indication positions in a LIN communication mode. Of course, the number of switch assemblies 2 may also be adjusted as desired.
In addition to the key detection and recognition functions described above, the rocker switch device provided in this embodiment further has a key arbitrary insertion function, and the function is specifically described as follows:
the key structure adopts a function of random insertion and dialing, and each 3 groups of AD conversion port states of the control chip ECU correspond to any one of 64 functional states of the switch stored in the software, and each switch memorizes a certain working state in the corresponding 64 functional states according to the resistance values of 3 groups of resistors, so that each functional key can be randomly installed in a main board interface to realize different functional combinations; the control chip ECU scans each group of A/D ports in real time, so that the change of the A/D sampling value can be judged at any time, and the switches with different functions of different resistance combinations can be identified.
In one embodiment, the control chip ECU outputs a message corresponding to the key function through the LIN transceiver 3. In this embodiment, the LIN transceiver model is TJA1021. The rocker switch device that this embodiment provided has LIN communication function, therefore rocker switch device only has 4 pencil, is respectively: a power line (BAT), a backlight power line, a ground line (GND) and a LIN communication line (LIN BUS). After the different switch assemblies 2 are pressed, the control chip ECU samples a unique AD conversion port state according to different resistance values of sampling resistors in the switch assemblies 2, the state corresponds to one of 64 key function states stored in software, and different states send different message information to the LIN communication master node. After the switch is plugged into and pulled out of the moving position, the corresponding switch is still pressed to acquire the unique coded AD conversion port state, and the message of the function information is sent.
The rocker switch device provided in this embodiment further includes a voltage regulator 4, and the model of the voltage regulator 4 is S-19200a50H-V5T2U.
The invention also provides a vehicle comprising the rocker switch device according to the above embodiments, wherein the LIN transceiver 3 in the rocker switch device outputs the key function message to a vehicle controller on the vehicle. The automatic control logic flow of the LIN switch is shown in fig. 5:
After starting to power up, the switch performs system initialization (respectively initializing clock, ROM, LIN bus and other hardware), and determines whether the initialization is successful, if the initialization is unsuccessful, fault processing is performed.
After the initialization is successful, diagnosis related circuits (such as ROM, RAM, LIN bus, voltage and other hardware circuits) are started, such as diagnosis of faults and fault processing.
After fault diagnosis, the corresponding EEPROM accessed value is read, and if the setting in the factory is not performed or lost, the relevant parameters in the factory are set.
And then performing the execution of the main task and the scheduling of related sub-tasks.
And when the main task is executed, entering sleep according to the sleep condition. Judging whether the fault occurs according to the fault condition and processing. And receiving the relevant LIN signal for corresponding functional processing.
Finally, it should be pointed out that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting. Those of ordinary skill in the art will appreciate that: the technical schemes described in the foregoing embodiments may be modified or some of the technical features may be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A rocker switch device, characterized by comprising a switch assembly and a mounting panel assembly (1), said switch assembly comprising at least one switch assembly (2), each of said switch assemblies (2) being individually operatively mounted to a mounting portion of said mounting panel assembly (1);
Wherein the mounting panel assembly (1) comprises a first circuit board (11), a control chip (ECU) is arranged on the first circuit board (11), each switch assembly (2) comprises a rocker switch body (21) and a second circuit board (22), the second circuit board (22) is mounted on the first circuit board (11) in a plugging manner, the second circuit board (22) comprises a sampling resistor component (221) and a key (222), the sampling resistor component (221) is connected to the control chip (ECU) through the key (222), two ends of the rocker switch body (21) can be selectively pressed to trigger the corresponding key (222) on the second circuit board (22) to be in current conduction with an AD conversion port (ADC) on the control chip (ECU), the control chip (ECU) identifies the selected key function according to the collected voltage signal and outputs the identified key function in a corresponding message manner,
The sampling resistor assembly (221) comprises a plurality of resistors with preset resistance values and respectively connected with 1-path AD sampling circuit, one end of each resistor is connected with the key (222), and the other end of each resistor is connected to the ground level; one end of the key is connected with the sampling resistor component, the other end is connected with the AD digital-to-analog conversion signal acquisition end of the control chip (ECU),
Each sampling resistor assembly (221) comprises three resistors, the resistance values of the three resistors are different, the three resistors can be preset according to the difference of key functions, the unique key function of the switch is identified,
The control chip (ECU) can identify the unique key function represented by the combination of 3 different identification resistors, and the signal acquisition end of the control chip (ECU) is an AD conversion port (ADC) for carrying out A/D conversion on the acquired signals and inputting the acquired signals to the control chip (ECU).
2. The rocker switch device of claim 1, wherein each of the second circuit boards (22) comprises two of the sampling resistor assemblies (221) and two of the keys (222), wherein one of the sampling resistor assemblies (221) is connected to one of the keys (222), and wherein the other of the sampling resistor assemblies (221) is connected to the other of the keys (222).
3. The rocker switch device according to any of claims 1 to 2, wherein the number of switch assemblies (2) is 4.
4. A rocker switch device according to claim 3, characterized in that said control chip (ECU) outputs a message corresponding to said key function via a LIN transceiver (3).
5. A rocker switch device according to claim 3, wherein the first circuit board (11) is further provided with the same number of plug interfaces (111) as the switch assemblies (2), and each plug interface (111) is provided with a signal acquisition end (ADC) of the control chip (ECU); the sampling resistor assembly (221) is inserted into the plug-in port (111) in an adaptive manner, two ends of the rocker switch body (21) are respectively internally and fixedly provided with one sampling resistor assembly (221), and the sampling resistor assembly (221) at the pressed end part of the rocker switch body (21) can be in current conduction with the corresponding signal acquisition end (ADC).
6. The rocker switch device according to claim 5, wherein the mounting panel assembly (1) further comprises a mounting panel (12) and a bottom cover (13), the first circuit board (11) is inserted on the bottom cover (13), the mounting panel (12) is fastened on the bottom cover (13), the mounting panel (12) has mounting cavities (122) which are arranged in a spaced manner by a partition (121) and have the same number as the switch assemblies (2), and one of the mounting cavities (122) is provided with one of the switch assemblies (2) so that each of the switch assemblies (2) can be independently operated.
7. A vehicle comprising a rocker switch arrangement according to any one of claims 1-6.
CN201910193682.5A 2019-03-14 Rocker switch and vehicle with same Active CN109859978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910193682.5A CN109859978B (en) 2019-03-14 Rocker switch and vehicle with same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910193682.5A CN109859978B (en) 2019-03-14 Rocker switch and vehicle with same

Publications (2)

Publication Number Publication Date
CN109859978A CN109859978A (en) 2019-06-07
CN109859978B true CN109859978B (en) 2024-05-31

Family

ID=

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012121520A (en) * 2010-12-10 2012-06-28 Jvc Kenwood Corp On-board device and key identification method
CN102868392A (en) * 2011-07-06 2013-01-09 广东万和新电气股份有限公司 Portability key circuit
CN103095307A (en) * 2013-01-18 2013-05-08 深圳市芯海科技有限公司 Matrix switch key
JP2014209288A (en) * 2013-04-16 2014-11-06 船井電機株式会社 Key input detection circuit and key input detection system
CN204045475U (en) * 2014-09-10 2014-12-24 慈溪市腾辉汽车零部件有限公司 A kind of tetrad rocker switch
CN104469346A (en) * 2014-11-28 2015-03-25 青岛海信电器股份有限公司 Signal output circuit and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012121520A (en) * 2010-12-10 2012-06-28 Jvc Kenwood Corp On-board device and key identification method
CN102868392A (en) * 2011-07-06 2013-01-09 广东万和新电气股份有限公司 Portability key circuit
CN103095307A (en) * 2013-01-18 2013-05-08 深圳市芯海科技有限公司 Matrix switch key
JP2014209288A (en) * 2013-04-16 2014-11-06 船井電機株式会社 Key input detection circuit and key input detection system
CN204045475U (en) * 2014-09-10 2014-12-24 慈溪市腾辉汽车零部件有限公司 A kind of tetrad rocker switch
CN104469346A (en) * 2014-11-28 2015-03-25 青岛海信电器股份有限公司 Signal output circuit and device

Similar Documents

Publication Publication Date Title
EP1505614B1 (en) A modular switch and control system for use in a motor vehicle
EP2103476A2 (en) Head unit for a motor vehicle
CN110569207A (en) Interface multiplexing device and vehicle-mounted equipment
CN109859978B (en) Rocker switch and vehicle with same
CN113428090B (en) Switch module
CN111024114A (en) Method and circuit for vehicle navigation mcu self-adaptive learning square control
KR101209799B1 (en) Switch identification system for vehicle
US20040199701A1 (en) Bus system and method for exchanging data
CN103268647A (en) Remote driving data recorder and implementation method thereof
CN103568962A (en) Automobile rearview mirror control system based on CAN (controller area network) bus
CN1808901B (en) Methods and systems for robust switching using multi-state switch contacts
MXPA04006251A (en) Configurable switch array.
CN103392303A (en) Receiving end detection method, detection circuit, optical module and system
CN113050506A (en) Sampling circuit of bus switch
US6812589B1 (en) Circuit for activating a CAN (car area network) bus control unit
US7647147B2 (en) Multi-platform data communication interface with self-recognizing and self-learning of the host vehicle
CN209526039U (en) A kind of rocker switch and the vehicle with it
CN204037443U (en) A kind of sound equipment key circuit of vehicle steering
CN111030722B (en) Communication circuit and communication method for battery management system
CN210575599U (en) Vehicle switch with identity code
CN111959276A (en) Automobile display system interface linkage circuit and method and automobile
CN109859978A (en) A kind of rocker switch and the vehicle with it
US7289333B2 (en) Apparatus and method for providing input/output voltage signals between connected circuit boards
CN219431638U (en) Vehicle door control equipment and vehicle
CN216528546U (en) Car steering wheel spoke panel switch assembly convenient to operation

Legal Events

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