CN108287612B - Input control method and device - Google Patents

Input control method and device Download PDF

Info

Publication number
CN108287612B
CN108287612B CN201711485529.7A CN201711485529A CN108287612B CN 108287612 B CN108287612 B CN 108287612B CN 201711485529 A CN201711485529 A CN 201711485529A CN 108287612 B CN108287612 B CN 108287612B
Authority
CN
China
Prior art keywords
current
keyed
character set
coding rule
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711485529.7A
Other languages
Chinese (zh)
Other versions
CN108287612A (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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201711485529.7A priority Critical patent/CN108287612B/en
Publication of CN108287612A publication Critical patent/CN108287612A/en
Application granted granted Critical
Publication of CN108287612B publication Critical patent/CN108287612B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0202Constructional details or processes of manufacture of the input device
    • G06F3/0219Special purpose keyboards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0489Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof
    • G06F3/04897Special input arrangements or commands for improving display capability

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The embodiment of the invention discloses an input control method and a device thereof, wherein the method comprises the following steps: determining the current key-in position and the key-in character according to the vehicle identification code key-in instruction; if the number of bits of the current keyed-in position is smaller than the rated number of bits of the vehicle identification code, determining a character set to be selected corresponding to the current keyed-in position according to a coding rule corresponding to the current keyed-in position and the keyed-in characters; and adjusting an input keyboard according to the character set to be selected corresponding to the current key-in position. By adopting the invention, the accuracy and convenience of inputting the vehicle identification code can be improved.

Description

Input control method and device
Technical Field
The invention relates to the technical field of automotive electronics, in particular to an input control method and device.
Background
Today, when the automobile becomes necessary for people to go out, the diagnosis of the automobile through the diagnosis equipment is a crucial link for an automobile owner or a maintenance person. The Vehicle diagnostic process implemented by the diagnostic device may require the Vehicle owner or service person to enter the Vehicle Identification Number (VIN) of the Vehicle. The VIN code of the vehicle includes information of the manufacturer, the year, the type and the code of the vehicle body, the engine code, the assembly location, and the like of the vehicle, and therefore, the VIN code of the vehicle has an important meaning for helping a vehicle owner or a maintenance worker to correctly diagnose and maintain the vehicle.
The VIN code for an automobile is specified by the Society of Automotive Engineers (SAE) standard and consists of 17-bit characters, also known as the seventeen-bit code. 1-3 bits in the automobile VIN code are identification codes of world manufacturers and are used for identifying the uniqueness of a vehicle manufacturer; 4-9 bits are a vehicle characteristic description part for describing general characteristics of the vehicle, including the conditions of the type of the vehicle, the type of the vehicle body and the like; 10-17 bits are the vehicle indication part, and the manufacturer designates a group of characters for distinguishing different vehicles.
It can be seen that, because the length of the vehicle VIN code is long and the vehicle VIN code is combined by numbers and letters, when the vehicle owner or the maintenance personnel inputs the vehicle VIN code, the probability of inputting errors is high.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide an input control method. According to the encoding rule of the automobile VIN code and the input characters, a character set to be selected of the current input position is defined, and only characters in the character set to be selected are displayed on an input keyboard, so that the accuracy and convenience of automobile VIN code input can be improved.
A first aspect of an embodiment of the present invention provides an input control method, including:
determining the current key-in position and the key-in character according to the vehicle identification code key-in instruction;
if the number of digits of the current keyed-in position is smaller than the rated number of digits of the vehicle identification code, determining a character set to be selected corresponding to the current keyed-in position according to a coding rule corresponding to the current keyed-in position and the keyed-in characters;
and adjusting the input keyboard according to the character set to be selected corresponding to the current key-in position.
As a possible implementation, if the number of digits of the currently-entered bit is 1, the entered character is null; the coding rule corresponding to the current bonding position is the coding rule of the area of the vehicle manufacturer; the specific implementation manner of determining the character set to be selected corresponding to the current keyed-in position according to the coding rule corresponding to the current keyed-in position and the keyed-in characters is as follows: and determining a character set to be selected corresponding to the current key-in position according to the coding rule of the area to which the vehicle manufacturer belongs and the key-in characters which are empty.
As a possible implementation manner, if the number of the current keyed-in position is 9, the coding rule corresponding to the current keyed-in position is a verification rule of the vehicle identification code; the specific implementation manner of determining the character set to be selected corresponding to the current keyed-in position according to the coding rule corresponding to the current keyed-in position and the keyed-in characters is as follows: and determining a character set to be selected corresponding to the current key-in position according to the verification rule of the vehicle identification code and the key-in character.
As a possible implementation manner, if the number of bits of the current keyed position is 10, the coding rule corresponding to the current keyed position is the coding rule of the vehicle production year; the specific implementation manner of determining the character set to be selected corresponding to the current keyed-in position according to the coding rule corresponding to the current keyed-in position and the keyed-in characters is as follows: and determining a character set to be selected corresponding to the current input position according to the coding rule of the vehicle production year and the typed characters.
As a possible implementation manner, if the number of the current keyed position is 11, the coding rule corresponding to the current keyed position is a coding rule of a vehicle assembly plant; the specific implementation manner of determining the character set to be selected corresponding to the current keyed-in position according to the coding rule corresponding to the current keyed-in position and the keyed-in characters is as follows: and determining a character set to be selected corresponding to the current key-in position according to the automobile manufacturer determined by the 1-3 key-in characters of the vehicle identification code, the automobile type determined by the 4-8 key-in characters of the vehicle identification code and the coding rule of the vehicle assembly factory.
As a possible implementation manner, if the number of the current keyed position is 12-17, the coding rule corresponding to the current keyed position is a coding rule of a vehicle delivery sequence number; the specific implementation manner of determining the character set to be selected corresponding to the current keyed-in position according to the coding rule corresponding to the current keyed-in position and the keyed-in characters is as follows: and determining a character set to be selected corresponding to the current keyed-in position according to the coding rule of the vehicle factory sequence number and the keyed-in characters.
As a possible implementation manner, a specific implementation manner of adjusting the input keyboard according to the to-be-selected character set corresponding to the current typing position is as follows: acquiring a character set contained in an input keyboard; and deleting the characters in the character set except the character set to be selected.
A second aspect of an embodiment of the present invention provides an input control apparatus, including:
the determining unit is used for determining the current key-in position and the key-in character according to the vehicle identification code key-in instruction;
the determining unit is further used for determining a character set to be selected corresponding to the current keyed-in position according to a coding rule corresponding to the current keyed-in position and the keyed-in characters if the number of digits of the current keyed-in position is smaller than the rated number of digits of the vehicle identification code;
and the adjusting unit is used for adjusting the input keyboard according to the character set to be selected corresponding to the current key-in position.
As a possible implementation, if the number of digits of the currently-entered bit is 1, the entered character is null; the coding rule corresponding to the current bonding position is the coding rule of the area of the vehicle manufacturer; the determining unit is specifically configured to: and determining a character set to be selected corresponding to the current key-in position according to the coding rule of the area to which the vehicle manufacturer belongs and the key-in characters which are empty.
As a possible implementation manner, if the number of the current keyed-in position is 9, the coding rule corresponding to the current keyed-in position is a verification rule of the vehicle identification code; the determining unit is specifically configured to: and determining a character set to be selected corresponding to the current key-in position according to the verification rule of the vehicle identification code and the key-in character.
As a possible implementation manner, if the number of bits of the current keyed position is 10, the coding rule corresponding to the current keyed position is the coding rule of the vehicle production year; the determining unit is specifically configured to: and determining a character set to be selected corresponding to the current input position according to the coding rule of the vehicle production year and the typed characters.
As a possible implementation manner, if the number of the current keyed position is 11, the coding rule corresponding to the current keyed position is a coding rule of a vehicle assembly plant; the determining unit is specifically configured to: and determining a character set to be selected corresponding to the current key-in position according to the automobile manufacturer determined by the 1-3 key-in characters of the vehicle identification code, the automobile type determined by the 4-8 key-in characters of the vehicle identification code and the coding rule of the vehicle assembly factory.
As a possible implementation manner, if the number of the current keyed position is 12-17, the coding rule corresponding to the current keyed position is a coding rule of a vehicle delivery sequence number; the determining unit is specifically configured to: and determining a character set to be selected corresponding to the current keyed-in position according to the coding rule of the vehicle factory sequence number and the keyed-in characters.
As a possible implementation, the adjusting unit is specifically configured to: acquiring a character set contained in an input keyboard; and deleting the characters in the character set except the character set to be selected.
A third aspect of the embodiments of the present invention provides another input control apparatus, where the input control apparatus includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method provided in the first aspect of the embodiments of the present invention.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method provided by the first aspect of embodiments of the present invention.
The embodiment of the invention has the following beneficial effects: determining a character set to be selected corresponding to the current keyed-in position through the current keyed-in position and the keyed-in characters of the automobile identification code and a coding rule corresponding to the current keyed-in position; and adjusting an input keyboard of the vehicle identification code according to the character set to be selected. Therefore, the vehicle identification code can be input in an instructive manner when the vehicle maintenance personnel or the vehicle owner key in the vehicle identification code, and the error probability when the vehicle identification code is keyed in is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram showing the meaning of each character bit of a vehicle identification code in the embodiment of the present invention;
FIG. 2 is an interface schematic of a universal input keyboard involved in the present invention;
FIG. 3 is a schematic flow chart diagram of an input control method provided by an embodiment of the invention;
FIG. 4 is a schematic flow chart diagram of another input control method provided by an embodiment of the present invention;
FIG. 5 is a schematic diagram of an exemplary input keyboard provided in embodiments of the present invention;
FIG. 6 is a schematic diagram of another exemplary input keyboard provided in embodiments of the present invention;
FIG. 7 is a schematic block diagram of an input control apparatus provided by an embodiment of the present invention;
fig. 8 is a schematic block diagram of another input control device provided in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For a better understanding of the embodiments of the present invention, the vehicle identification code and the input keypad related to the embodiments of the present invention will be described below.
Vehicle Identification Number (VIN), also called Vehicle Identification code and Vehicle Identification Number, is a code for indicating the identity of a Vehicle. The VIN code of the automobile is the only and accurate automobile 'ID card' for identifying the automobile all over the world, and the VIN code is accompanied with the whole process from the registration, insurance, annual inspection, maintenance, repair to recovery and scrapping of the automobile. The history of automotive VIN dates back to 1949, but before 1981, the standards have been in transition. For example, the VIN code of the automobile in 1965-1969 has 9 bits, and 10 bits are adopted after the production exceeds 100 ten thousand in the same year; the automobile VIN code in 1970 and 1980 is fixed to 10 bits; the current automotive VIN code began in 1981.
The current 17-digit VIN code is specified by the Society of Automotive Engineers (SAE), as shown in FIG. 1. The VIN code of the automobile can be divided into 3 parts, and 1-3 parts are World manufacturing identity codes (WMI); 4-9 bits are Vehicle Description Section (VDS); positions 10-17 are the Vehicle Indicator Section (VIS).
Specifically, the first place in WMI may be used to represent a production country code (geographical region), for example, a-H for africa, J-R for asia, S-Z for europe, 6-7 for oceania, 1-5 north america, 8, 9, and 0 for south america, specifically, as shown in table 1, with each country being represented by a corresponding character code.
TABLE 1
Character code State of the country Character code State of the country Character code State of the country
1 USA J Japanese S Great Britain
2 Canada K Korea T Switzerland
3 Ink bagBrother (a kind of toy) L China V France
4 USA W Germany
6 Australia Y Sweden
9 Brazil rubber Z Italy (chemical vapor deposition)
The second bit in WMI is used to represent the car manufacturer code, where G is used to represent all brands belonging to a general car: buick, Cadillac, Chevrolet, Oldsmobile, Pontiac, Saturn. As shown in table 2, different car manufacturers are represented by different character codes.
TABLE 2
Figure GDA0001601670350000051
Figure GDA0001601670350000061
Bit 3 in WMI is used to represent the car type code, but different vendors have different interpretations, and some vendors may use the combined code of the first 3 bits of the car VIN code to represent a particular brand.
Specifically, the 4-8 bits in the VDS portion of the vehicle VIN code are used to represent vehicle characteristics. Wherein, 4-5 bits are used for representing the brand and series codes of the vehicle type; bit 6 represents a body type code; bit 7 is used to represent the passenger safety protection device code; bit 8 is used to represent the engine model code. The 9 th bit in the VDS is a check bit used for checking the vehicle VIN code according to a check algorithm, and the check bit can be represented by any one of numbers 0 to 9 or a letter "X".
Specifically, the 10 th digit in VIS in the VIN code of the automobile represents a model year, which is not necessarily the actual production year of the automobile, but generally differs from the actual production year by no more than 1 year. The 11 th bit in VIS represents the assembly plant, i.e. different assembly plants are represented by different codes. Positions 12-17 in VIS represent the delivery sequence number of the automobile, and are written by automobile manufacturers. Where the last four bits must be numbers.
It should be noted that the characters in the VIN code of the car cannot be I, O or Q (letters I, O and Q are similar to 1 and 0, and are not used), and as can be seen from the above description of the VIN code of the car, each bit in the VIN code has a specific meaning.
As shown in fig. 2, a general input keyboard is provided, on which all characters required for general input are included. If the universal input keyboard is invoked when the VIN code is entered, an input error may result because the input keyboard contains characters that are not likely to be included in the VIN code, such as the characters I, O and Q.
In order to solve the above problem, an embodiment of the present invention provides an input control method, which can determine possible characters of a current input bit according to a coding rule of a VIN code, adjust an input keyboard according to the character set, and perform instructive input when a maintenance worker or a vehicle owner inputs a VIN, thereby reducing an error probability when the VIN code is input.
An input control method, an input control device, and a computer-readable storage medium according to embodiments of the present invention are further described below.
Referring to fig. 3, fig. 3 is a schematic flowchart of an input control method according to an embodiment of the present invention. As shown in FIG. 3, the input control method includes steps 301 to 303, wherein:
301. and determining the current key-in position and the key-in character according to the vehicle identification code key-in instruction.
The input control device determines the current key-in position and the key-in character according to the vehicle identification code key-in instruction.
It should be noted that the vehicle identification code entering instruction includes a start input instruction for the vehicle identification code, a wake-up instruction for the vehicle identification code input interface, or a key-in instruction for a previous key-in position of a current key-in position of the vehicle identification code.
The current key-in position refers to a position to be currently keyed in on an input keyboard of the vehicle identification code; the typed characters of the vehicle identification code refer to characters already input on an input keyboard of the vehicle identification code, and it should be noted that the typed characters of the vehicle identification code can be empty or one or more digits; it is understood that the number of digits of the typed character of the vehicle identification code is at most 17 digits.
Further, the number of digits of the current key-in position of the vehicle identification code may be determined according to the number of characters of the key-in character, and specifically, the number of digits of the current key-in position is the number of characters of the key-in character plus 1. For example, if the VIN code to be input is LSVHJ133422218720, if the input control device determines that the character has been typed is LSVH; wherein, LSVH is the typed character, and the number of the typed character is 4, then the number of digits of the current keyed position is 4+1, that is, the 5 th digit.
It is noted that, as is known from the encoding rule of the vehicle identification code, the vehicle identification code is composed of numbers 0 to 9 and capital letters other than I, O or Q, and therefore, the typed characters of the vehicle identification code do not include characters such as I, O, Q or english lowercase letters.
302. And if the number of digits of the current keyed-in position is smaller than the rated number of digits of the vehicle identification code, determining a character set to be selected corresponding to the current keyed-in position according to the coding rule corresponding to the current keyed-in position and the keyed-in characters.
And if the number of the current key-in position is less than the rated number of the vehicle identification code, the input control device determines a character set to be selected corresponding to the current key-in position according to the coding rule corresponding to the current key-in position and the key-in characters.
And if the number of currently used VIN codes is 17, determining a character set to be selected corresponding to the currently keyed-in position according to a coding rule corresponding to the currently keyed-in position and the keyed-in characters as long as the number of currently keyed-in positions of the vehicle identification codes is less than 17.
And the character set to be selected corresponding to the current key-in position is a set of possible characters of the current key-in position. For example, if the current keyed position is the 1 st position of the vehicle identification code and the input character is null, then according to the encoding rule of the vehicle identification code: the 1 st position of the vehicle identification code is used to indicate the area of the vehicle manufacturer, specifically, A-H for Africa, J-R (excluding O and Q) for Asia, S-Z for Europe, 6-7 for Atlanta, 1-5 for North America, and 8, 9, and 0 for south America. Therefore, the character set to be selected of the current bonding position can be determined to be { A-H, J-N, P, R-Z, 0-9 }.
It should be noted that the current number of digits of the vehicle identification code is different, the current meaning of the vehicle identification code is different, and the corresponding encoding rules are also different. Further, the entered character of the vehicle identification code may affect the set of characters to be selected currently entered into the field. For example, if the number of bits of the current input bit is 2, the input character is L, and the first bit L represents china according to the encoding rule of the VIN code; and according to the 2 nd bit encoding rule, taking the identification code of the China automobile manufacturer as a candidate character set of the current input bit.
303. And adjusting the input keyboard according to the character set to be selected corresponding to the current key-in position.
And the input control device adjusts the input keyboard according to the character set to be selected corresponding to the current input position.
It should be noted that, in order to facilitate the vehicle maintenance person or the vehicle owner to input the VIN code, the input keyboard may be adjusted according to the candidate character set corresponding to the current key-in position of the vehicle identification code. The embodiment of the present invention is not limited to the specific implementation of adjusting the input keyboard.
According to the embodiment of the invention, the character set to be selected of the current keyed position can be determined according to the keyed characters of the vehicle identification code and the current input position, and the input keyboard is adjusted according to the character set to be selected of the current keyed position; therefore, when the VIN code is input by the automobile maintenance personnel or the automobile owner, the VIN code is input in an instructive manner, characters which cannot be contained in the VIN code are avoided, and the error probability of the VIN code input can be reduced.
Referring to fig. 4, fig. 4 is a schematic flow chart of another input control method according to an embodiment of the present invention, and as shown in fig. 4, the input control method includes steps 401 to 407, where:
401. and determining the current key-in position and the key-in character according to the vehicle identification code key-in instruction.
The input control device determines the current key-in position and the key-in character according to the vehicle identification code key-in instruction.
The vehicle identification code typing instruction comprises a starting input instruction for the vehicle identification code, a waking instruction for a vehicle identification code input interface or a typing instruction for a previous typing position of a current typing position of the vehicle identification code.
The current key position of the vehicle identification code is the current key position to be entered on the input keyboard, and the entered character is the character already entered on the input keyboard of the vehicle identification code.
It can be understood that, if the number of digits of the currently-keyed position is 1 and the keyed character is empty, the encoding rule corresponding to the currently-keyed position is the encoding rule of the region to which the vehicle manufacturer belongs, and step 402 is executed.
402. And determining a character set to be selected corresponding to the current key-in position according to the coding rule of the area to which the vehicle manufacturer belongs and the key-in characters which are empty.
And the input control device determines a character set to be selected corresponding to the current key-in position according to the coding rule of the area to which the vehicle manufacturer belongs and the key-in characters which are empty.
It should be noted that in the encoding rule of the vehicle identification code, there is a slight difference between different countries or automobile manufacturers in interpreting WMI in the VIN code. As shown in step 301 of the embodiment corresponding to fig. 3, the 1 st digit of the vehicle identification code is used to indicate the area of the vehicle manufacturer, but some automobile manufacturers need to combine the 1 st country code of the VIN code with the 2 nd manufacturer code to be able to distinguish between the two. Similarly, some manufacturers use the first 3-bit combination code of the VIN code to represent a particular brand, as shown in Table 3, and use a combination of 1-3 bit character codes of the VIN code to represent different automobile brands.
TABLE 3
Figure GDA0001601670350000091
It should be noted that, if the number of digits of the currently entered position is 1 and the entered character is null, it may be determined that the set of characters to be selected of the currently entered position is: { A-H, J-R, S-Z, 0-9 }.
It can be understood that, if the number of the currently keyed position is 9 and the coding rule corresponding to the currently keyed position is the verification rule of the vehicle identification code, step 403 is executed.
403. And determining a character set to be selected corresponding to the current key-in position according to the verification rule of the vehicle identification code and the key-in character.
And the input control device determines a character set to be selected corresponding to the current key-in position according to the verification rule of the vehicle identification code and the key-in characters.
It should be noted that the 9 th bit of the vehicle identification code is a check bit of the vehicle identification code, and is used for preventing an input error of the vehicle identification code. Specifically, each character {0-9, A-H, J-N, P, R-Z } in the VIN code corresponds to a number; setting a weighted value for 1-17 bits in the VIN code; multiplying the number corresponding to the character by the weighted value of the character from the first bit of the VIN code, and calculating the sum of products of 1-8 bits and 10-17 bits; and dividing the sum of the products by 11 to obtain the remainder, namely the value of the check bit. If the remainder is 10, the parity bit has a value of X.
It can be seen that the specific value of the check bit can be calculated when the 10-17 bits of the VIN code are known. However, according to the encoding rule of the check digit of the vehicle identification code, the 9 th-bit candidate character set of the vehicle identification code is {0-9, X }.
If the number of bits of the current key-in position is 10 and the coding rule corresponding to the current key-in position is the coding rule of the year of production of the vehicle, step 404 is executed.
404. And determining a character set to be selected corresponding to the current input position according to the coding rule of the vehicle production year and the typed characters.
The input control device determines a character set to be selected corresponding to the current input position according to the coding rule of the production year of the vehicle and the input characters.
Wherein, the 10 th bit of the vehicle identification code is the model year of the vehicle, namely the model year. The year corresponding to the 10 th character code of the vehicle identification code is shown in table 4, and different character codes represent different years.
TABLE 4
Character code Year of year Character code Year of year Character code Year of year Character code Year of year
B 1981 K 1989 V 1997 5 2005
C 1982 L 1990 W 1998 6 2006
D 1983 M 1991 X 1999 7 2007
E 1984 N 1992 Y 2000 8 2008
F 1985 P 1993 1 2001 9 2009
G 1986 R 1994 2 2002
H 1987 S 1995 3 2003
J 1988 T 1996 4 2004
It should be further noted that the model year specified by the manufacturer is not necessarily the actual year of production of the automobile, but generally differs from the actual year of production by no more than 1 year. Table 4 shows a correspondence table between each year of 1981-2009 in the vehicle identification code and the character code. In the embodiment of the invention, the character set to be selected in the current keyed position can be determined according to the scrappage of the vehicle. For example, if the Chinese scrap age is 10 years and the current time is 2009, the characters have been entered as follows: LSVHJ1330, the number of bits currently bonded is 9; then the currently entered character set to be selected is determined as X-Y, 1-9, based on table 4 and the age of the vehicle.
If the number of currently-keyed positions is 11 and the coding rule corresponding to the currently-keyed position is the coding rule of the vehicle assembly plant, step 405 is executed.
405. And determining a character set to be selected corresponding to the current key-in position according to the automobile manufacturer determined by the 1-3 key-in characters of the vehicle identification code, the automobile type determined by the 4-8 key-in characters of the vehicle identification code and the coding rule of the vehicle assembly factory.
The input control device determines a character set to be selected corresponding to the current key-in position according to the automobile manufacturing plant determined by the 1-3 key-in characters of the vehicle identification code, the automobile type determined by the 4-8 key-in characters of the vehicle identification code and the coding rule of the vehicle assembly plant.
Wherein, the 11 th bit of the vehicle identification code is a character representing a vehicle assembly factory. If the number of currently-keyed bits is 11, it is assumed that the first 10 bits of the vehicle identification code are known. According to the encoding rule of the vehicle identification code, the manufacturer of the automobile can be determined according to 1-3 bits of the VIN code; and the vehicle type of the vehicle can be determined according to 4-8 bits of the VIN code. Therefore, the character set corresponding to the vehicle model assembly factory under the corresponding vehicle model can be determined according to the vehicle manufacturing factory and the vehicle model.
If the number of currently-keyed bits is 12 to 17 and the encoding rule corresponding to the currently-keyed bit is the encoding rule of the vehicle delivery sequence number, step 406 is executed.
406. And determining a character set to be selected corresponding to the current keyed-in position according to the coding rule of the vehicle factory sequence number and the keyed-in characters.
And the input control device determines a character set to be selected corresponding to the current keying-in position according to the coding rule of the vehicle delivery sequence number and the keyed-in characters.
Wherein, 12-17 bits of the vehicle identification code are the delivery sequence number of the vehicle, and are set by an automobile manufacturer.
407. And adjusting the input keyboard according to the character set to be selected corresponding to the current key-in position.
And the input control device adjusts the input keyboard according to the character set to be selected corresponding to the current input position.
It should be noted that the input keyboard in the embodiment of the present invention may be adjusted on a system input keyboard on the input control device, or may be an input keyboard specially used for VIN code input determined according to a to-be-selected character set corresponding to a current key position.
As a possible implementation manner, a specific implementation manner of adjusting the input keyboard according to the to-be-selected character set corresponding to the current typing position is as follows: acquiring a character set contained in an input keyboard; deleting characters except the character set to be selected in the character set; and displaying characters in the character set to be selected on the input keyboard.
For example, if the number of currently-entered bits of the vehicle identification code is 1, the entered character is null. According to the coding rule of the vehicle identification code, the 1 st character set to be selected of the vehicle identification code is { A-H, J-N, P, R-Z, 0-9 }. The currently entered input keyboard may be adjusted in the manner of deleting characters as described above, and the adjusted input keyboard is as shown in fig. 5.
For example, if the number of currently-entered bits of the vehicle identification code is 9, the entered characters of the vehicle identification code are: "LSVHJ 133 _", where the underlining "_" indicates the current bonding position. According to the encoding rule of the vehicle identification code, if the 9 th-bit candidate character set of the vehicle identification code is {0-9, X }, the input keyboard of the current key-in position can be adjusted in the above character deleting manner, and the adjusted input keyboard is as shown in fig. 6.
In the above embodiment, only the characters in the currently entered optional character set are displayed on the basis of the system input keyboard.
Optionally, the specific implementation of adjusting the input keyboard according to the to-be-selected character set corresponding to the current typing position further includes: acquiring a character set contained in an input keyboard; and setting characters except the character set to be selected in the character set contained in the input keyboard to be in a non-enabled state, and setting the characters in the character set to be selected to be in an enabled state. That is to say: the method can set characters in a character set to be selected, in which a vehicle identification code is currently keyed in, to be in an enabled state on a general system input keyboard, and sets characters, except the character set to be selected, contained in the input keyboard to be in a non-enabled state. Therefore, when a vehicle maintenance person or a vehicle owner inputs the VIN code, the vehicle maintenance person or the vehicle owner cannot select characters except the character set to be selected, and the probability of error input of the vehicle identification code is reduced.
According to the embodiment of the invention, the character set to be selected of the current keyed position can be determined according to the current keyed position of the vehicle identification code and the keyed characters; adjusting an input keyboard according to the currently-keyed character set to be selected; therefore, when a vehicle maintenance person or a vehicle owner inputs the VIN code, the characters displayed on the input keyboard can be adjusted according to the current key-in position and the key-in characters, so that the characters which cannot appear in the VIN code are prevented from being input, and the probability of VIN input errors is reduced.
Referring to fig. 7, fig. 7 is a schematic block diagram of an input control device according to an embodiment of the present invention, where the input control device includes the following units:
the determining unit 701 is configured to determine a current key-in position and a key-in character according to the vehicle identification code key-in instruction.
The determining unit 701 is further configured to determine, if the number of bits of the current keyed-in position is smaller than the rated number of bits of the vehicle identification code, a to-be-selected character set corresponding to the current keyed-in position according to a coding rule corresponding to the current keyed-in position and the keyed-in characters.
An adjusting unit 702, configured to adjust an input keyboard according to the to-be-selected character set corresponding to the current key-in position.
As a possible implementation, if the number of digits of the currently-entered bit is 1, the entered character is null; the coding rule corresponding to the current bonding position is the coding rule of the area of the vehicle manufacturer; the determining unit 701 is specifically configured to:
and determining a character set to be selected corresponding to the current key-in position according to the coding rule of the area to which the vehicle manufacturer belongs and the key-in characters which are empty.
As a possible implementation, if the number of currently bonded bits is 9; the coding rule corresponding to the current key-in position is a verification rule of the vehicle identification code; the determining unit 701 is specifically configured to:
and determining a character set to be selected corresponding to the current key-in position according to the verification rule of the vehicle identification code and the key-in character.
As a possible implementation manner, if the number of bits of the current keyed position is 10, the coding rule corresponding to the current keyed position is the coding rule of the vehicle production year; the determining unit 701 is specifically configured to:
and determining a character set to be selected corresponding to the current input position according to the coding rule of the vehicle production year and the typed characters.
As a possible implementation manner, if the number of the current keyed position is 11, the coding rule corresponding to the current keyed position is a coding rule of a vehicle assembly plant; the determining unit 701 is specifically configured to:
and determining a character set to be selected corresponding to the current key-in position according to the automobile manufacturer determined by the 1-3 key-in characters of the vehicle identification code, the automobile type determined by the 4-8 key-in characters of the vehicle identification code and the coding rule of the vehicle assembly factory.
As a possible implementation manner, if the number of the current keyed position is 12-17, the coding rule corresponding to the current keyed position is a coding rule of a vehicle delivery sequence number; the determining unit 701 is specifically configured to:
and determining a character set to be selected corresponding to the current keyed-in position according to the coding rule of the vehicle factory sequence number and the keyed-in characters.
As a possible implementation manner, the adjusting unit 702 is specifically configured to:
acquiring a character set contained in an input keyboard; and deleting the characters in the character set except the character set to be selected.
As an optional implementation manner, the adjusting unit 702 is further specifically configured to:
the method comprises the steps of obtaining a character set contained in an input keyboard, setting characters except a character set to be selected in the character set contained in the input keyboard to be in a non-enabling state, and setting the characters in the character set to be selected to be in an enabling state. It can be understood that the characters in the non-enabled state on the input keyboard are in the non-editable state, so that the characters outside the character set to be selected can be prevented from being selected when the VIN code is input by a vehicle maintenance person or a vehicle owner, and the error probability of the VIN code input is reduced.
Fig. 8 is a schematic block diagram of an input control device according to another embodiment of the present invention. The apparatus in this embodiment may include: one or more processors 801, one or more input devices 802, one or more output devices 803, and memory 804. The processor 801, the input device 802, the output device 803, and the memory 804 described above are connected by a bus 805.
It should be understood that in the present embodiment, the Processor 801 may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 802 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 803 may include a display (LCD, etc.), a speaker, etc.
The memory 804 may include both read-only memory and random access memory, and provides instructions and data to the processor 801. A portion of the memory 804 may also include non-volatile random access memory. For example, the memory 804 may also store device type information.
In an embodiment of the present invention, one or more instructions stored in a computer storage medium are loaded and executed by the processor 801 to implement the corresponding steps of the method flows shown in fig. 3 or fig. 4; in particular implementations, one or more instructions in the computer storage medium are loaded by the processor 801 and perform the following steps:
determining the current key-in position and the key-in character according to the vehicle identification code key-in instruction; if the number of digits of the current keyed-in position is smaller than the rated number of digits of the vehicle identification code, determining a character set to be selected corresponding to the current keyed-in position according to a coding rule corresponding to the current keyed-in position and the keyed-in characters; and adjusting the input keyboard according to the character set to be selected corresponding to the current key-in position.
As a possible implementation, if the number of digits of the currently-entered bit is 1, the entered character is null; the coding rule corresponding to the current bonding position is the coding rule of the area of the vehicle manufacturer; the specific implementation manner of determining the character set to be selected corresponding to the current keyed-in position according to the coding rule corresponding to the current keyed-in position and the keyed-in characters is as follows: and determining a character set to be selected corresponding to the current key-in position according to the coding rule of the area to which the vehicle manufacturer belongs and the key-in characters which are empty.
As a possible implementation manner, if the number of the current keyed-in position is 9, the coding rule corresponding to the current keyed-in position is a verification rule of the vehicle identification code; the specific implementation manner of determining the character set to be selected corresponding to the current keyed-in position according to the coding rule corresponding to the current keyed-in position and the keyed-in characters is as follows: and determining a character set to be selected corresponding to the current key-in position according to the verification rule of the vehicle identification code and the key-in character.
As a possible implementation manner, if the number of bits of the current keyed position is 10, the coding rule corresponding to the current keyed position is the coding rule of the vehicle production year; the specific implementation manner of determining the character set to be selected corresponding to the current keyed-in position according to the coding rule corresponding to the current keyed-in position and the keyed-in characters is as follows: and determining a character set to be selected corresponding to the current input position according to the coding rule of the vehicle production year and the typed characters.
As a possible implementation manner, if the number of the current keyed position is 11, the coding rule corresponding to the current keyed position is a coding rule of a vehicle assembly plant; the specific implementation manner of determining the character set to be selected corresponding to the current keyed-in position according to the coding rule corresponding to the current keyed-in position and the keyed-in characters is as follows: and determining a character set to be selected corresponding to the current key-in position according to the automobile manufacturer determined by the 1-3 key-in characters of the vehicle identification code, the automobile type determined by the 4-8 key-in characters of the vehicle identification code and the coding rule of the vehicle assembly factory.
As a possible implementation manner, if the number of the current keyed position is 12-17, the coding rule corresponding to the current keyed position is a coding rule of a vehicle delivery sequence number; the specific implementation manner of determining the character set to be selected corresponding to the current keyed-in position according to the coding rule corresponding to the current keyed-in position and the keyed-in characters is as follows: and determining a character set to be selected corresponding to the current keyed-in position according to the coding rule of the vehicle factory sequence number and the keyed-in characters.
As a possible implementation manner, a specific implementation manner of adjusting the input keyboard according to the to-be-selected character set corresponding to the current typing position is as follows: acquiring a character set contained in an input keyboard; and deleting the characters in the character set except the character set to be selected.
As an alternative implementation, the processor 801 further performs the following steps:
the method comprises the steps of obtaining a character set contained in an input keyboard, setting characters except a character set to be selected in the character set contained in the input keyboard to be in a non-enabling state, and setting the characters in the character set to be selected to be in an enabling state. It can be understood that the characters in the non-enabled state on the input keyboard are in the non-editable state, so that the characters outside the character set to be selected can be prevented from being selected when the VIN code is input by a vehicle maintenance person or a vehicle owner, and the error probability of the VIN code input is reduced.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a number of embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. An input control method, characterized in that the method comprises:
determining the current key-in position and the key-in character according to the vehicle identification code key-in instruction;
if the number of bits of the current keyed-in position is smaller than the rated number of bits of the vehicle identification code, determining a character set to be selected corresponding to the current keyed-in position according to a coding rule corresponding to the current keyed-in position and the keyed-in characters;
adjusting an input keyboard according to the character set to be selected corresponding to the current typing position, comprising: acquiring a character set contained in the input keyboard;
and deleting the characters except the character set to be selected in the character set.
2. The method of claim 1, wherein the current keyed bit has a digit of 1, and the keyed character is null; the coding rule corresponding to the current bonding position is a coding rule of a region of a vehicle manufacturer;
determining a character set to be selected corresponding to the current typing position according to the coding rule corresponding to the current typing position and the typed characters, wherein the character set to be selected corresponding to the current typing position comprises the following steps:
and determining a character set to be selected corresponding to the current input position according to the coding rule of the area to which the vehicle manufacturer belongs and the input characters which are empty.
3. The method of claim 1, wherein the number of the current keyed-in position is 9, and a coding rule corresponding to the current keyed-in position is a check rule of the vehicle identification code;
determining a character set to be selected corresponding to the current typing position according to the coding rule corresponding to the current typing position and the typed characters, wherein the character set to be selected corresponding to the current typing position comprises the following steps:
and determining a character set to be selected corresponding to the current keyed-in position according to the verification rule of the vehicle identification code and the keyed-in characters.
4. The method of claim 1, wherein the current key-in position has a digit of 10, and the coding rule corresponding to the current key-in position is a coding rule of a vehicle year of production;
determining a character set to be selected corresponding to the current typing position according to the coding rule corresponding to the current typing position and the typed characters, wherein the character set to be selected corresponding to the current typing position comprises the following steps:
and determining a character set to be selected corresponding to the current input position according to the coding rule of the vehicle production year and the input characters.
5. The method of claim 1, wherein the number of the current keyed position is 11, and the coding rule corresponding to the current keyed position is a coding rule of a vehicle assembly plant;
determining a character set to be selected corresponding to the current typing position according to the coding rule corresponding to the current typing position and the typed characters, wherein the character set to be selected corresponding to the current typing position comprises the following steps:
and determining a character set to be selected corresponding to the current input position according to the automobile manufacturing plant determined by the 1-3 bit input characters of the vehicle identification code, the automobile type determined by the 4-8 bit input characters of the vehicle identification code and the coding rule of the vehicle assembly plant.
6. The method according to claim 1, wherein the number of the current keyed position is 12-17, and the coding rule corresponding to the current keyed position is a coding rule of a vehicle factory sequence number;
determining a character set to be selected corresponding to the current typing position according to the coding rule corresponding to the current typing position and the typed characters, wherein the character set to be selected corresponding to the current typing position comprises the following steps:
and determining a character set to be selected corresponding to the current keyed-in position according to the coding rule of the vehicle factory sequence number and the keyed-in characters.
7. An input control device, characterized by comprising means for performing the method of any of claims 1-6.
8. An input control apparatus comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1 to 6.
9. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method according to any of claims 1-6.
CN201711485529.7A 2017-12-29 2017-12-29 Input control method and device Active CN108287612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711485529.7A CN108287612B (en) 2017-12-29 2017-12-29 Input control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711485529.7A CN108287612B (en) 2017-12-29 2017-12-29 Input control method and device

Publications (2)

Publication Number Publication Date
CN108287612A CN108287612A (en) 2018-07-17
CN108287612B true CN108287612B (en) 2021-09-07

Family

ID=62831945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711485529.7A Active CN108287612B (en) 2017-12-29 2017-12-29 Input control method and device

Country Status (1)

Country Link
CN (1) CN108287612B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968602A (en) * 2012-10-31 2013-03-13 北京奇虎科技有限公司 Setting method and device for keyboard
CN103076889A (en) * 2012-03-14 2013-05-01 林天淼 System input method based on position sensing
CN103813019A (en) * 2014-03-03 2014-05-21 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting input interface
CN104020851A (en) * 2014-06-17 2014-09-03 安徽猎豹汽车有限公司 Input device and method for vehicle information codes
CN105183178A (en) * 2015-09-06 2015-12-23 广州南馨网络科技有限公司 Virtual VIN input keyboard and operation method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101925221A (en) * 2009-06-17 2010-12-22 漳州灿坤实业有限公司 Dimming lamp
US20140176352A1 (en) * 2012-12-21 2014-06-26 Apple Inc. Computer keyboard key scan shared matrix with an individual led per key

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103076889A (en) * 2012-03-14 2013-05-01 林天淼 System input method based on position sensing
CN102968602A (en) * 2012-10-31 2013-03-13 北京奇虎科技有限公司 Setting method and device for keyboard
CN103813019A (en) * 2014-03-03 2014-05-21 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting input interface
CN104020851A (en) * 2014-06-17 2014-09-03 安徽猎豹汽车有限公司 Input device and method for vehicle information codes
CN105183178A (en) * 2015-09-06 2015-12-23 广州南馨网络科技有限公司 Virtual VIN input keyboard and operation method thereof

Also Published As

Publication number Publication date
CN108287612A (en) 2018-07-17

Similar Documents

Publication Publication Date Title
WO2019184217A1 (en) Hotspot event classification method and apparatus, and storage medium
CN107785021B (en) Voice input method, device, computer equipment and medium
CN112016304A (en) Text error correction method and device, electronic equipment and storage medium
US10242296B2 (en) Method and device for realizing chinese character input based on uncertainty information
CN114153962A (en) Data matching method and device and electronic equipment
CN110990276A (en) Automatic testing method and device for interface field and storage medium
CN110110162A (en) A method of VIN code is verified by VIN code check position standard weighting algorithm
US20220067291A1 (en) System and method for phonetic hashing and named entity linking from output of speech recognition
CN113536771B (en) Element information extraction method, device, equipment and medium based on text recognition
CN114092949A (en) Method and device for training class prediction model and identifying interface element class
CN110472063B (en) Social media data processing method, model training method and related device
CN108287612B (en) Input control method and device
CN108279784B (en) Input control method and device
CN111104400A (en) Data normalization method and device, electronic equipment and storage medium
US20110298719A1 (en) Method and apparatus for inputting chinese characters
CN111241262A (en) Loan qualification auditing method based on artificial intelligence and related equipment
CN106681850B (en) A kind of vehicle model method of calibration and device
CN110929514B (en) Text collation method, text collation apparatus, computer-readable storage medium, and electronic device
CN110281710B (en) Identification method, device, equipment and storage medium of tire pressure sensor
CN116737882A (en) Vehicle-mounted fault analysis method and device, computer equipment and storage medium
CN111460293A (en) Information pushing method and device and computer readable storage medium
CN107392260B (en) Error calibration method and device for character recognition result
CN111738005A (en) Named entity alignment method and device, electronic equipment and readable storage medium
CN110647785B (en) Method and device for identifying accuracy of input text and electronic equipment
CN113515591A (en) Text bad information identification method and device, electronic equipment and storage medium

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