Summary of the invention
The technical problem to be solved in the present invention is, can't carry out the defective that good keypress function is provided with at the bearing circle button of different automobile types at the bearing circle keypress function learning system of prior art, a kind of bearing circle keypress function learning method, system and corresponding inter-vehicle information system that can carry out the pull-up resistor adjustment at the bearing circle button resistance of different automobile types automatically is provided.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of bearing circle keypress function learning method, comprising step: S1, determine and pull-up resistor that bearing circle button resistance is complementary; The sampled voltage of S2, sample direction dish different key resistance; S3, function corresponding is set on the described bearing circle button according to described sampled voltage; Described step S1 comprises: S11, gather the described sampled voltage of each button of bearing circle when using different pull-up resistor successively, obtain collection result; S12, determine the pull-up resistor that is complementary with described bearing circle button resistance according to described collection result.
In bearing circle keypress function learning method of the present invention, described step S11 comprises: at least one work in S111, a plurality of pull-up resistor circuit of control; S112, gather the described sampled voltage of each button of bearing circle when corresponding pull-up resistor circuit working successively, obtain collection result.
In bearing circle keypress function learning method of the present invention, described step S111 is: by controlling at least one work controlled in a plurality of pull-up resistor circuit that is switched on or switched off of corresponding switching valve.
In bearing circle keypress function learning method of the present invention, described step S12 comprises: S121, obtain the variance yields of the sampled voltage of cooresponding each button of bearing circle of each pull-up resistor according to described collection result; S122, determine the pull-up resistor of the pairing pull-up resistor of maxim in the described variance yields for being complementary with described bearing circle button resistance.
The invention still further relates to a kind of bearing circle keypress function learning system, comprise initialization module, described initialization module comprises: the collecting unit of gathering the described sampled voltage of each button of bearing circle when using different pull-up resistor successively; And determine the pull-up resistor that is complementary with bearing circle button resistance order unit really according to the collection result of described collecting unit; Described bearing circle keypress function learning system also comprises: the button voltage sample module that is used for the sampled voltage of sample direction dish different key resistance; And be used for function corresponding being set to function setting module on the described bearing circle button according to described sampled voltage.
In bearing circle keypress function learning system of the present invention, described collecting unit comprises: a plurality of pull-up resistor circuit; Control the control subelement of at least one work in described a plurality of pull-up resistor circuit; And the collection subelement of gathering the described sampled voltage of each button of bearing circle when corresponding pull-up resistor circuit working successively.
In bearing circle keypress function learning system of the present invention, described pull-up resistor circuit comprises switching valve, and described control subelement is by controlling at least one work controlled in a plurality of pull-up resistor circuit that is switched on or switched off of corresponding switching valve.
In bearing circle keypress function learning system of the present invention, described determining unit comprises: the computation subunit of variance yields that obtains the sampled voltage of cooresponding each button of bearing circle of each pull-up resistor according to the collection result of described collecting unit; And determine that the pairing pull-up resistor of maxim in the described variance yields is the pull-up resistor that is complementary with described bearing circle button resistance stator unit really.
The invention still further relates to a kind of inter-vehicle information system that uses above-mentioned bearing circle keypress function learning method travel direction dish keypress function study.
Implement bearing circle keypress function learning method of the present invention, system and corresponding inter-vehicle information system, has following beneficial effect: can carry out the adjustment of pull-up resistor at the bearing circle button resistance of different automobile types automatically, avoid existing steering wheel keypress function learning system because the bearing circle button resistance of different automobile types differs greatly to cause and to have carried out the defective that good keypress function is provided with at the bearing circle button of different vehicles.
The specific embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In the diagram of circuit of first preferred embodiment of bearing circle keypress function learning method of the present invention shown in Figure 1, described bearing circle keypress function learning method starts from step 100, come step 101 subsequently, gather the described sampled voltage of each button of bearing circle when using different pull-up resistor successively, obtain collection result; Come step 102 subsequently, determine the pull-up resistor that is complementary with described bearing circle button resistance according to described collection result; Come step 103 subsequently, the sampled voltage of sample direction dish different key resistance is come step 104 subsequently, according to described sampled voltage function corresponding is set on the described bearing circle button; This method ends at step 105 at last.Bearing circle keypress function learning method of the present invention, in bearing circle keypress function learning system, be provided with a plurality of pull-up resistors, inter-vehicle information system is being installed to corresponding vehicle when getting on, adopt this method to determine the pull-up resistor that is complementary with bearing circle button resistance earlier, the pull-up resistor that is complementary with bearing circle button resistance of sampled voltage use when determine using which pull-up resistor learn as the bearing circle keypress function, make and to select suitable pull-up resistor at the bearing circle button resistance of different automobile types, the divider resistance that uses during as sampled voltage, like this can be better distinguish different bearing circle buttons, avoid because sampled voltage is too little can't normally sample or close can't the differentiation of sampled voltage causes function button that mistake is set by sampled voltage.
In the diagram of circuit of second preferred embodiment of bearing circle keypress function learning method of the present invention shown in Figure 2, described bearing circle keypress function learning method starts from step 200, come step 201 subsequently, control at least one work in a plurality of pull-up resistor circuit; Come step 202 subsequently, gather the described sampled voltage of each button of bearing circle when corresponding pull-up resistor circuit working successively, obtain collection result; Come step 203 subsequently, determine the pull-up resistor that is complementary with described bearing circle button resistance according to described collection result; Come step 204 subsequently, the sampled voltage of sample direction dish different key resistance is come step 205 subsequently, according to described sampled voltage function corresponding is set on the described bearing circle button; This method ends at step 206 at last.Thereby bearing circle keypress function learning method of the present invention obtains differentiable sampled voltage and obtains corresponding pull-up resistor by detect the sampled voltage that produces when using different pull-up resistor circuit, has guaranteed the validity of the pull-up resistor selected for use.In Fig. 3, by controlling at least one work that being switched on or switched off of corresponding switching valve controlled in a plurality of pull-up resistor circuit, the switching of convenient like this pull-up resistor.
In the diagram of circuit of the 4th preferred embodiment of bearing circle keypress function learning method of the present invention shown in Figure 4, described bearing circle keypress function learning method starts from step 400, come step 401 subsequently, gather the described sampled voltage of each button of bearing circle when using different pull-up resistor successively, obtain collection result; Come step 402 subsequently, obtain the variance yields of the sampled voltage of cooresponding each button of bearing circle of each pull-up resistor according to described collection result; Come step 403 subsequently, determine that the pairing pull-up resistor of maxim in the described variance yields is the pull-up resistor that is complementary with described bearing circle button resistance; Come step 404 subsequently, the sampled voltage of sample direction dish different key resistance is come step 405 subsequently, according to described sampled voltage function corresponding is set on the described bearing circle button; This method ends at step 406 at last.Calculate the variance yields or the mean square deviation of the sampled voltage of cooresponding each button of bearing circle of different pull-up resistors, can the sampled voltage of the bearing circle button resistance of every kind of vehicle comprehensively be calculated like this, no matter the bearing circle button is many or less, button resistance difference is big or little can select optimally, the pull-up resistor of sampled voltage difference maximum is as the pull-up resistor of the bearing circle keypress function study usefulness that finally is used for this vehicle.
The invention still further relates to a kind of bearing circle keypress function learning system, in the structural representation of first preferred embodiment of bearing circle keypress function learning system of the present invention shown in Figure 5, described bearing circle keypress function learning system comprises initialization module 1, button voltage sample module 2 and function setting module 3, and button voltage sample module 2 is used for the sampled voltage of sample direction dish different key resistance; Function setting module 3 is used for according to sampled voltage function corresponding being set to the bearing circle button; Initialization module 1 comprises collecting unit 11 and determining unit 12, collecting unit 11 is used for gathering successively the described sampled voltage of each button of bearing circle when using different pull-up resistor, and determining unit 12 is used for the pull-up resistor that collection result is determined and bearing circle button resistance is complementary according to collecting unit 11.Bearing circle keypress function learning system of the present invention is provided with a plurality of pull-up resistors, inter-vehicle information system is being installed to corresponding automobile when getting on, the pull-up resistor that initialization module 1 is determined earlier and bearing circle button resistance is complementary, deterministic process comprises: collecting unit 11 is gathered the sampled voltage of each button of bearing circle when using different pull-up resistor successively, the pull-up resistor that is complementary with bearing circle button resistance of sampled voltage use when determining unit 12 is determined to use which pull-up resistor learn as the bearing circle keypress function, make and to select suitable pull-up resistor at the bearing circle button resistance of different automobile types, the divider resistance that uses during as sampled voltage, can better distinguish different bearing circle buttons by sampled voltage like this, avoid because sampled voltage is too little can't normally sample or close can't the differentiation of sampled voltage causes function button that mistake is set.After suitable pull-up resistor is determined, can use the function study of button voltage sample module 2 and function setting module 3 travel direction dish buttons.
In the structural representation of second preferred embodiment of bearing circle keypress function learning system of the present invention shown in Figure 6, collecting unit 11 comprises a plurality of pull-up resistor circuit 111, control subelement 112 and gathers subelement 113, control subelement 112 is used for controlling at least one work of a plurality of pull-up resistor circuit 111, gathers subelement 113 and is used for gathering successively the described sampled voltage of each button of bearing circle when corresponding pull-up resistor circuit 111 is worked.Thereby control subelement 112 and gather sampled voltage that subelement 113 produces when detecting the different pull-up resistor of use and obtain differentiable sampled voltage and obtain corresponding pull-up resistor has guaranteed the validity of the pull-up resistor selected for use.Described pull-up resistor circuit 111 comprises switching valve, and control subelement 112 is by controlling at least one work that being switched on or switched off of corresponding switching valve controlled in a plurality of pull-up resistor circuit 111, the switching of convenient like this pull-up resistor.
In the structural representation of the 3rd preferred embodiment of bearing circle keypress function learning system of the present invention shown in Figure 7, determining unit 12 comprises computation subunit 121 and definite subelement 122, computation subunit 121 is used for obtaining according to the collection result of described collecting unit 11 variance yields of the sampled voltage of cooresponding each button of bearing circle of each pull-up resistor, the pull-up resistor that uses when determining the pairing pull-up resistor of maxim that subelement 122 is used for determining described variance yields for the described sampled voltage of sampling.Computation subunit 121 is calculated the variance yields or the mean square deviation of the sampled voltage of cooresponding each button of bearing circle of different pull-up resistors, can the sampled voltage of the bearing circle button resistance of every kind of vehicle comprehensively be calculated like this, no matter the bearing circle button is many or less, the big or little definite subelement 122 of button resistance difference can select optimally, the pull-up resistor of sampled voltage difference maximum is as the pull-up resistor of the bearing circle keypress function study usefulness that finally is used for this vehicle.
The workflow of bearing circle keypress function learning system of the present invention is described below by the circuit diagram of the preferred embodiment of bearing circle keypress function learning system of the present invention shown in Figure 8.
As shown in Figure 8, this bearing circle keypress function learning system has three pull-up resistor R34=470 ohms, R13=2.2K ohm and R3=22K ohms.Wherein R34 is switched on or switched off Control work (when switching valve Q1 connects by switching valve Q1, resistance R 34 is as pull-up resistor work (approximating the resistance of resistance R 34) after in parallel with resistance R 3), R13 is switched on or switched off Control work (when switching valve Q2 connects by switching valve Q2's, resistance R 13 is as pull-up resistor work (approximating the resistance of resistance R 13) after in parallel with resistance R 3), when switching valve Q1 and switching valve Q2 closed, resistance R 3 was separately as pull-up resistor work.Certain bearing circle keypress function learning system of the present invention also can be provided with greater than three pull-up resistors, the pull-up resistor group that constitutes by the combination between the different pull-up resistors (connection in series-parallel between the pull-up resistor) also can be equivalent to a pull-up resistor job simultaneously, for example when the switching valve Q1 among Fig. 8 and switching valve Q2 all connect, be equivalent to resistance R 34 and resistance R 13 parallel connections, at this moment pull-up resistance values is about 390 ohm.This bearing circle keypress function learning system is works as follows:
1. the intelligent steering wheel learning functionality on the startup inter-vehicle information system;
2. press first button of bearing circle;
3. circuit is connected, bearing circle first button resistance and pull-up resistor dividing potential drop, and the ratio of the first button resistance and pull-up resistor is different can to produce different voltage distribution;
4. the AD acquisition port of collecting unit 11 collects the aanalogvoltage of each button resistance of bearing circle, converts aanalogvoltage to digital voltage and notes;
5. control subelement 112 meetings and control realization tertiary voltage collections (being respectively switching valve Q1 connection switching valve Q2 disconnection, switching valve Q2 connection switching valve Q1 disconnection, switching valve Q1 and switching valve Q2 all disconnects);
6. (step 3-step 5) finishes until all button sampled voltage collections subsequently second button of bearing circle to be carried out same operation;
7. the pull-up resistor that uses when determining unit 12 is determined sampled voltage by the voltage acquisition result;
8. press the function key in the inter-vehicle information system.
9. function setting module 3 is mapped the sampled voltage of bearing circle button resistance and the function key of inter-vehicle information system, and this key of next time pressing bearing circle is the function key that just is equivalent to press inter-vehicle information system.
When carrying out the sampled voltage collection, press first direction dish button, control subelement 112 can collect 3 different magnitudes of voltage according to three different pull-up resistance values with collection subelement 113, and in like manner, the study of second direction dish button also has 3 different magnitudes of voltage.At this time just have such class value:
Computation subunit 121 can be calculated the variance of the magnitude of voltage of each button when using each pull-up resistor, determine magnitude of voltage (Ua1, the Ua2 of each button when subelement 122 comparison pull-up resistors are got 22K ... Uan) variance, magnitude of voltage (Ub1, the Ub2 of each button when pull-up resistor is got 2.2K ... the magnitude of voltage of each button (Uc1, Uc2 when variance Ubn) and pull-up resistor are got 470 Ω ... Ucn) variance, if the variance of the magnitude of voltage of each button is maximum during 22K, determine that so the pull-up resistance values that subelement 122 will this car is set to 22K.Around this principle, bearing circle keypress function learning system of the present invention can adapt to all kinds of different vehicles.Because the button resistance of the different styles of existing automobile is all different, for example:
|
A last song |
Next song |
V+ |
V- |
Pattern |
Quiet |
On draw |
Toyota |
0Ω |
330Ω |
1K |
3.2K |
|
|
2.2K |
The Mazda |
320Ω |
563Ω |
147.4Ω |
54.4Ω |
1.038K |
2.03K |
470Ω |
On the automobile of Toyota, bearing circle keypress function learning system can adopt the pull-up resistor of 2.2K ohm automatically like this, and on the automobile of Mazda, bearing circle keypress function learning system can adopt 470 ohm pull-up resistor automatically.Avoided existing steering wheel keypress function learning system and can't carry out the defective that good keypress function is provided with at the bearing circle button of different vehicles because the bearing circle button resistance of different automobile types differs greatly to cause.
The above only is embodiments of the invention; be not so limit claim of the present invention; every equivalent structure transformation that utilizes specification sheets of the present invention and accompanying drawing content to be done, or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.