CN111045530B - Method and equipment for simulating multinational language keyboard output by embedded bar code reading equipment - Google Patents

Method and equipment for simulating multinational language keyboard output by embedded bar code reading equipment Download PDF

Info

Publication number
CN111045530B
CN111045530B CN201911311046.4A CN201911311046A CN111045530B CN 111045530 B CN111045530 B CN 111045530B CN 201911311046 A CN201911311046 A CN 201911311046A CN 111045530 B CN111045530 B CN 111045530B
Authority
CN
China
Prior art keywords
bar code
mapping table
character
key value
keyboard
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
CN201911311046.4A
Other languages
Chinese (zh)
Other versions
CN111045530A (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.)
Fuzhou Symbol Information Technology Co ltd
Original Assignee
Fuzhou Symbol Information 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 Fuzhou Symbol Information Technology Co ltd filed Critical Fuzhou Symbol Information Technology Co ltd
Priority to CN201911311046.4A priority Critical patent/CN111045530B/en
Publication of CN111045530A publication Critical patent/CN111045530A/en
Application granted granted Critical
Publication of CN111045530B publication Critical patent/CN111045530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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 invention relates to a method for simulating multinational language keyboard output by an embedded bar code reading device, wherein more than two character key value mapping tables are stored in the bar code reading device, and the bar code reading device enables the national language keyboard according to the national language corresponding to the information contained in the bar code; the bar code reading equipment collects bar code images and performs decoding attempt, and bar code decoding data are successfully obtained through decoding; analyzing the bar code decoding data to obtain character information to be output; searching key value information in a character key value mapping table corresponding to the language keyboard according to the character information to obtain key value information corresponding to the character information, and sending the key value information to an upper computer; and the upper computer outputs corresponding characters according to the key value information. The invention adopts various mapping tables, and invokes one of the national language keyboards and the corresponding mapping table through the switching instruction, so that the bar code reading equipment supports the use of a plurality of national languages, and the firmware is not updated.

Description

Method and equipment for simulating multinational language keyboard output by embedded bar code reading equipment
Technical Field
The invention relates to a method and equipment for simulating multi-language keyboard output by embedded bar code reading equipment, belonging to the field of bar code reading.
Background
The embedded bar code reading equipment simulates keyboard output to be based on a communication mode of USB HID, and particularly, the embedded bar code reading equipment is used as a virtual keyboard to convert the scanned bar code content into keyboard events, and the upper computer receives the input of the virtual keyboard like receiving the input of a real keyboard. When the embedded bar code reading device simulates a keyboard to output characters, the bar code reading device sends key values of key positions where the characters are located, and the upper computer outputs corresponding characters after receiving the key values.
Referring to fig. 1, the current embedded bar code reading device simulates keyboard output, and the main method is that the bar code reading device decodes to obtain a binary data stream containing bar code content, and the simulated keyboard output program analyzes the binary data stream according to the character encoding rule to obtain corresponding character information. In general, each character of most countries (or regions) can find a corresponding key position on a corresponding country (or region) keyboard, and each key position has a uniquely determined key value, so that only the key value of the key position where the character is located needs to be sent to output the characters, and the upper computer outputs the corresponding character after receiving the key value. The output method is basically adopted for the analog keyboard output of the current embedded bar code reading equipment, but the keyboard layout of different countries (or regions) is different, so that the problem that the analog keyboard output of different countries (or regions) cannot be commonly used is caused.
In the increasing popularity of cross-border electronic commerce, sales objects of the embedded bar code reading equipment have diversity and uncertainty. Customer objects of the same money of product relate to different countries (or regions), and the use of existing single analog keyboard outputs between different countries (or regions) is often not universally applicable. Therefore, how to solve the problem that users with different languages can normally simulate the keyboard to output characters when buying the same product is one of the technical problems that the embedded bar code recognition equipment simulates the keyboard to output the current urgent need to be solved.
At present, when the embedded bar code reading equipment needs to switch the national language, the embedded bar code reading equipment needs to be supported by means of firmware upgrading and the like, so that the use cost is greatly increased.
Disclosure of Invention
In order to solve the technical problems, the invention provides a method for simulating multi-country language keyboard output by an embedded bar code reading device, which adopts a mode of switching a plurality of mapping tables, and enables one country language keyboard and a corresponding mapping table through a switching instruction to realize multi-country language simulated keyboard output, and can support characters of a plurality of countries without upgrading firmware.
The first technical scheme of the invention is as follows:
the method comprises the steps that an embedded bar code reading device simulates multi-language keyboard output, more than two character key value mapping tables are stored in the bar code reading device, one character key value mapping table corresponds to a language keyboard of one country, each character of the language is correspondingly provided with a key position on the language keyboard, and each key position corresponds to a unique key value; the method performs the steps of: according to the country language corresponding to the information contained in the bar code, enabling the bar code reading device to start the country language keyboard; the bar code reading equipment collects bar code images and performs decoding attempt, and bar code decoding data are successfully obtained through decoding; analyzing the bar code decoding data to obtain character information to be output; searching key value information in a character key value mapping table corresponding to the language keyboard according to the character information to obtain key value information corresponding to the character information, and sending the key value information to an upper computer; and the upper computer outputs corresponding characters according to the key value information.
More preferably, the barcode reader further stores at least one coding rule mapping table, one coding rule mapping table corresponds to a coding rule of a country language, characters of the country language have no corresponding key positions on a keyboard, and the coding rule mapping table establishes a mapping relation between unicode coding values and the national language character coding values, specifically: the bar code reading equipment converts the character information into a unicode code value, searches a corresponding character code value in a code rule mapping table corresponding to the language keyboard according to the unicode code value, and converts the character code value into a decimal code number; the bar code reading equipment sends a zone bit code decoding start instruction to the upper computer, then sends key values of the digits in the coded number one by one, and then sends a zone bit code decoding end instruction to the upper computer; the key values corresponding to the numbers are sequentially combined together to form key value information which can be identified by the zone bit code mapping table; and the upper computer receives the command of ending decoding the sending area bit code, calls the area bit code mapping table of the upper computer to analyze the key value information, and outputs corresponding characters.
More preferably, the bar code reading device further stores a control character mapping table, and the control character mapping table contains the mapping relation between control characters and key values; the bar code reading equipment determines the character information as control character information according to the code value of the character information; the bar code reading equipment searches the control character mapping table according to the character information to obtain key value information corresponding to the character information; and the upper computer executes corresponding operation according to the key value information.
More preferably, the barcode reader enables a national language keyboard, in particular: each language keyboard corresponds to a set bar code, the bar code reading equipment scans the set bar code corresponding to the language keyboard according to the country language corresponding to the information contained in the bar code, and the bar code reading equipment starts the language keyboard after decoding and analyzing.
More preferably, the coding rule mapping table is at least one of a GB2312 coding rule mapping table, a GBK coding rule mapping table, a GB18030 coding rule mapping table, a shift_jis coding rule mapping table, and an EUCKR coding rule mapping table.
The invention also provides embedded bar code reading equipment for simulating multi-language keyboard output.
The technical scheme II of the invention is as follows:
the embedded bar code reading equipment for simulating the multi-language keyboard output comprises a processor and a memory, wherein an operation instruction and more than two character key value mapping tables are stored in the memory, one character key value mapping table corresponds to the language keyboard of one country, each character of the national language is correspondingly provided with a key position on the language keyboard, and each key position corresponds to a unique key value; the execution instructions are loaded by the processor and perform the steps of: according to the country language corresponding to the information contained in the bar code, enabling the bar code reading device to start the country language keyboard; the bar code reading equipment collects bar code images and performs decoding attempt, and bar code decoding data are successfully obtained through decoding; analyzing the bar code decoding data to obtain character information to be output; searching key value information in a character key value mapping table corresponding to the language keyboard according to the character information to obtain key value information corresponding to the character information, and sending the key value information to an upper computer; and the upper computer outputs corresponding characters according to the key value information.
More preferably, the memory further stores at least one coding rule mapping table, one coding rule mapping table corresponds to a coding rule of a country language, characters of the country language have no corresponding key positions on a keyboard, and the coding rule mapping table establishes a mapping relation between unicode coding values and character coding values of the country language, specifically: the bar code reading equipment converts the character information into a unicode code value, searches a corresponding character code value in a code rule mapping table corresponding to the language keyboard according to the unicode code value, and converts the character code value into a decimal code number; the bar code reading equipment sends a zone bit code decoding start instruction to the upper computer, then sends key values of the digits in the coded number one by one, and then sends a zone bit code decoding end instruction to the upper computer; the key values corresponding to the numbers are sequentially combined together to form key value information which can be identified by the zone bit code mapping table; and the upper computer receives the command of ending decoding the sending area bit code, calls the area bit code mapping table of the upper computer to analyze the key value information, and outputs corresponding characters.
More preferably, a control character mapping table is stored in the memory, and the control character mapping table contains the mapping relation between control characters and key values; the bar code reading equipment determines the character information as control character information according to the code value of the character information; the bar code reading equipment searches the control character mapping table according to the character information to obtain key value information corresponding to the character information; and the upper computer executes corresponding operation according to the key value information.
More preferably, the barcode reader enables a national language keyboard, in particular: each language keyboard corresponds to a set bar code, the bar code reading equipment scans the set bar code corresponding to the language keyboard according to the country language corresponding to the information contained in the bar code, and the bar code reading equipment starts the language keyboard after decoding and analyzing.
More preferably, the coding rule mapping table is at least one of a GB2312 coding rule mapping table, a GBK coding rule mapping table, a GB18030 coding rule mapping table, a shift_jis coding rule mapping table, and an EUCKR coding rule mapping table.
The invention has the following beneficial effects:
1. the invention adopts a plurality of character key value mapping tables, and invokes one of the country language keyboards and the corresponding mapping table through the switching instruction, so that one bar code reading device supports the use of a plurality of country languages, and firmware is not updated.
2. The invention adopts the mapping table of the key values of a plurality of characters and the mapping table of the coding rules, not only can support the keyboard output of the one-to-one correspondence between the characters and the key values on the keyboard, but also can realize the keyboard output under the condition that the characters and the key values of the keyboard are not corresponding in a mode of mapping the key values by the area code, thereby realizing that one bar code reading device supports the use of more languages of China and has wider application range.
3. The invention adopts the character key value mapping table, the coding rule mapping table and the control character mapping table, so that the coverage range of the character information which can be simulated and output by the bar code reading equipment is wider, and the reading and decoding capabilities of the bar code reading equipment are improved.
4. The invention switches the national language keyboard by setting the bar code, reduces the hardware development cost and has more convenient operation.
5. The invention is especially suitable for the national language that the characters such as Chinese, korean, japanese and the like can not find the completely corresponding key position on the keyboard, and the analog output function of the keyboard is stronger.
Drawings
FIG. 1 is a flow chart of the keyboard output of an embedded bar code reader in the prior art;
FIG. 2 is a flow chart of a first embodiment of the present invention;
FIG. 3 is a flow chart of a second embodiment of the present invention;
fig. 4 is a flowchart of a third embodiment of the present invention.
Detailed Description
The invention will now be described in detail with reference to the drawings and to specific embodiments.
Example 1
Referring to fig. 2, an embedded barcode reader simulates a multi-language keyboard output method, wherein the barcode reader stores more than two character key value mapping tables, one character key value mapping table corresponds to a language keyboard of a country, each character of the country language is correspondingly provided with a key position on the language keyboard, and each key position corresponds to a unique key value; for example, the American keyboard, the Russian keyboard and the Thai keyboard can find the corresponding key position on the language keyboard of the country, so that the key value of the character can be quickly determined. The method performs the steps of: according to the country language corresponding to the information contained in the bar code, enabling the bar code reading device to start the country language keyboard; there are various ways to enable a national language keyboard on the barcode reader, for example, a keyboard switching key is set on the barcode reader, an instruction is sent by the key to enable the national language keyboard on the barcode reader, or an instruction is sent by the upper computer to the barcode reader to enable the corresponding national language keyboard; preferably, the following manner is adopted in this embodiment: providing a plurality of setting bar codes for users, wherein each language keyboard corresponds to a setting bar code, the bar code reading equipment scans the setting bar codes corresponding to the language keyboards according to the country language corresponding to the information contained in the bar codes, and the bar code reading equipment starts the language keyboards after decoding and analyzing. The bar code reading equipment collects bar code images and performs decoding attempt, and bar code decoding data are successfully obtained through decoding; the decoding data is a binary data stream containing bar code content; the decoded data is analyzed to obtain character information (namely character code value) to be output, and the conventional barcode character coding mode mostly adopts UTF-8, so that the decoded data is analyzed by default according to a UTF-8 character coding rule to obtain character information, namely hexadecimal numbers corresponding to each character. And searching key value information in a character key value mapping table corresponding to the language keyboard according to the character information, obtaining key value information corresponding to the character information, sending the key value information to an upper computer, and establishing a mapping relation between each character and a key value in the character key value mapping table. The bar code reading equipment sends key value information to the upper computer in a mode of simulating a USB keyboard, and the upper computer outputs corresponding characters on the text editor according to the key value information.
One implementation of the character key value mapping table will now be described:
s1, firstly, determining characters supported by a national standard keyboard of the country to output, and then taking UTF8 coding values of the characters as indexes of final output key value information;
s2, simulating the output mode of each character according to the national standard keyboard layout and the keystroke sequence of the country: such as uppercase a, requires two steps: firstly, ensuring that the capsule lock is in a capitalized state, namely, the capsule lock is in a pressed state; next, the a key is pressed.
S3, when a character key value mapping table of the national language keyboard is formulated, the first column is a UTF8 coding value of a character, the second column to the fifth column are output key values, and the default value of the blank column is 0. For example, the UTF8 code value of uppercase a is 0x41 (the UTF8 code value of lowercase a is different from uppercase a), so that whether a uppercase a or lowercase a is to be output can be directly determined according to the UTF8 code value, the key value of letter a is 0x04, the key value of caps Lock is 0x39, and the mapping relation of uppercase a in the character key mapping table is recorded as follows: {0x41,0x04,0x39,0x00 }, five columns total, the first column being UTF8 encoded values and the second to five columns being key values.
The embodiment adopts a mode of switching a plurality of character key value mapping tables, and realizes that one bar code reading device supports the use of a plurality of national languages.
Example two
For language characters of Chinese, japanese, korean and other countries, the completely corresponding key positions cannot be found on the keyboard, so that on the basis of the first embodiment, a coding rule mapping table is added, which is specifically as follows:
referring to fig. 3, the barcode reader further stores at least one coding rule mapping table, one of the coding rule mapping tables corresponds to one coding rule of a country language, the text of the country language has no corresponding key position on the keyboard, the coding rule mapping table establishes a mapping relationship between a unicode coding value and the text coding value of the country language, for example, for chinese characters, the selectable coding rule mapping table includes a GB2312 coding rule mapping table, a GBK coding rule mapping table, and a GB18030 coding rule mapping table, for japanese characters, a shift_jis coding rule mapping table may be used, for korean characters, an EUCKR coding rule mapping table may be used, in the barcode reader, the corresponding coding rule mapping table may be simultaneously stored, and the barcode reader selects one of the coding rule mapping tables according to the enabled language keyboard, for chinese characters, and also according to the coding rule adopted by the upper computer region bit mapping table. When the Chinese language keyboard is started, different Chinese coding rules can be distinguished through three different instructions or three setting bar codes, so that the correct coding rule mapping table is called by the note code reading equipment to convert character information. Specifically: the bar code reading equipment converts the character information into a unicode code value, searches a corresponding character code value in a code rule mapping table corresponding to the language keyboard according to the unicode code value, and converts the character code value into a decimal code number; the bar code reading equipment sends a zone bit code decoding start instruction to an upper computer, and then the key values of the digits in the coded numbers are sent one by one, and the key values corresponding to the digits in the decimal coded numbers are sequentially combined together, so that key value information which can be identified by a zone bit code mapping table is formed; then sending a region code decoding end instruction to the upper computer; and the upper computer receives the command of ending decoding the sending area bit code, calls an area bit code mapping table of the upper computer to analyze the key value information, and outputs corresponding characters on the text editor according to the key value information.
Taking a Chinese coding rule mapping table as an example, one implementation of the coding rule mapping table is described:
s10, obtaining GBK coding values of each Chinese character according to Chinese character internal code extension standards;
s20, obtaining Unicode values of each Chinese character according to the Unicode character set;
s30, when a Chinese coding rule mapping table is manufactured, the first column is a Unicode value of a word, and the second column is a word coding value of the Chinese language, namely a GBK coding value;
the partial coding rule mapping table is as follows, the first column is Unicode code value, the second column is GBK code value (i.e. literal code value):
0x4ed2,0x8198,/
0x4ED3,0x B2D6,/cabin
0x4 d4,0x 7d0, "/x-
0x4ED5,0x CACB,/Shi
For example, to output the Chinese character "you" in the text editor on Windows system, the Chinese coding rule selects GBK coding. The binary 11100100,10111101,10100000 coded by UTF8 of 'you' converts the UTF8 coding value into Unicode to obtain a Unicode binary 0100,111101,100000 (generally, in the coding rule mapping table, the binary Unicode is converted into a Unicode of 16 system, the operation is more convenient), the coding rule mapping table is queried to obtain a corresponding text coding value of GBK of 0xC4E3, the coding rule mapping table is converted into a decimal 50403, then a sent area bit code decoding start instruction-key value information of 'pressing ALT keys and holding' is sent, meanwhile, key values of 5,0,4,0,3 five numbers are sent sequentially, finally, an area bit code decoding end instruction-key value information of 'releasing ALT keys' is sent, and 'you' words can be output in a text editor of an upper computer.
The conversion relation between UTF8 and Unicode is known in the art, and is specifically as follows:
the left column is Unicode encoded value and the right column is UTF8 encoded value:
U-00000000-U-0000007F:0xxxxxxx
U-00000080-U-000007FF:110xxxxx 10xxxxxx
U-00000800-U-0000FFFF:1110xxxx 10xxxxxx 10xxxxxx
U-00010000-U-001FFFFF:11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
U-00200000-U-03FFFFFF:111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx U-04000000-U-7FFFFFFF:1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx10xxxxxx
the embodiment adopts a plurality of character key value mapping tables and is assisted with a coding rule mapping table, so that not only can the key value output of one-to-one correspondence between characters and key values on a keyboard be supported, but also the keyboard output under the condition that characters such as Chinese, korean, japanese and the like are not corresponding to the key values of the keyboard can be realized by adopting a mode of mapping the key values by using area codes, and the use of more languages of China can be supported by one bar code reading device.
Example III
In addition to the visible character information, the decoded data may also include some invisible control characters that operate on characters or characters, such as carriage returns, spaces, user-defined control characters, etc., so that the third embodiment also provides a control character mapping table, where the control character mapping table may be applied in combination with the first embodiment, the second embodiment, or both the first embodiment and the second embodiment. Specifically, the keyboard output implementation manner including the control character mapping table is as follows:
the bar code reading equipment is internally provided with a control character mapping table which comprises a mapping relation between control characters and key values; the bar code reading equipment determines the character information as control character information according to the code value of the character information; the bar code reading equipment searches the control character mapping table according to the character information to obtain key value information corresponding to the character information; and the upper computer executes corresponding operation according to the key value information.
It should be noted that, the range of the coding value of the control character is generally 0x00-0x 20, the barcode reader can determine whether the control character is the control character according to the coding value, the layout and the key value of the invisible characters on the keyboard are the same, and the output modes are the same, so that the invisible characters of all countries (or regions) can be uniformly defined into a control character mapping table, and the control character mapping table can be used as a mapping table for searching the output key value when the invisible control characters are output.
One implementation of the control character map is now described:
s100, the UTF8 coding value of the control character is between 0x00 and 0x1f, wherein the UTF8 coding value of the DEL key is 0x7f;
s200, determining an output method of the control characters,
the UTF8 code value is 0x08, the BackSpace corresponds to the "BackSpace key",
the UTF8 code value is 0x09, the horizontal TAB corresponds to the "TAB key",
UTF8 code value is 0x0A, and line feed corresponds to "down direction key"
The UTF8 code value is 0x0D, the carriage return corresponds to the Enter key,
UTF8 code value is 0x7F, delete the corresponding "Delete key"
S300, when the control character mapping table is manufactured, the first column is the UTF8 coding value of the control character, the second column to the fifth column are the output key values, and the default value of the blank column is 0. For example, "UTF 8 code value of carriage return is 0x0D, the corresponding key value is 0x28, and {0x08,0x28,0x00 } is in the mapping table
In the embodiment, the character mapping table is newly added to enable the coverage range of character information which can be simulated and output by the bar code reading equipment to be wider, and the reading capability of the bar code reading equipment is improved.
Referring to fig. 4, the steps of the preferred embodiment of the present invention are as follows:
step 1, starting up and initializing bar code reading equipment, and starting up a factory default simulated keyboard output mode, which is generally American simulated keyboard;
step 2, judging whether a command for switching the national (or regional) keyboard is received, if yes, switching to a new national (or regional) language keyboard, and if no, executing the step 3;
step 3, the bar code reading equipment scans the bar code image and decodes the bar code image to obtain a decoded data stream;
step 4, analyzing the data stream according to the UTF8 character encoding rule to obtain character information;
step 5, carrying out preliminary judgment on each character information, if the character information is a visible character, calling a corresponding mapping table according to a currently set language keyboard if the character information is the visible character, executing step 6 if the enabled language keyboard is that the character has a one-to-one corresponding key value on the keyboard, otherwise, executing step 7, and executing step 8 if the character information is the invisible character;
step 6, inquiring the corresponding key value according to the character coding value (namely character information) in the character key value mapping table, then sending the key value information to the upper computer in a mode of simulating a USB keyboard, and outputting the corresponding character on the text editor after the upper computer acquires the key value information;
step 7, converting the character information into unicode code values, inquiring the character code values corresponding to the character information in a code rule mapping table corresponding to the enabled language keyboard, converting the character code values into decimal code numbers, taking Chinese, korean and Japanese as examples in the figure, converting an output character code mode into GBK code if the Chinese code mode is the Chinese code mode, converting into shift_JIS code if the Chinese code mode is the Japanese code mode, and converting into EUC_KR code if the Korean code mode is the Korean code mode; then sending a zone bit code decoding start instruction to a computer, sequentially sending key values corresponding to the digits in the decimal number coding number, and after the sending is finished, sending a zone bit code decoding end instruction to the computer; the computer calls the zone bit code mapping table to decode the received key value and display the character;
and 8, inquiring a key value corresponding to the character information in the control character mapping table, then sending the key value information to the upper computer in a mode of simulating a USB keyboard, and executing corresponding operation after the upper computer acquires the key value information.
Example IV
Referring to fig. 2 to 4, an embedded bar code reading device for simulating multi-language keyboard output includes a processor and a memory, wherein the memory stores an operation instruction and more than two character key value mapping tables, one character key value mapping table corresponds to a language keyboard of a country, each character of the country language is correspondingly provided with a key position on the language keyboard, and each key position corresponds to a unique key value; the execution instructions are loaded by the processor and perform the steps of: providing a plurality of setting bar codes for users, wherein each language keyboard corresponds to a setting bar code, the bar code reading equipment scans the setting bar codes corresponding to the language keyboards according to the country language corresponding to the information contained in the bar codes, and the bar code reading equipment starts the language keyboards after decoding and analyzing. The bar code reading equipment collects bar code images and performs decoding attempt, and bar code decoding data are successfully obtained through decoding; analyzing the bar code decoding data to obtain character information to be output; searching key value information in a character key value mapping table corresponding to the language keyboard according to the character information to obtain key value information corresponding to the character information, and sending the key value information to an upper computer; and the upper computer outputs corresponding characters according to the key value information.
The bar code reading equipment collects bar code images and decodes the bar code images to obtain decoded data; analyzing the decoded data to obtain character information to be output; searching a key value in a character key value mapping table corresponding to the language keyboard according to the character information to obtain key value information corresponding to the character information, and sending the key value information to an upper computer; and the upper computer outputs corresponding characters according to the key value information.
The memory is also stored with at least one coding rule mapping table, one coding rule mapping table corresponds to one coding rule of a national language, the characters of the national language have no corresponding key position on the keyboard, and the coding rule mapping table establishes a mapping relation between a unicode coding value and the Chinese language character coding value, specifically: the bar code reading equipment converts the character information into a unicode code value, searches a corresponding character code value in a code rule mapping table corresponding to the language keyboard according to the unicode code value, and converts the character code value into a decimal code number; the bar code reading equipment sends a zone bit code decoding start instruction to the upper computer, then sends key values of the digits in the coded number one by one, and then sends a zone bit code decoding end instruction to the upper computer; the key values corresponding to the numbers are sequentially combined together to form key value information which can be identified by the zone bit code mapping table; and the upper computer receives the command of ending decoding the sending area bit code, calls the area bit code mapping table of the upper computer to analyze the key value information, and outputs corresponding characters.
Preferably, the coding rule mapping table is at least one of a GB2312 coding rule mapping table, a GBK coding rule mapping table, a GB18030 coding rule mapping table, a shift_jis coding rule mapping table, and an EUCKR coding rule mapping table.
The memory is also stored with a control character mapping table, and the control character mapping table comprises the mapping relation between control characters and key values; the bar code reading equipment determines the character information as control character information according to the code value of the character information; the bar code reading equipment searches the control character mapping table according to the character information to obtain key value information corresponding to the character information; and the upper computer executes corresponding operation according to the key value information.
The embedded bar code reading device simulating multi-language keyboard output in the fourth embodiment is a device for executing the multi-language keyboard output method described in the first to third embodiments, and other specific implementation manners of the fourth embodiment are the same as those of the first to third embodiments.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes or direct or indirect application in other related technical fields are included in the scope of the present invention.

Claims (6)

1. The method for simulating multi-language keyboard output by the embedded bar code reading equipment is characterized by comprising the following steps of: the bar code reading equipment stores more than two character key value mapping tables, one character key value mapping table corresponds to a language keyboard of a country, each character of the country language is correspondingly provided with a key position on the language keyboard, and each key position corresponds to a unique key value; the method performs the steps of:
according to the country language corresponding to the information contained in the bar code, enabling the bar code reading equipment to start a corresponding country language keyboard;
the bar code reading equipment collects bar code images and performs decoding attempt, and bar code decoding data are successfully obtained through decoding;
analyzing the bar code decoding data to obtain character information to be output;
searching key value information in a character key value mapping table corresponding to the national language keyboard according to the character information to obtain key value information corresponding to the character information, and sending the key value information to an upper computer;
the upper computer outputs corresponding characters according to the key value information;
the bar code identifying and reading device also stores at least one coding rule mapping table, one coding rule mapping table corresponds to one coding rule of a country language, the characters of the country language have no corresponding key positions on a keyboard, and the coding rule mapping table establishes a mapping relation between unicode coding values and the country language character coding values and comprises: the bar code reading equipment converts the character information into a unicode code value, searches a corresponding character code value in a code rule mapping table corresponding to the national language keyboard according to the unicode code value, and converts the character code value into a decimal code number;
the bar code reading equipment sends a zone bit code decoding start instruction to the upper computer, then sends key values of the digits in the coded number one by one, and then sends a zone bit code decoding end instruction to the upper computer; the key values corresponding to the numbers are sequentially combined together to form key value information which can be identified by the zone bit code mapping table;
and the upper computer receives the command of ending decoding the sending area bit code, calls the area bit code mapping table of the upper computer to analyze the key value information, and outputs corresponding characters.
2. The method for simulating multi-lingual keyboard output by an embedded bar code reading device of claim 1, wherein: the bar code reading device enables a corresponding national language keyboard, comprising: each national language keyboard corresponds to a set bar code, the bar code reading equipment scans the set bar code corresponding to the national language keyboard according to the national language corresponding to the information contained in the bar code, and the bar code reading equipment starts the national language keyboard after decoding and analyzing.
3. The method for simulating multi-lingual keyboard output by an embedded bar code reading device of claim 1, wherein: the coding rule mapping table is at least one of a GB2312 coding rule mapping table, a GBK coding rule mapping table, a GB18030 coding rule mapping table, a shift_JIS coding rule mapping table and an EUCKR coding rule mapping table.
4. The embedded bar code reading equipment for simulating multi-language keyboard output is characterized in that: the system comprises a processor and a memory, wherein the memory stores operation instructions and more than two character key value mapping tables, one character key value mapping table corresponds to a language keyboard of a country, each character of the national language is correspondingly provided with a key position on the language keyboard, and each key position corresponds to a unique key value; the execution instructions are loaded by the processor and perform the steps of: according to the country language corresponding to the information contained in the bar code, enabling the bar code reading equipment to start a corresponding country language keyboard; the bar code reading equipment collects bar code images and performs decoding attempt, and bar code decoding data are successfully obtained through decoding; analyzing the bar code decoding data to obtain character information to be output; searching key value information in a character key value mapping table corresponding to the national language keyboard according to the character information to obtain key value information corresponding to the character information, and sending the key value information to an upper computer;
the upper computer outputs corresponding characters according to the key value information;
the memory also stores at least one coding rule mapping table, one coding rule mapping table corresponds to one coding rule of a country language, the characters of the country language have no corresponding key positions on the keyboard, the coding rule mapping table establishes a mapping relation between unicode coding values and the country language character coding values, and the method comprises the following steps: the bar code reading equipment converts the character information into a unicode code value, searches a corresponding character code value in a code rule mapping table corresponding to the national language keyboard according to the unicode code value, and converts the character code value into a decimal code number; the bar code reading equipment sends a zone bit code decoding start instruction to the upper computer, then sends key values of the digits in the coded number one by one, and then sends a zone bit code decoding end instruction to the upper computer; the key values corresponding to the numbers are sequentially combined together to form key value information which can be identified by the zone bit code mapping table; and the upper computer receives the command of ending decoding the sending area bit code, calls the area bit code mapping table of the upper computer to analyze the key value information, and outputs corresponding characters.
5. The embedded bar code reader device for simulating multi-lingual keyboard output of claim 4 wherein: the bar code reading device enables a corresponding national language keyboard, comprising: each national language keyboard corresponds to a set bar code, the bar code reading equipment scans the set bar code corresponding to the national language keyboard according to the national language corresponding to the information contained in the bar code, and the bar code reading equipment starts the national language keyboard after decoding and analyzing.
6. The embedded bar code reader device for simulating multi-lingual keyboard output of claim 4 wherein: the coding rule mapping table is at least one of a GB2312 coding rule mapping table, a GBK coding rule mapping table, a GB18030 coding rule mapping table, a shift_JIS coding rule mapping table and an EUCKR coding rule mapping table.
CN201911311046.4A 2019-12-18 2019-12-18 Method and equipment for simulating multinational language keyboard output by embedded bar code reading equipment Active CN111045530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911311046.4A CN111045530B (en) 2019-12-18 2019-12-18 Method and equipment for simulating multinational language keyboard output by embedded bar code reading equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911311046.4A CN111045530B (en) 2019-12-18 2019-12-18 Method and equipment for simulating multinational language keyboard output by embedded bar code reading equipment

Publications (2)

Publication Number Publication Date
CN111045530A CN111045530A (en) 2020-04-21
CN111045530B true CN111045530B (en) 2023-09-05

Family

ID=70237639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911311046.4A Active CN111045530B (en) 2019-12-18 2019-12-18 Method and equipment for simulating multinational language keyboard output by embedded bar code reading equipment

Country Status (1)

Country Link
CN (1) CN111045530B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111597777B (en) * 2020-05-15 2023-06-02 上海电机系统节能工程技术研究中心有限公司 Material data processing method and device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AUPP665398A0 (en) * 1998-10-22 1998-11-12 Charactech Pty. Limited Chinese keyboard, input devices, methods and systems
KR100526202B1 (en) * 2002-04-15 2005-11-03 (주) 테크스캔코리아 Bar code of representing Korean character and decoding device and method thereof
CN102426485B (en) * 2011-11-11 2016-04-06 深圳Tcl新技术有限公司 The multi-lingual keyboard using method of electric terminal and device
CN107509098B (en) * 2014-07-28 2021-05-14 华为技术有限公司 Multi-language character input method and device based on virtual keyboard

Also Published As

Publication number Publication date
CN111045530A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN101943952B (en) Mixed input method of at least two languages and input method system
US8904282B2 (en) Electronic device having capability for interpreting user inputs and method therefor
US7886309B2 (en) Accessing a platform independent input method editor from an underlying operating system
US7251667B2 (en) Unicode input method editor
EP0180047B1 (en) Text editor for speech input
KR100693697B1 (en) Explicit Character Filtering of Ambiguous Text Entry
US7263658B2 (en) Multilingual input method editor for ten-key keyboards
CN101571851A (en) Method capable of displaying Thai and Arabic in mixed arrangement
KR100676697B1 (en) Language displaying method and system of software for computer, recording media of computer program therefor
CN111045530B (en) Method and equipment for simulating multinational language keyboard output by embedded bar code reading equipment
EP1558010B1 (en) Communications terminal apparatus with key identifier transmission and program therefor
Lu Computers and Chinese writing systems
US6393445B1 (en) System for transforming Chinese character forms in real-time between a traditional character form and a simplified character form
CN100390783C (en) Method and system for case conversion
CN105892710B (en) Chinese character input method and device based on text box
CN100416471C (en) Ambiguous processing and man-machine interactive method for spanish input on pad
EP1621973A2 (en) Keyboard with special symbol key and code exchange method for such key
KR100923258B1 (en) Unicode converting method for mobile terminal source file
CN104991657A (en) Chinese and Japanese katakana integrated input method and input method system
CN107643915A (en) The interface switching method and changing interface system of a kind of intelligent terminal
KR100703743B1 (en) Apparatus and method for converting character code
Peruginelli et al. Character sets: towards a standard solution?
JPH08297663A (en) Device and method for correcting input error
CN101017400A (en) Muti-language similar character symbol input method and input system thereof
KR20070064900A (en) Converting apparatus for unicord of hangul

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