CN114312635B - Method and device for adjusting increment parameters of equipment, storage medium and electronic equipment - Google Patents

Method and device for adjusting increment parameters of equipment, storage medium and electronic equipment Download PDF

Info

Publication number
CN114312635B
CN114312635B CN202011055899.9A CN202011055899A CN114312635B CN 114312635 B CN114312635 B CN 114312635B CN 202011055899 A CN202011055899 A CN 202011055899A CN 114312635 B CN114312635 B CN 114312635B
Authority
CN
China
Prior art keywords
sequence
target
adjusting
pulse
parameter
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
CN202011055899.9A
Other languages
Chinese (zh)
Other versions
CN114312635A (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.)
Great Wall Motor Co Ltd
Original Assignee
Great Wall Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Great Wall Motor Co Ltd filed Critical Great Wall Motor Co Ltd
Priority to CN202011055899.9A priority Critical patent/CN114312635B/en
Publication of CN114312635A publication Critical patent/CN114312635A/en
Application granted granted Critical
Publication of CN114312635B publication Critical patent/CN114312635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present disclosure relates to a method, an apparatus, a storage medium and an electronic device for adjusting an increment parameter of a device, wherein the method includes: periodically generating waveform signals according to the adjustment operation of a user on target equipment, and acquiring a preset number of continuous pulse signals corresponding to the waveform signals in each period; and determining a proper coding pulse sequence from a preset number of continuous pulse signals, and adjusting the increment parameter of the target equipment according to the coding pulse sequence. By adopting the scheme, the actual adjusting operation can be ensured to be consistent with the expected adjusting operation of the user, the problem of error adjusting operation is avoided, and the user adjusting operation experience is improved.

Description

Method and device for adjusting increment parameters of equipment, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of device control, and in particular, to a method, an apparatus, a storage medium, and an electronic device for adjusting a device increment parameter.
Background
With the continuous progress of technology, functions to be implemented by vehicle electronic devices are more and more complex, wherein an encoder is used as a common electronic material of the vehicle electronic devices, and is often used for adjusting incremental parameters of target devices such as volume of sound equipment, air volume of air conditioning equipment, frequency of radio equipment and the like in a vehicle.
In the related art, the encoder may periodically generate a waveform signal according to an adjustment operation of the user on the target device, determine a coded pulse sequence according to the waveform signal in each period, and increase or decrease incremental parameters such as volume, air volume, frequency, and the like according to the coded pulse sequence. However, in actual use, the adjustment operation performed according to the encoded pulse sequence is inconsistent with the adjustment operation expected by the user, and the adjustment operation displayed on the dashboard of the vehicle is inconsistent with the adjustment operation expected by the user, so that the use of the encoder is affected, and the problem is more remarkable particularly after the encoder is used for a certain period of time.
Disclosure of Invention
In order to solve the above problems, the present disclosure provides a method, an apparatus, a storage medium and an electronic device for adjusting an increment parameter of a device.
In a first aspect, the present disclosure provides a method of adjusting a device delta parameter, comprising: periodically generating a waveform signal according to the adjustment operation of a user on target equipment, wherein the initial position and the final position of the waveform signal in each period are wave troughs; acquiring a pulse signal sequence corresponding to the waveform signals in each period, wherein the pulse signal sequence comprises a preset number of continuous pulse signals; determining a coding pulse sequence from a preset number of continuous pulse signals, wherein the coding pulse sequence comprises a plurality of continuous pulse signals from the beginning of an mth pulse signal to the end of an nth pulse signal, m is smaller than or equal to a first threshold value, the first threshold value is a value obtained by rounding down the ratio of the preset number to 2, n is larger than a second threshold value, and the second threshold value is a value obtained by rounding up the ratio of the preset number to 2; and adjusting the increment parameter of the target equipment according to the coding pulse sequence.
Optionally, the adjusting the delta parameter of the target device according to the coded pulse sequence includes: determining a target sequence matched with the coding pulse sequence from a plurality of preset adjusting sequences; and acquiring a target operation corresponding to the target sequence, and adjusting the increment parameter of the target equipment according to the target operation.
Optionally, the target operation includes an increasing operation and a decreasing operation, and adjusting the increment parameter of the target device according to the target operation includes: increasing an increment parameter of the target device in the case that the target sequence corresponds to the increasing operation; and reducing the increment parameter of the target equipment under the condition that the target sequence corresponds to the reduction operation.
Optionally, the method further comprises: and under the condition that a target sequence matched with the coding pulse sequence does not exist in the plurality of preset adjusting sequences, maintaining the current increment parameters of the target equipment.
Optionally, the method further comprises: and displaying the increment parameters of the target equipment.
In a second aspect, the present disclosure provides an apparatus for adjusting a device delta parameter, comprising: the waveform signal generation module is used for periodically generating waveform signals according to the adjustment operation of a user on target equipment, and the starting position and the ending position of the waveform signals in each period are all wave troughs; the pulse signal sequence acquisition module is used for acquiring a pulse signal sequence corresponding to the waveform signal in each period, wherein the pulse signal sequence comprises a preset number of continuous pulse signals; the coding pulse sequence determining module is used for determining a coding pulse sequence from a preset number of continuous pulse signals, wherein the coding pulse sequence comprises a plurality of continuous pulse signals from the beginning of an mth pulse signal to the end of an nth pulse signal, m is smaller than or equal to a first threshold value, the first threshold value is a value obtained by rounding down the ratio of the preset number to 2, n is larger than a second threshold value, and the second threshold value is a value obtained by rounding up the ratio of the preset number to 2; and the increment parameter adjusting module is used for adjusting the increment parameter of the target equipment according to the coding pulse sequence.
Optionally, the incremental parameter adjusting module is configured to determine a target sequence matched with the coded pulse sequence from a plurality of preset adjusting sequences; and acquiring a target operation corresponding to the target sequence, and adjusting the increment parameter of the target equipment according to the target operation.
Optionally, the target operation includes an increasing operation and a decreasing operation, and the increment parameter adjustment module is configured to increase an increment parameter of the target device if the target sequence corresponds to the increasing operation; and reducing the increment parameter of the target equipment under the condition that the target sequence corresponds to the reduction operation.
Optionally, the apparatus further comprises: and the increment parameter maintaining module is used for maintaining the current increment parameters of the target equipment under the condition that the target sequence matched with the coding pulse sequence does not exist in the plurality of preset adjusting sequences.
Optionally, the apparatus further comprises: and the display module is used for displaying the increment parameters of the target equipment.
In a third aspect, the present disclosure provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of the first aspect of the present disclosure.
In a fourth aspect, the present disclosure provides an electronic device comprising: a memory having a computer program stored thereon; a processor for executing the computer program in the memory to implement the steps of the method of the first aspect of the disclosure.
According to the technical scheme, the waveform signals are periodically generated according to the adjustment operation of the user on the target equipment, the preset number of continuous pulse signals corresponding to the waveform signals in each period are obtained, the proper coding pulse sequence is determined from the preset number of continuous pulse signals according to the method, the adjustment operation is carried out on the increment parameters of the target equipment according to the coding pulse sequence, the actual adjustment operation can be ensured to be consistent with the expected adjustment operation of the user, the problem of error adjustment operation is avoided, and the user adjustment operation experience is improved.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification, illustrate the disclosure and together with the description serve to explain, but do not limit the disclosure. In the drawings:
FIG. 1 is a schematic diagram of an encoder;
FIG. 2 is a flow chart of a method of adjusting a device delta parameter provided by an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of an apparatus for adjusting an incremental parameter of a device according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural view of a second apparatus for adjusting an incremental parameter of a device according to an embodiment of the present disclosure;
FIG. 5 is a schematic structural view of a third apparatus for adjusting an incremental parameter of a device according to an embodiment of the present disclosure;
fig. 6 is a block diagram of an electronic device provided by an embodiment of the present disclosure.
Detailed Description
Specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the disclosure, are not intended to limit the disclosure.
In the following description, the words "first," "second," and the like are used merely for distinguishing between the descriptions and not for indicating or implying a relative importance or order.
First, an application scenario of the present disclosure will be described. The present disclosure may be applied to control of device increment parameters, particularly electronic devices in a vehicle, for example, the device increment parameters may be a volume of an acoustic device, an air volume of an air conditioner, a frequency of a radio device, or the like. In the related art, the encoder may be used as a common device for adjusting the increment parameters of the above devices, and the encoder may periodically generate a waveform signal according to the adjustment operation of the user on the target device, determine a coding pulse sequence according to the waveform signal in each period, and increase or decrease the increment parameters such as volume, air quantity, frequency, and the like according to the coding pulse sequence. However, in actual use, there is a problem that an adjustment operation error occurs occasionally, that is, the adjustment operation performed according to the coded pulse sequence is inconsistent with the adjustment operation expected by the user, and the adjustment operation displayed on the dashboard of the vehicle is inconsistent with the adjustment operation expected by the user, so that the use of the user is affected. This problem is particularly pronounced after a certain period of encoder use, for example when the user wishes to increase the air volume by means of an adjustment operation, but it is found that the air volume is reduced after actual operation.
The inventors have found that this problem is caused by the combination of the structure of the encoder and the sequence of encoded pulses used for the adjustment operation, the following description of the cause of this problem being made in connection with fig. 1:
Fig. 1 is a schematic structural view of an encoder, as shown in fig. 1, including an adjusting assembly, through which a user's adjustment operation on a target device is performed, and a waveform signal may be periodically generated according to the user's adjustment operation on the target device, where a start position and an end position of the waveform signal are all troughs in each period. It should be noted that, the starting position and the ending position of the waveform signal in each period are all troughs for convenience of user operation, in the related art, the adjusting component of the encoder includes an elastic component, and under the action of the elastic force of the elastic component, after the user stops operating, the adjusting component cannot stay at the peaks or other positions except the troughs, and can slide to the adjacent trough positions. The encoder further includes two ports, namely an a-phase port and a B-phase port, and the levels output by the a-phase port and the B-phase port of the encoder are hopped multiple times according to waveform signals generated by user adjustment operations, each hop is formed into 1 pulse signal, the pulse signals can be represented as binary values, for example, any one of 00, 01, 10 or 11 shown in fig. 1 can be a pulse signal, and accordingly, each period of waveform signals can generate a preset number of pulse signals, for example: the preset number may be 5.
In the related art, a half pulse signal among a preset number of pulse signals is used as a coded pulse sequence, and an adjustment operation is performed on the apparatus according to the coded pulse sequence. Illustratively, the preset number of pulses is x, and the coded pulse sequence used in the related art is all pulses from the start of the kth pulse to the end of the xth pulse. Wherein k can be calculated by the following formula:
Where k denotes the number of pulses counted from the kth pulse, x denotes the preset number, Represents a positive integer obtained by rounding down the ratio of x to 2. For example: according to the above formula, if the preset number is 5, k is 3, and a total of three pulses from the 3 rd pulse to the 5 th pulse are used as the coded pulse sequence in the related art.
A problem of an erroneous adjustment operation occurs according to the above-described method in the related art, and a scene in which the problem occurs is exemplified as follows:
As shown in fig. 1, the user performs an adjustment operation on the target device to generate the waveform signal shown in fig. 1, determines a pulse signal sequence according to the waveform signal in each period, determines a coding pulse sequence from the pulse signal sequence, and adjusts the increment parameter of the target device according to the coding pulse sequence and a preset adjustment sequence. In this example, with an operation example of increasing or decreasing the air volume, the preset adjustment sequence may include the following correspondence between the encoding pulse sequence and the adjustment operation: the air quantity is increased during the corresponding adjusting operation of the coding pulse sequences 00, 01 and 11; the air volume is reduced during the corresponding adjustment operation of the coding pulse sequences 00, 10 and 11.
The user may adjust the target device in a plurality of ways, and the waveform signal generated in each corresponding period may also be generated in a plurality of ways, for example:
The first adjusting operation of the user is to adjust from left to right, the corresponding expected adjusting operation is to increase the air quantity, a first waveform signal is generated according to the first adjusting operation of the user, the first waveform signal can be a continuous signal from the trough 1 to the crest 1 to the trough 2, the first pulse signal sequence can be obtained according to the first waveform signal, the total number of the first pulse signals is 11, 10, 00, 01 and 11, half of the 5 continuous pulse signals are used as the coding pulse sequence according to the implementation mode in the related art, namely, the obtained coding pulse sequence is 00, 01 and 11, and according to the preset adjusting sequence, the adjusting operation corresponding to 00, 01 and 11 can be determined to increase the air quantity, namely, according to the actual adjusting operation of the coding pulse sequence, the adjusting operation is consistent with the expected adjusting operation of the user.
The second adjusting operation of the user is to adjust from right to left, the corresponding expected adjusting operation is to reduce the air quantity, a second waveform signal is generated according to the second adjusting operation of the user, the second waveform signal can be a continuous signal from the trough 2 to the crest 1 and then to the trough 1, the second pulse signal sequence can be obtained according to the second waveform signal, the total number of the second pulse signals is 11, 01, 00, 10 and 11, half of the 5 continuous pulse signals are used as the coding pulse sequence according to the implementation manner in the related art, namely, the obtained coding pulse sequence is 00, 10 and 11, and according to the preset adjusting sequence, the adjusting operation corresponding to 00, 10 and 11 can be determined to reduce the air quantity, namely, according to the actual adjusting operation of the coding pulse sequence, the adjusting operation is consistent with the expected adjusting operation of the user.
The third adjusting operation of the user is to adjust from left to right, and the corresponding expected adjusting operation is to increase the air quantity, but the user only adjusts half of the air quantity in the actual operation, namely, after the adjusting assembly is from the trough 1 to the crest 1, the user stops the operation, so that the adjusting assembly is positioned at the crest 1, and due to the action of elastic force, the adjusting assembly can slide to the position of the adjacent trough, and further, in the condition that the adjusting assembly is relatively closer to one side of the trough 1, the adjusting assembly can slide to the position of the trough 1 and then stop. In this case, according to the third adjusting operation of the user, a third waveform signal is generated, the third waveform signal is a continuous signal from the trough 1 to the crest 1 and back to the trough 1, according to the third waveform signal, a total of 5 continuous pulse signals of the third pulse signal sequences 11, 10, 00, 10 and 11 can be obtained, according to the implementation manner in the related art, half of the 5 continuous pulse signals are used as the coding pulse sequences, that is, the obtained coding pulse sequences are 00, 10 and 11, according to the preset adjusting sequence, the adjusting operation corresponding to 00, 10 and 11 can be determined to reduce the air quantity, in this case, according to the fact that the actual adjusting operation of the coding pulse sequences is inconsistent with the expected adjusting operation of the user, the problem of error of the adjusting operation occurs, and the perception of the user is affected.
In addition, the actual adjustment operation may be displayed on a dashboard of the vehicle, and if the actual adjustment operation is inconsistent with the client intended adjustment operation, the adjustment operation displayed on the dashboard is also inconsistent with the client intended adjustment operation, thereby further affecting the perception of the user.
It should be noted that, the above description is given by taking the air volume adjusting operation as an example, and other adjusting operations for the increment parameters of the target device have the same problems, which are not repeated in the disclosure.
In addition, when the encoder is used for a long time, for example, after half a year, the grease of the internal adjusting components of the encoder is lost, so that the adjusting operation of the user is not smooth enough and is easier to adjust by half to stop, and the problem is more remarkable.
In order to solve the above problems, the present disclosure provides a method, an apparatus, a storage medium, and an electronic device for adjusting an increment parameter of a device, where a waveform signal is periodically generated according to an adjustment operation performed by a user on a target device, a preset number of continuous pulse signals are determined as a pulse signal sequence according to the waveform signal in each period, a coding pulse sequence is determined from the pulse signal sequence, and the increment parameter of the target device is adjusted according to the coding pulse sequence. The coded pulse sequence may include a plurality of consecutive pulse signals in the pulse sequence from an mth pulse signal to an nth pulse signal, where m and n are both positive integers, where m is less than or equal to a value obtained by rounding down the ratio of the preset number to 2, and n is greater than a value obtained by rounding up the ratio of the preset number to 2. According to the method, the adjustment operation according to the coding pulse sequence can be ensured to be consistent with the expected adjustment operation of the user, the problem of error adjustment operation is avoided, and the user adjustment operation experience is improved.
Specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
Fig. 2 is a method for adjusting an increment parameter of a device according to an embodiment of the disclosure, as shown in fig. 2, where the method includes:
S201, periodically generating a waveform signal according to the adjustment operation of the user on the target device.
The starting position and the ending position of the waveform signal in each period are all wave troughs. The adjustment operation of the target device by the user may be to adjust the volume of the audio device, adjust the air volume of the air conditioning device, adjust the frequency of the radio device, and the like, which is not limited in this disclosure. The waveform signal generated according to the user's adjustment operation has peaks and valleys, and the waveform signal may be a sinusoidal waveform or a sawtooth waveform, which is not limited in this disclosure. It should be noted that, as shown in fig. 1, the adjustment operation of the user on the target device is completed through the adjustment assembly, after the adjustment operation of the user is completed, the adjustment assembly automatically falls back to the trough position under the action of elastic force, so that the starting position and the ending position of the waveform signal generated according to the adjustment operation of the user are all troughs, and the user can generate the waveform signal with an integer number of periods each time.
Illustratively, as with the encoder shown in fig. 1, the user may adjust the target device in a number of ways, and the waveform signal generated in each corresponding period may also be in a number of ways, for example:
The first waveform signal may be a continuous signal from trough 1 to crest 1 to trough 2 generated in accordance with a first adjustment operation by a user, the first adjustment operation being left to right adjustment, the corresponding intended adjustment operation being an increase in the incremental parameter.
The second waveform signal may be a continuous signal from trough 2 to peak 1 to trough 1 generated in accordance with a second adjustment operation by the user, which may be a right-to-left adjustment, with the corresponding desired adjustment operation being a decrease in the delta parameter.
The third waveform signal may be a continuous signal generated according to a third adjustment operation of the user from the trough 1 to the crest 1 and back to the trough 1, where the adjustment operation is stopped when the user adjusts the adjustment assembly from the trough 1 to the crest 1 from left to right, and at this time, since the adjustment assembly cannot stay at the crest position, the adjustment assembly may slide to an adjacent trough position, and in a case where the adjustment assembly is closer to the trough 1 on the left of the crest, the adjustment assembly may slide to the trough 1 on the left, and at this time, the third waveform signal may be generated according to the third adjustment operation.
The fourth waveform signal may be a continuous signal generated according to a fourth adjustment operation of the user from the trough 2 to the crest 1 and back to the trough 2, where the adjustment operation is stopped when the user adjusts the adjustment assembly from the trough 2 to the crest 1 from right to left, and at this time, since the adjustment assembly cannot stay at the crest position, the adjustment assembly may slide to an adjacent trough position, and in a case where the adjustment assembly is closer to the trough 2 on the right side of the crest, the adjustment assembly may slide to the trough 2 on the right side, and at this time, the fourth waveform signal may be generated according to the fourth adjustment operation.
S202, acquiring a pulse signal sequence corresponding to the waveform signal in each period.
The pulse signal sequence comprises a preset number of continuous pulse signals. The preset number may be a different value preset according to the structure of the encoder, and may be set to 5, for example. According to the example of fig. 1, any one of 00, 01, 10, or 11 may be one pulse signal, and 5 continuous pulse signals may be determined as a pulse signal sequence from the waveform signal in each period. The pulse signal sequence determined from the waveform signal may be, for example, any of the following:
In the case where the waveform signal of one cycle is the first waveform signal in S201 described above, that is, the continuous waveform signal from the trough 1 to the crest 1 to the trough 2, the first pulse signal sequence determined from the first waveform signal is as shown in table 1 below, and the first pulse signal sequence is a sequence of 11, 10, 00, 01, 11, and 5 continuous pulse signals in total, which are composed in the order in table 1:
Phase a port output 1 1 0 0 1
B-phase port output 1 0 0 1 1
TABLE 1
In the case where the waveform signal of one cycle is the second waveform signal in S201 described above, that is, the continuous waveform signal from the trough 2 to the crest 1 to the trough 1, the second pulse signal sequence determined from the second waveform signal is as shown in table 2 below, and the second pulse signal sequence is a sequence of 11, 01, 00, 11, and 11, which is a total of 5 continuous pulse signals, which are composed in the order in table 2:
Phase a port output 1 0 0 1 1
B-phase port output 1 1 0 0 1
TABLE 2
In the case where the waveform signal of one cycle is the third waveform signal in S201 described above, that is, the continuous waveform signal from the trough 1 to the crest 1 and back to the trough 1, the second pulse signal sequence determined from the second waveform signal is as shown in table 3 below, and the third pulse signal sequence is a sequence of 11, 10, 00, 10, 11, and 5 continuous pulse signals in total, which are composed in the order in table 3:
Phase a port output 1 1 0 1 1
B-phase port output 1 0 0 0 1
TABLE 3 Table 3
In the case where the waveform signal of one cycle is the fourth waveform signal in S201 described above, that is, the continuous waveform signal from the trough 2 to the crest 1 and back to the trough 2, the second pulse signal sequence determined from the second waveform signal is as shown in table 4 below, and the fourth pulse signal sequence is a sequence of 11, 01, 00, 01, 11, and 5 continuous pulse signals in the order of the sequence in table 4:
Phase a port output 1 0 0 0 1
B-phase port output 1 1 0 1 1
TABLE 4 Table 4
S203, determining a coding pulse sequence from a preset number of continuous pulse signals.
The coded pulse sequence may include a plurality of continuous pulse signals from the mth pulse signal to the nth pulse signal, where m is less than or equal to a first threshold value, where the first threshold value is a value obtained by rounding down the ratio of the preset number to 2, and n is greater than a second threshold value, where the second threshold value is a value obtained by rounding up the ratio of the preset number to 2
Likewise, according to the example of fig. 1, the manner in which the coded pulse sequence is determined may be any of the following:
In the case that the pulse signal sequence is the first pulse signal sequence shown in table 1, the sequence includes 5 pulse signals, that is, the preset number is 5, the ratio of the preset number to 2 is 2.5, so as to obtain a first threshold value of 2, and m is a positive integer smaller than or equal to the first threshold value of 2, that is, the value of m may be 1 or 2; the value obtained by rounding up the ratio of the preset number to 2 is 3, and if the second threshold is 3, n is a positive integer greater than the second threshold 3, that is, the value of n may be 4 or 5, and the coding pulse sequence determined according to m and n may be any one of the following sequences: in the case where m has a value of 2 and n has a value of 5, the determined B11 code pulse sequence may be 10, 00, 01, 11; in the case where m is 2 and n is 4, the determined B12 coded pulse sequence may be 10, 00, 01; in the case where m has a value of 1 and n has a value of 5, the determined B13-encoded pulse sequence may be 11, 10, 00, 01, 11; in the case where m has a value of 1 and n has a value of 4, the determined B14 code pulse sequence may be 11, 10, 00, 01.
In the case that the pulse signal sequence is the second pulse signal sequence shown in table 2, the sequence includes 5 pulse signals, that is, the preset number is 5, likewise, the value of m may be 1 or 2, the value of n may be 4 or 5, and in the same manner, the obtained coded pulse sequence may be any one of the following sequences: in the case where m has a value of 2 and n has a value of 5, the determined B21 coding pulse sequence may be 01, 00, 10, 11; in the case where m is 2 and n is 4, the determined B22 coding pulse sequence may be 01, 00, 10; in the case where m has a value of 1 and n has a value of 5, the determined B23 code pulse sequence may be 11, 01, 00, 10, 11; in the case where m has a value of 1 and n has a value of 4, the determined B24-encoded pulse sequence may be 11, 01, 00, 10.
In the case that the pulse signal sequence is the third pulse signal sequence shown in table 3, the sequence includes 5 pulse signals, that is, the preset number is 5, likewise, the value of m may be 1 or 2, the value of n may be 4 or 5, and in the same manner, the obtained coded pulse sequence may be any one of the following sequences: under the condition that m is 2 and n is 5, the determined B31 coding pulse sequence can be 10, 00, 10 and 11; under the condition that m is 2 and n is 4, the determined B32 coding pulse sequence can be 10, 00 and 10; in the case where m has a value of 1 and n has a value of 5, the determined B33 code pulse sequence may be 11, 10, 00, 10, 11; in the case where m has a value of 1 and n has a value of 4, the determined B34 code pulse sequence may be 11, 10, 00, 10.
In the case that the pulse signal sequence is the fourth pulse signal sequence shown in table 4, the sequence includes 5 pulse signals, that is, the preset number is 5, likewise, the value of m may be 1 or 2, the value of n may be 4 or 5, and in the same manner, the obtained coded pulse sequence may be any one of the following sequences: under the condition that m is 2 and n is 5, the determined B41 coding pulse sequence can be 01, 00, 01 and 11; under the condition that m is 2 and n is 4, the determined B42 coding pulse sequence can be 01, 00 and 01; in the case where m has a value of 1 and n has a value of 5, the determined B43 coding pulse sequence may be 11, 01, 00, 01, 11; in the case where m has a value of 1 and n has a value of 4, the determined B44 code pulse sequence may be 11, 01, 00, 01.
In the method described above, in the case of different values of m and n, different coded pulse sequences are obtained according to different pulse signal sequences, as shown in table 5 below, from which it can be seen that there is no repetition of the coded pulse sequences obtained in this way:
TABLE 5
Compared with the related art, the coded pulse sequence acquired by the method has no repetition, so that different operations of a user on target equipment can be distinguished, and the problem of misidentification of the user operation is avoided.
S204, adjusting the increment parameter of the target equipment according to the coding pulse sequence.
The target device may be a sound device, an air conditioner, a radio and other devices in the vehicle, and the corresponding incremental parameter may be a volume of the sound device, an air volume of the air conditioner, a frequency of the radio and the like.
An alternative way of adjusting the delta parameters of the target device according to the coded pulse sequence comprises: determining a target sequence matched with the coding pulse sequence from a plurality of preset adjusting sequences; and acquiring a target operation corresponding to the target sequence, and adjusting the increment parameter of the target equipment according to the target operation.
Illustratively: the preset adjustment sequence may include: the first preset regulatory sequence is 10, 00, 01, 11 and the second preset regulatory sequence is 01, 00, 10, 11. In the case that the B11 encoding pulse sequence (10, 00, 01, 11) is obtained according to the example of the step S203, the first preset adjustment sequence may be matched, and then the increment parameter of the target device is adjusted according to the target operation corresponding to the first preset adjustment sequence; in the case that the above B21 coding pulse sequence (01, 00, 10, 11) is obtained according to the above example of step S203, a second preset adjustment sequence may be matched, and then the increment parameter of the target device is adjusted according to the target operation corresponding to the second preset adjustment sequence.
According to the method, the waveform signals are periodically generated according to the adjustment operation of the user on the target equipment, the preset number of continuous pulse signals corresponding to the waveform signals in each period are obtained, the proper coding pulse sequence is determined from the preset number of continuous pulse signals according to the method, the adjustment operation is carried out on the increment parameters of the target equipment according to the coding pulse sequence, the fact that the actual adjustment operation is consistent with the expected adjustment operation of the user can be ensured, the problem of error adjustment operation is avoided, and the user adjustment operation experience is improved.
Optionally, in another embodiment of the present disclosure, the target operation may include an increasing operation and a decreasing operation, and correspondingly, adjusting the increment parameter of the target device according to the target operation may include: increasing the increment parameter of the target equipment under the condition that the target sequence corresponds to the increasing operation; in the case that the target sequence corresponds to a decrease operation, the delta parameter for the target device is decreased. For example: the target operation corresponding to the first preset adjustment sequence may be an increasing operation, and in the case that the target operation is matched to the first preset adjustment sequence according to the B11 coding pulse sequence, the increment parameter of the target device may be increased according to a first preset step, for example, the volume of the audio device may be increased by 5%, or the air volume of the air conditioning device may be increased by 1 level; likewise, the target operation corresponding to the second preset adjustment sequence may be a decreasing operation, and in the case that the second preset adjustment sequence is matched according to the B21 coding pulse sequence, the increment parameter of the target device may be decreased according to a second preset step, for example, the volume of the audio device may be decreased by 5%, or the air volume of the air conditioning device may be decreased by 1 level. In this way, the increment parameter of the target device can be accurately increased or decreased according to the adjustment operation of the user.
Further, under the condition that a target sequence matched with the coding pulse sequence does not exist in the plurality of preset adjusting sequences, the current increment parameters of the target equipment are kept unchanged. For example: the preset adjustment sequence only includes: the first preset regulatory sequence is 10, 00, 01, 11 and the second preset regulatory sequence is 01, 00, 10, 11. In the case that the above-mentioned B31 coding pulse sequence is obtained in the example according to step S203, any one of the preset adjustment sequences cannot be matched, and at this time, the current increment parameter of the target device is kept unchanged, for example, the volume of the audio device is kept unchanged. In this way, the problem of erroneous adjustment of the incremental parameter of the target device due to erroneous detection of the user operation can be further avoided.
Optionally, in another embodiment of the present disclosure, the delta parameters of the target device may also be displayed. For example, in the case where the user increases the air volume of the air conditioning apparatus by the adjustment operation, the magnitude of the air volume is displayed on the display unit in real time. By the method, the increment parameters of the target equipment can be displayed to the user in real time, and the displayed adjusting operation is consistent with the expected adjusting operation of the user, so that the user adjusting operation experience is improved.
Fig. 3 is a schematic structural diagram of an apparatus for adjusting an increment parameter of a device according to an embodiment of the disclosure, where, as shown in fig. 3, the apparatus includes:
The waveform signal generating module 301 is configured to periodically generate a waveform signal according to an adjustment operation of a user on a target device, where a start position and an end position of the waveform signal in each period are all troughs;
a pulse signal sequence acquisition module 302, configured to acquire a pulse signal sequence corresponding to a waveform signal in each period, where the pulse signal sequence includes a preset number of continuous pulse signals;
The encoding pulse sequence determining module 303 is configured to determine an encoding pulse sequence from a preset number of continuous pulse signals, where the encoding pulse sequence includes a plurality of continuous pulse signals from an mth pulse signal to an nth pulse signal, where m is less than or equal to a first threshold, the first threshold is a value obtained by rounding down a ratio of the preset number to 2, and n is greater than a second threshold, and the second threshold is a value obtained by rounding up a ratio of the preset number to 2;
an increment parameter adjustment module 304 is configured to adjust an increment parameter of the target device according to the encoded pulse sequence.
Optionally, the delta parameter adjustment module 304 is configured to determine a target sequence matching the coded pulse sequence from a plurality of preset adjustment sequences; and acquiring a target operation corresponding to the target sequence, and adjusting the increment parameter of the target equipment according to the target operation.
Optionally, the target operation includes an increase operation and a decrease operation, and the increment parameter adjustment module 304 is configured to increase an increment parameter of the target device if the target sequence corresponds to the increase operation; in the event that the target sequence corresponds to a decrease operation, the delta parameter of the target device is decreased.
Optionally, as shown in fig. 4, the apparatus further includes:
An increment parameter holding module 401, configured to hold a current increment parameter of the target device when there is no target sequence matching the coded pulse sequence in the plurality of preset adjustment sequences.
Optionally, as shown in fig. 5, the apparatus further includes:
A display module 501 is configured to display the delta parameters of the target device.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
By the device, the waveform signals are periodically generated according to the adjustment operation of the user on the target equipment, the preset number of continuous pulse signals corresponding to the waveform signals in each period are obtained, the proper coding pulse sequence is determined from the preset number of continuous pulse signals according to the method, the adjustment operation is carried out on the increment parameters of the target equipment according to the coding pulse sequence, the actual adjustment operation can be ensured to be consistent with the expected adjustment operation of the user, the problem of error adjustment operation is avoided, and the user adjustment operation experience is improved.
Fig. 6 is a block diagram of an electronic device 600, according to an example embodiment. As shown in fig. 6, the electronic device 600 may include: a processor 601, a memory 602. The electronic device 600 may also include one or more of a multimedia component 603, an input/output (I/O) interface 604, and a communication component 605.
Wherein the processor 601 is configured to control the overall operation of the electronic device 600 to perform all or part of the steps in the method for adjusting device delta parameters described above. The memory 602 is used to store various types of data to support operations at the electronic device 600, which may include, for example, instructions for any application or method operating on the electronic device 600, as well as application-related data, such as contact data, transceived messages, pictures, audio, video, and the like. The Memory 602 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM for short), programmable Read-Only Memory (Programmable Read-Only Memory, PROM for short), read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia component 603 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen, the audio component being for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 602 or transmitted through the communication component 605. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 604 provides an interface between the processor 601 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 605 is used for wired or wireless communication between the electronic device 600 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, near Field Communication (NFC) for short, 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or a combination of more of them, is not limited herein. The corresponding communication component 605 may thus comprise: wi-Fi module, bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application-specific integrated circuits (ASICs), digital signal processors (DIGITAL SIGNAL processors, DSPs), digital signal processing devices (DIGITAL SIGNAL Processing Device, DSPDs), programmable logic devices (Programmable Logic Device, PLDs), field programmable gate arrays (Field Programmable GATE ARRAY, FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described methods of adjusting device delta parameters.
In another exemplary embodiment, a computer readable storage medium is also provided comprising program instructions which, when executed by a processor, implement the steps of the method of adjusting a device delta parameter described above. For example, the computer readable storage medium may be the memory 602 described above including program instructions executable by the processor 601 of the electronic device 600 to perform the method of adjusting device delta parameters described above.
The preferred embodiments of the present disclosure have been described in detail above with reference to the accompanying drawings, but the present disclosure is not limited to the specific details of the embodiments described above, and various simple modifications may be made to the technical solutions of the present disclosure within the scope of the technical concept of the present disclosure, and all the simple modifications belong to the protection scope of the present disclosure.
In addition, the specific features described in the above embodiments may be combined in any suitable manner without contradiction. The various possible combinations are not described further in this disclosure in order to avoid unnecessary repetition.
Moreover, any combination between the various embodiments of the present disclosure is possible as long as it does not depart from the spirit of the present disclosure, which should also be construed as the disclosure of the present disclosure.

Claims (10)

1. A method of adjusting a device delta parameter, the method comprising:
Periodically generating a waveform signal according to the adjustment operation of a user on target equipment, wherein the initial position and the final position of the waveform signal in each period are wave troughs;
Acquiring a pulse signal sequence corresponding to the waveform signals in each period, wherein the pulse signal sequence comprises a preset number of continuous pulse signals;
Determining a coding pulse sequence from a preset number of continuous pulse signals, wherein the coding pulse sequence comprises a plurality of continuous pulse signals from the beginning of an mth pulse signal to the end of an nth pulse signal, m is smaller than or equal to a first threshold value, the first threshold value is a value obtained by rounding down the ratio of the preset number to 2, n is larger than a second threshold value, and the second threshold value is a value obtained by rounding up the ratio of the preset number to 2;
And adjusting the increment parameter of the target equipment according to the coding pulse sequence.
2. The method of claim 1, wherein said adjusting the delta parameters of the target device according to the coded pulse sequence comprises:
determining a target sequence matched with the coding pulse sequence from a plurality of preset adjusting sequences;
and acquiring a target operation corresponding to the target sequence, and adjusting the increment parameter of the target equipment according to the target operation.
3. The method of claim 2, wherein the target operation comprises an increase operation and a decrease operation, and wherein adjusting the delta parameter of the target device in accordance with the target operation comprises:
Increasing an increment parameter of the target device in the case that the target sequence corresponds to the increasing operation;
And reducing the increment parameter of the target equipment under the condition that the target sequence corresponds to the reduction operation.
4. The method according to claim 2, wherein the method further comprises:
And under the condition that a target sequence matched with the coding pulse sequence does not exist in the plurality of preset adjusting sequences, maintaining the current increment parameters of the target equipment.
5. The method according to any one of claims 1 to 4, further comprising:
and displaying the increment parameters of the target equipment.
6. An apparatus for adjusting an increment parameter of a device, the apparatus comprising:
the waveform signal generation module is used for periodically generating waveform signals according to the adjustment operation of a user on target equipment, and the starting position and the ending position of the waveform signals in each period are all wave troughs;
the pulse signal sequence acquisition module is used for acquiring a pulse signal sequence corresponding to the waveform signal in each period, wherein the pulse signal sequence comprises a preset number of continuous pulse signals;
The coding pulse sequence determining module is used for determining a coding pulse sequence from a preset number of continuous pulse signals, wherein the coding pulse sequence comprises a plurality of continuous pulse signals from the beginning of an mth pulse signal to the end of an nth pulse signal, m is smaller than or equal to a first threshold value, the first threshold value is a value obtained by rounding down the ratio of the preset number to 2, n is larger than a second threshold value, and the second threshold value is a value obtained by rounding up the ratio of the preset number to 2;
and the increment parameter adjusting module is used for adjusting the increment parameter of the target equipment according to the coding pulse sequence.
7. The apparatus of claim 6, wherein the delta parameter adjustment module is configured to determine a target sequence that matches the coded pulse sequence from a plurality of preset adjustment sequences; and acquiring a target operation corresponding to the target sequence, and adjusting the increment parameter of the target equipment according to the target operation.
8. The apparatus of claim 7, wherein the target operation comprises an increase operation and a decrease operation, the delta parameter adjustment module to increase a delta parameter of the target device if the target sequence corresponds to the increase operation; and reducing the increment parameter of the target equipment under the condition that the target sequence corresponds to the reduction operation.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 5.
10. An electronic device, comprising:
A memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1 to 5.
CN202011055899.9A 2020-09-29 2020-09-29 Method and device for adjusting increment parameters of equipment, storage medium and electronic equipment Active CN114312635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011055899.9A CN114312635B (en) 2020-09-29 2020-09-29 Method and device for adjusting increment parameters of equipment, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011055899.9A CN114312635B (en) 2020-09-29 2020-09-29 Method and device for adjusting increment parameters of equipment, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114312635A CN114312635A (en) 2022-04-12
CN114312635B true CN114312635B (en) 2024-04-26

Family

ID=81011295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011055899.9A Active CN114312635B (en) 2020-09-29 2020-09-29 Method and device for adjusting increment parameters of equipment, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114312635B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3760109A (en) * 1971-11-15 1973-09-18 Nissan Motor Time division multiplex transmission system
GB1372394A (en) * 1970-11-14 1974-10-30 Nissan Motor Time division multiplex transmission system
FR2499344A1 (en) * 1981-02-05 1982-08-06 Bosch Gmbh Robert REMOTE ACTION SYSTEM FOR SELECTIVELY CONTROLLING USER DEVICES, IN PARTICULAR IN MOTOR VEHICLES
WO2003005659A2 (en) * 2001-07-03 2003-01-16 Siemens Aktiengesellschaft Line code for data transmission in a motor vehicle
DE102005061865A1 (en) * 2005-12-23 2007-07-05 Robert Bosch Gmbh Increasing information density in signal transmission lines for detecting position of shift lever on motor vehicle automatic gearbox involves transmitting a modulated signal containing a coded pulsed signal superimposed on a digital signal
JP2008186755A (en) * 2007-01-31 2008-08-14 Matsushita Electric Ind Co Ltd Input device
CN203727188U (en) * 2014-03-12 2014-07-23 杨金科 Automotive instrument panel on basis of digital circuits and LEDs

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1372394A (en) * 1970-11-14 1974-10-30 Nissan Motor Time division multiplex transmission system
US3760109A (en) * 1971-11-15 1973-09-18 Nissan Motor Time division multiplex transmission system
FR2499344A1 (en) * 1981-02-05 1982-08-06 Bosch Gmbh Robert REMOTE ACTION SYSTEM FOR SELECTIVELY CONTROLLING USER DEVICES, IN PARTICULAR IN MOTOR VEHICLES
WO2003005659A2 (en) * 2001-07-03 2003-01-16 Siemens Aktiengesellschaft Line code for data transmission in a motor vehicle
DE102005061865A1 (en) * 2005-12-23 2007-07-05 Robert Bosch Gmbh Increasing information density in signal transmission lines for detecting position of shift lever on motor vehicle automatic gearbox involves transmitting a modulated signal containing a coded pulsed signal superimposed on a digital signal
JP2008186755A (en) * 2007-01-31 2008-08-14 Matsushita Electric Ind Co Ltd Input device
CN203727188U (en) * 2014-03-12 2014-07-23 杨金科 Automotive instrument panel on basis of digital circuits and LEDs

Also Published As

Publication number Publication date
CN114312635A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
EP1774433B1 (en) Method and apparatus for random-number generator
Nilim et al. Robustness in Markov decision problems with uncertain transition matrices
US8359516B2 (en) Systems and methods for error correction and decoding on multi-level physical media
KR101274394B1 (en) Address generator for an interleaver memory and a deinterleaver memory
CN104565285A (en) Gear construction method and digital equipment
US6625778B1 (en) Turbo error-correcting decoder and turbo error-correcting decoding method
CN108924447B (en) Volume adjusting method, equipment, communication device and storage medium
CN101060312A (en) Sound volume converting device
CN114312635B (en) Method and device for adjusting increment parameters of equipment, storage medium and electronic equipment
US7870175B2 (en) Random number generation including skewness control
CN112636875B (en) Modulation and coding strategy scheduling method, device, communication equipment and storage medium
US20100115230A1 (en) Hash functions using recurrency and arithmetic
CA2604072A1 (en) Turbo decoder with circular redundancy code signature comparison
CN1780152A (en) Interative encode method and system
CN110852098B (en) Data correction method, electronic equipment and storage medium
JP2007033444A (en) Generation of noise signal by mapping random word
US20110185267A1 (en) Encoding device, controller and system including the same
EP2660816B1 (en) Audio signal processing method and electronic device supporting the same
US7533320B2 (en) Wireless transmit/receive unit having a turbo decoder with circular redundancy code signature comparison and method
CN101882933B (en) Method for Turbo decoding in LTE (Long Term Evolution) and Turbo decoder
CN114598419B (en) Interleaver, deinterleaver, and methods of performing the same
CN110086725B (en) Flow source ratio adjusting method and device, computer equipment and storage medium
CN111768329B (en) Method and device for collecting execution time of kernel, storage medium and electronic equipment
US9503152B2 (en) Methods and apparatus for generating composite code sequences
US20070186129A1 (en) Address generation apparatus for turbo interleaver and deinterleaver in w-cdma systems

Legal Events

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