CN114296559A - Bar code input method, device, system, electronic equipment and medium - Google Patents

Bar code input method, device, system, electronic equipment and medium Download PDF

Info

Publication number
CN114296559A
CN114296559A CN202111635323.4A CN202111635323A CN114296559A CN 114296559 A CN114296559 A CN 114296559A CN 202111635323 A CN202111635323 A CN 202111635323A CN 114296559 A CN114296559 A CN 114296559A
Authority
CN
China
Prior art keywords
equipment
instruction
bar code
mouse
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.)
Pending
Application number
CN202111635323.4A
Other languages
Chinese (zh)
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.)
Jmit Computer Information Technology Shanghai Co ltd
Original Assignee
Jmit Computer Information Technology Shanghai 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 Jmit Computer Information Technology Shanghai Co ltd filed Critical Jmit Computer Information Technology Shanghai Co ltd
Priority to CN202111635323.4A priority Critical patent/CN114296559A/en
Publication of CN114296559A publication Critical patent/CN114296559A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method, a device and a system for inputting a bar code, electronic equipment and a medium, wherein the method for inputting the bar code comprises the following steps: receiving a keyboard instruction sent by first equipment, wherein the keyboard instruction corresponds to the bar code information one by one; analyzing the keyboard instruction to obtain key information which can be identified by the second equipment; and sending the key information to the second equipment so that the bar code information is recorded into the second equipment. According to the invention, the keyboard instruction generated in advance according to the bar code information is received, then the keyboard instruction is analyzed to obtain the key signal which can be identified by the second equipment, and then the key signal is input into the second equipment to replace manual input, so that the working efficiency is improved.

Description

Bar code input method, device, system, electronic equipment and medium
Technical Field
The invention relates to the technical field of intelligent equipment, in particular to a bar code input method, a bar code input device, a bar code input system, electronic equipment and a medium.
Background
At present, the information system computer of a pharmacy has a high security level, can not directly receive commodity bar codes sent by external equipment, only receives input of a keyboard or a mouse, and has low working efficiency, if the existing information system computer is required to be modified, the cost is quite high, in the prior art, specific driving software is usually installed on the information system computer, the medicine bar codes are firstly sent to the driving software, and then the corresponding medicine bar codes are recorded into the information system computer through the driving software, however, the external software mode can cause the problem in the aspect of system security.
Disclosure of Invention
The invention aims to overcome the defects of low efficiency and low safety of a commodity bar code input process in the prior art, and provides a bar code input method, a device, a system, electronic equipment and a medium.
The invention solves the technical problems through the following technical scheme:
according to a first aspect of the present invention, there is provided a barcode entry method comprising the steps of:
receiving a keyboard instruction sent by first equipment, wherein the keyboard instruction corresponds to bar code information one to one;
analyzing the keyboard instruction to obtain key information which can be identified by the second equipment;
and sending the key information to the second equipment so that the bar code information is recorded into the second equipment.
Preferably, the barcode entry method further comprises the following steps:
and responding to the received keyboard instruction, and sending a response instruction to the first equipment.
Preferably, the barcode entry method further comprises the following steps:
receiving a mouse instruction sent by the first equipment, wherein the mouse instruction corresponds to the input position of the bar code information;
analyzing the mouse command to obtain the mouse button state and the coordinates which can be identified by the second equipment;
and sending the mouse button state and the coordinates to the second equipment so that the bar code information is recorded into the second equipment.
Preferably, the step of receiving the keyboard instruction sent by the first device specifically includes:
and receiving a keyboard instruction sent by the first device through Bluetooth.
Preferably, the step of sending the key information to the second device specifically includes:
and sending the key information to the second equipment through a USB interface.
Preferably, the step of sending the mouse button state and the coordinates to the second device specifically includes:
and sending the mouse button state and the coordinates to the second equipment through a USB interface.
According to a second aspect of the present invention, there is provided a barcode input device, comprising a receiving module, an analyzing module and a sending module:
the receiving module is used for receiving a keyboard instruction sent by first equipment, wherein the keyboard instruction corresponds to the bar code information one by one;
the analysis module is used for analyzing the keyboard instruction to obtain key information which can be identified by the second equipment;
the sending module is used for sending the key information to the second equipment so that the bar code information is recorded into the second equipment.
According to a third aspect of the present invention, there is provided a barcode entry system, comprising a first device, a second device, and a barcode entry apparatus:
the first equipment is used for generating a corresponding keyboard instruction according to the bar code information and sending the keyboard instruction to the bar code input device;
the bar code input device is used for receiving the keyboard instruction, analyzing the keyboard instruction to obtain key information which can be identified by the second equipment, and sending the key information to the second equipment;
the second equipment is used for receiving the key information so as to realize the input of the bar code information.
According to a fourth aspect of the present invention, there is provided an electronic device comprising a memory and a processor connected to the memory, the processor implementing the barcode entry method of the present invention when executing a computer program stored on the memory.
According to a fifth aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the barcode entry method of the present invention.
The positive progress effects of the invention are as follows:
the keyboard instruction generated according to the bar code information in advance is received and then analyzed to obtain the key signal which can be identified by the second equipment, and then the key signal is input into the second equipment to replace manual input, so that the working efficiency is improved.
Drawings
Fig. 1 is a schematic flow chart of a barcode entry method according to embodiment 1 of the present invention.
Fig. 2 is a flowchart illustrating a barcode entry method according to embodiment 2 of the present invention.
Fig. 3 is a schematic structural view of a barcode entry device according to embodiment 3 of the present invention.
Fig. 4 is a schematic structural diagram of a barcode entry system according to embodiment 5 of the present invention.
Fig. 5 is a schematic structural diagram of an electronic device according to embodiment 7 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
The embodiment provides a barcode entry method, as shown in fig. 1, the barcode entry method includes the following steps:
and S11, receiving a keyboard instruction sent by the first equipment, wherein the keyboard instruction corresponds to the bar code information one by one.
In this embodiment, the barcode information is specifically a character string used for characterizing an article, each character in the character string corresponds to one key on the keyboard, and each key includes two actions of pressing the key and popping up the key when the keyboard is used, so that each character corresponds to two keyboard instructions when any one character is input. The keyboard instructions include a start symbol, an instruction serial number, an instruction type, an operation type, a key symbol and an end symbol, each keyboard instruction starts with the start symbol and ends with the end symbol, the instruction serial number is used for representing an input sequence of a character string, the instruction type is used for representing that the instruction in the embodiment is the keyboard instruction, the operation type is used for representing a key press or a key bounce, the key symbol is used for representing a corresponding specific character in bar code information, and as an optional implementation mode, the keyboard instruction is as shown in table 1:
table 1:
Figure BDA0003441924930000041
for example, assuming that the barcode information is "abcabc", the received keyboard commands are: "[ 0kDa ], [1kUa ], [2kDb ], [3kUb ], [4kDc ], [5kUc ], [6kDa ], [7kUa ], [8kDb ], [9kUb ], [0kDc ], [1kUc ]".
As an optional implementation manner, each time a keyboard instruction is received, a response instruction is generated in response to the keyboard instruction, the response instruction is sent to the first device, then a next keyboard instruction is received, and if no response instruction is generated, the current keyboard instruction is repeatedly received. As an optional implementation manner, the response instruction is as shown in table 2:
table 2:
response start symbol Response instruction sequence number End of response symbol
+ Order number of keyboard order .
Taking the above example as an example, assuming that the received keyboard instruction is "[ 0kDa ]", the sent response instruction should be "+ 0", if the response is successful, the instruction sequence number is increased by 1, and the next keyboard instruction "[ 1kUa ]" is continuously received, if the response is failed, such as the keyboard instruction is wrong or the connection is failed, the response instruction will not be generated, the instruction sequence number is not changed, and the received keyboard instruction is still "[ 0kDa ]".
As an optional implementation manner, data interaction is performed through bluetooth, so as to receive a keyboard instruction sent by a first device, where the first device may be any intelligent device with a bluetooth function.
As an optional implementation manner, the barcode entry method is applied to the field of medicines, and the barcode information is specifically a character string representing a medicine.
And S12, analyzing the keyboard instruction to obtain key information which can be identified by the second equipment.
The second device is used for representing a desktop computer or a notebook computer, and as an optional implementation manner, the second device is specifically an information system computer. The key information corresponds to codes adopted by keys on a computer keyboard, namely ASCII codes, specifically, key symbols in the instructions are analyzed into ASCII codes which can be recognized by a computer, and then the ASCII codes are simulated into keys on the keyboard to be sequentially recorded to form the key information. For example, a is input, the corresponding keyboard instruction is "[ 0kDa ], [1kUa ]", the ASCII code corresponding to a is analyzed to be 97, then kD is analyzed to be the key press of the keyboard, kU is the key bounce of the keyboard, and therefore the process of knocking the keyboard is simulated, and finally the key information corresponding to a which can be identified by a computer is generated.
And S13, sending the key information to the second equipment so that the bar code information is recorded into the second equipment.
As an optional implementation manner, the key information may be sent in a wired transmission manner, for example, through a USB interface, the key information is sequentially sent to the second device through the USB interface, in an actual operation, an entry position is determined on the second device through a manual operation, and the barcode information corresponding to the keyboard instruction is displayed at the entry position according to the sequence of the key information, so that the barcode information is entered into the second device, and the USB interface may be connected to any computer, thereby implementing plug and play.
According to the embodiment, the keyboard instruction generated according to the bar code information in advance is received, the keyboard instruction is analyzed, the key signal which can be identified by the second equipment is obtained, then the key signal is input into the second equipment, manual input is replaced, the working efficiency is improved, the second equipment can be an information system computer, therefore, an original information system computer does not need to be transformed, the bar code is automatically input into the information system computer under the condition of driving-free software, and the safety of the information system computer is ensured.
Example 2
The present embodiment provides another barcode entry method, as shown in fig. 2, the barcode entry method is a further improvement of embodiment 1, and when an entry position of barcode information is determined, an operation is performed in a mouse instruction manner, specifically, the method includes the following steps:
and S21, receiving a mouse instruction sent by the first equipment, wherein the mouse instruction corresponds to the entry position of the bar code information.
In this embodiment, the entry position of the barcode information is used to represent the entry position of the commodity barcode in the information system. The mouse instructions comprise a start symbol, an instruction sequence number, an instruction type, a mouse operation and an end symbol, wherein each mouse instruction starts with the start symbol and ends with the end symbol, the instruction sequence number is used for representing a mouse operation sequence, the instruction type is used for representing that the instruction in the embodiment is the mouse instruction, and the mouse operation is used for representing that a mouse key is pressed down, the mouse key is bounced or a pixel of which the mouse moves to a certain numerical range in a certain direction. As an alternative embodiment, the mouse command is shown in table 3:
table 3:
Figure BDA0003441924930000061
Figure BDA0003441924930000071
for example, when it is determined that the position of the mouse moving downward by 20 pixels from the current position is the entry position of the barcode information, the received mouse instructions are respectively: "[ 0MM220], [1MDL ], [2MUL ]".
As an optional implementation manner, each time a mouse instruction is received, a response instruction is generated in response to the mouse instruction, the response instruction is sent to the first device, then a next mouse instruction is received, and if no response instruction is generated, the current mouse instruction is repeatedly received. As an optional implementation manner, the response instruction is as shown in table 4:
table 4:
response start symbol Response instruction sequence number End of response symbol
+ Order number of mouse command .
Taking the above example as an example, assuming that the received mouse command is "[ 0MM220 ]", the sent response command should be "+ 0", if the response is successful, the command number is increased by 1, and the next mouse command "[ 1MDL ]" is continuously received, if the response is failed, such as a mouse command error or a connection failure, the response command is not generated, the command number is not changed, and the received mouse command is still "[ 0MM220 ]".
As an optional implementation manner, data interaction is performed through bluetooth, so as to receive a mouse instruction sent by a first device, where the first device may be any intelligent device with a bluetooth function.
And S22, analyzing the mouse command to obtain the mouse button state and the coordinates which can be identified by the second equipment.
The mouse button state comprises a left button press, a left button bounce, a middle button press, a middle button bounce, a right button press and a right button bounce, and the left button, the middle button and the right button correspond to ASCII codes which can be recognized by a computer. The coordinates are used for representing the moving distance and direction of the mouse, and comprise upward mouse movement, downward mouse movement, leftward mouse movement, rightward mouse movement, upward mouse movement, downward mouse movement, upward mouse movement, and downward mouse movement. As an alternative embodiment, the unit distance of movement is pixels, and the effective range of each movement is between 1 pixel and 127 pixels, although the embodiment is not limited to the above distance unit.
And S23, sending the mouse button state and the coordinates to the second equipment so that the bar code information is recorded into the second equipment.
As an optional implementation manner, the mouse button state and the coordinates are sent to the second device through the USB interface. In actual operation, the input position of the bar code information is determined through the state and the coordinates of the mouse button, and the bar code information corresponding to the input position is determined through the button information, so that the bar code information is input to the input position of the second equipment. It should be noted that, the sequence of steps in this embodiment is only for convenience of description, and can be adjusted according to actual situations.
In this embodiment, since some manual mouse steps are fixed, the input position of the commodity barcode in the information system is recorded through a mouse instruction, the mouse instruction is analyzed again to obtain the mouse button state and the coordinate recognizable by the second device, the mouse button state and the coordinate are input into the second device through the USB interface, manual operation is replaced, the work efficiency is improved, the second device can be an information system computer, so that the original information system computer does not need to be modified or hardware investment does not need to be increased, the barcode is automatically input into the input position of the information system computer without driving software, the input efficiency is improved, and the safety of the information system is ensured.
Example 3
The embodiment provides a barcode input device, as shown in fig. 3, the barcode input device includes a receiving module 31, an analyzing module 32, and a sending module 33:
the receiving module 31 is configured to receive a keyboard instruction sent by the first device, where the keyboard instruction corresponds to the barcode information one to one. In this embodiment, the barcode information is specifically a character string representing an article, each character in the character string corresponds to one key on the keyboard, and each key includes two actions of pressing the key and popping up the key when the keyboard is used, so that each character corresponds to two keyboard instructions when any one character is input. The keyboard instructions include a start symbol, an instruction serial number, an instruction type, an operation type, a key symbol and an end symbol, each keyboard instruction starts with the start symbol and ends with the end symbol, the instruction serial number is used for representing an input sequence of a character string, the instruction type is used for representing that the instruction in the embodiment is the keyboard instruction, the operation type is used for representing a key press or a key bounce, the key symbol is used for representing a corresponding specific character in bar code information, and as an optional implementation mode, the keyboard instruction is as shown in table 1:
table 1:
Figure BDA0003441924930000091
for example, if the barcode information is "abcabcabc", the keyboard commands received by the receiving module 31 are: "[ 0kDa ], [1kUa ], [2kDb ], [3kUb ], [4kDc ], [5kUc ], [6kDa ], [7kUa ], [8kDb ], [9kUb ], [0kDc ], [1kUc ]".
As an optional implementation manner, each time the receiving module 31 receives a keyboard instruction, it generates a response instruction in response to the keyboard instruction, and sends the response instruction to the first device, and then the receiving module 31 receives the next keyboard instruction, and if no response instruction is generated, the receiving module 31 repeatedly receives the current keyboard instruction. As an optional implementation manner, the response instruction is as shown in table 2:
table 2:
response start symbol Response instruction sequence number End of response symbol
+ Order number of keyboard order .
Taking the above example as an example, assuming that the keyboard instruction received by the receiving module 31 is "[ 0kDa ]", the sent response instruction should be "+ 0.", if the response is successful, it indicates that the instruction sequence number is increased by 1, and the next keyboard instruction "[ 1kUa ]" is continuously received, if the response is failed, such as the keyboard instruction is wrong or the connection is failed, the response instruction will not be generated, the instruction sequence number is unchanged, and the received keyboard instruction is still "[ 0kDa ]".
As an optional implementation manner, the receiving module 31 performs data interaction through bluetooth, so as to receive a keyboard instruction sent by a first device, where the first device may be any intelligent device with a bluetooth function.
As an optional implementation manner, the barcode input device is applied to the field of medicines, and the barcode information is specifically a character string representing a medicine.
The analysis module 32 is configured to analyze the keyboard instruction to obtain key information that can be recognized by the second device. The second device is used for representing a desktop computer or a notebook computer, and as an optional implementation manner, the second device is specifically an information system computer. The key information corresponds to a code used by the keys on the computer keyboard, i.e., an ASCII code, and specifically, the parsing module 32 parses the key symbols in the command into ASCII codes recognizable by the computer, and then simulates the ASCII codes into keys on the keyboard to be sequentially entered, thereby forming the key information. For example, a is input, the corresponding keyboard instruction is "[ 0kDa ], [1kUa ]", the ASCII code corresponding to a is analyzed to be 97, then kD is analyzed to be the key press of the keyboard, kU is the key bounce of the keyboard, and thus the analysis module 32 simulates the process of knocking the keyboard, and finally generates the key information corresponding to a which can be recognized by the computer.
The sending module 33 is configured to send the key information to the second device, so that the barcode information is entered into the second device. As an optional implementation manner, the sending module 33 may send the key information in a wired transmission manner, for example, through a USB interface, and sequentially send the key information to the second device through the USB interface, in an actual operation, an entry position is determined on the second device through a manual operation, and the sending module 33 displays the barcode information corresponding to the keyboard instruction at the entry position according to the sequence of the key information, so as to implement entry of the barcode information into the second device.
Example 4
The present embodiment provides another barcode entry device, which is a further improvement of embodiment 3, specifically:
the receiving module 31 is further configured to receive a mouse instruction sent by the first device, where the mouse instruction corresponds to an entry position of the barcode information. In this embodiment, the entry position of the barcode information is used to represent the entry position of the commodity barcode in the information system. The mouse instructions comprise a start symbol, an instruction sequence number, an instruction type, a mouse operation and an end symbol, wherein each mouse instruction starts with the start symbol and ends with the end symbol, the instruction sequence number is used for representing a mouse operation sequence, the instruction type is used for representing that the instruction in the embodiment is the mouse instruction, and the mouse operation is used for representing that a mouse key is pressed down, the mouse key is bounced or a pixel of which the mouse moves to a certain numerical range in a certain direction. As an alternative embodiment, the mouse command is shown in table 3:
table 3:
Figure BDA0003441924930000111
for example, when it is determined that the position of the mouse moving downward by 20 pixels from the current position is the entry position of the barcode information, the mouse instructions received by the receiving module 31 are respectively: "[ 0MM220], [1MDL ], [2MUL ]".
As an optional implementation manner, each time the receiving module 31 receives a mouse instruction, it generates a response instruction in response to the mouse instruction, and sends the response instruction to the first device, and then the receiving module 31 receives the next mouse instruction, and if no response instruction is generated, the receiving module 31 repeatedly receives the current mouse instruction. As an optional implementation manner, the response instruction is as shown in table 4:
table 4:
response start symbol Response instruction sequence number End of response symbol
+ Order number of mouse command .
Taking the above as an example, assuming that the mouse instruction received by the receiving module 31 is "[ 0MM220 ]", the sent response instruction should be "+ 0.", if the response is successful, it indicates that the instruction sequence number is increased by 1, and the next mouse instruction "[ 1MDL ]" is continuously received, if the response is failed, such as the mouse instruction is wrong or the connection is failed, the response instruction will not be generated, the instruction sequence number is not changed, and the received mouse instruction is still "[ 0MM220 ]".
As an optional implementation manner, the receiving module 31 performs data interaction through bluetooth, so as to receive a mouse instruction sent by a first device, where the first device may be any intelligent device with a bluetooth function.
The analysis module 32 is configured to analyze the mouse command to obtain a mouse button state and coordinates recognizable by the second device. The mouse button state comprises a left button press, a left button bounce, a middle button press, a middle button bounce, a right button press and a right button bounce, and the left button, the middle button and the right button correspond to ASCII codes which can be recognized by a computer. The coordinates are used for representing the moving distance and direction of the mouse, and comprise upward mouse movement, downward mouse movement, leftward mouse movement, rightward mouse movement, upward mouse movement, downward mouse movement, upward mouse movement, and downward mouse movement. As an alternative embodiment, the unit distance of movement is pixels, and the effective range of each movement is between 1 pixel and 127 pixels, although the embodiment is not limited to the unit distance.
The sending module 33 is configured to send the mouse button status and the coordinates to the second device, so that the barcode information is entered into the second device. As an alternative embodiment, the sending module 33 sends the mouse button status and the coordinates to the second device through the USB interface. In actual operation, the input position of the bar code information is determined through the state and the coordinates of the mouse button, and the bar code information corresponding to the input position is determined through the button information, so that the bar code information is input to the input position of the second equipment.
Example 5
The present embodiment provides a barcode entry system, as shown in fig. 4, including a first device 41, a barcode entry apparatus 42, and a second device 43:
the first device 41 is configured to generate a corresponding keyboard instruction according to the barcode information, and send the keyboard instruction to the barcode entry device 42. As an alternative embodiment, the first device 41 sends the keyboard command by wireless transmission, such as bluetooth transmission, and the first device may be any smart device with bluetooth function, such as a mobile phone, a tablet computer, a notebook computer, and so on.
The barcode entry device 42 is configured to receive the keyboard instruction, analyze the keyboard instruction to obtain key information that can be recognized by the second device 43, and send the key information to the second device 43. As an alternative embodiment, the barcode entry device 42 is the barcode entry device in example 3. The second device 43 may be a desktop or laptop computer, in this example the barcode entry system is used in the pharmaceutical field, and the second device is specifically an information system computer for a pharmacy.
The second device 43 is configured to receive the key information to implement entry of the barcode information, specifically, the input process of the keyboard is simulated through the key information, and the second device 43 implements entry of the barcode information into the second device 43 by receiving the key information. As an optional implementation manner, the second device 43 receives the key information through a USB interface, a power supply protocol may be built in the barcode entry device 42, and when the barcode entry device 42 is connected to the second device 43 through the USB interface, the barcode entry device 42 is powered through the second device 43.
Example 6
The present embodiment provides another barcode entry system, which is a further improvement of embodiment 5, specifically:
the first device 41 is further configured to generate a corresponding mouse instruction according to the entry position of the barcode information, and send the mouse instruction to the barcode entry apparatus 42.
The barcode entry device 42 is further configured to receive a mouse instruction, analyze the mouse instruction to obtain a mouse button state and coordinates recognizable by the second device 43, and send the mouse button state and coordinates to the second device 43. As an alternative embodiment, the barcode entry device 42 is the barcode entry device in example 4.
The second device 43 is also used to receive mouse button status and coordinates. When the bar code information is input, the second device 43 determines the input position of the bar code information through the mouse button state and the coordinates, and then simulates the input process of a keyboard through the button information, and the second device 43 inputs the bar code information into the input position of the bar code information in a computer by receiving the button information, the mouse button state and the coordinates.
Example 7
The present embodiment provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the barcode entry method of embodiment 1 or embodiment 2.
The electronic device 50 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
The electronic device 50 may be embodied in the form of a general purpose computing device, which may be, for example, a server device. The components of the electronic device 50 may include, but are not limited to: the at least one processor 51, the at least one memory 52, and a bus 53 connecting the various system components (including the memory 52 and the processor 51).
The bus 53 includes a data bus, an address bus, and a control bus.
The memory 52 may include volatile memory, such as Random Access Memory (RAM)521 and cache memory 522, and may further include Read Only Memory (ROM) 523.
Memory 52 may also include a program tool 525 having a set (at least one) of program modules 524, such program modules 524 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 51 executes various functional applications and data processing, such as the barcode entry method of embodiment 1 or embodiment 2 of the present invention, by running the computer program stored in the memory 52.
The electronic device 50 may also communicate with one or more external devices 54. Such communication may be through an input/output (I/O) interface 55. Also, the model-generating device 50 may also communicate with one or more networks through a network adapter 56. As shown in FIG. 5, the network adapter 56 communicates with the other modules of the model-generating device 50 via the bus 53. It should be appreciated that although not labeled in FIG. 5, other hardware and/or software modules may be used in conjunction with the model-generating device 50, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 8
The present embodiment provides a computer-readable storage medium on which a computer program is stored, the program implementing the barcode entry method of embodiment 1 or embodiment 2 when executed by a processor.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In an alternative embodiment, the present invention can also be implemented in the form of a program product including program code for causing a terminal device to execute a barcode entry method implementing embodiment 1 or embodiment 2 when the program product is run on the terminal device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (10)

1. A bar code entry method is characterized by comprising the following steps:
receiving a keyboard instruction sent by first equipment, wherein the keyboard instruction corresponds to bar code information one to one;
analyzing the keyboard instruction to obtain key information which can be identified by the second equipment;
and sending the key information to the second equipment so that the bar code information is recorded into the second equipment.
2. A method of barcode entry according to claim 1 further comprising the steps of:
and responding to the received keyboard instruction, and sending a response instruction to the first equipment.
3. A method of barcode entry according to claim 1 further comprising the steps of:
receiving a mouse instruction sent by the first equipment, wherein the mouse instruction corresponds to the input position of the bar code information;
analyzing the mouse command to obtain the mouse button state and the coordinates which can be identified by the second equipment;
and sending the mouse button state and the coordinates to the second equipment so that the bar code information is recorded into the second equipment.
4. The barcode entry method according to claim 1, wherein the step of receiving the keyboard command sent by the first device specifically comprises:
and receiving a keyboard instruction sent by the first device through Bluetooth.
5. The barcode entry method according to claim 1, wherein the step of sending the key information to the second device specifically comprises:
and sending the key information to the second equipment through a USB interface.
6. The barcode entry method of claim 3, wherein the step of sending the mouse button status and coordinates to the second device specifically comprises:
and sending the mouse button state and the coordinates to the second equipment through a USB interface.
7. A bar code input device is characterized by comprising a receiving module, an analysis module and a sending module:
the receiving module is used for receiving a keyboard instruction sent by first equipment, wherein the keyboard instruction corresponds to the bar code information one by one;
the analysis module is used for analyzing the keyboard instruction to obtain key information which can be identified by the second equipment;
the sending module is used for sending the key information to the second equipment so that the bar code information is recorded into the second equipment.
8. A bar code input system is characterized by comprising a first device, a second device and a bar code input device:
the first equipment is used for generating a corresponding keyboard instruction according to the bar code information and sending the keyboard instruction to the bar code input device;
the bar code input device is used for receiving the keyboard instruction, analyzing the keyboard instruction to obtain key information which can be identified by the second equipment, and sending the key information to the second equipment;
the second equipment is used for receiving the key information so as to realize the input of the bar code information.
9. An electronic device comprising a memory and a processor coupled to the memory, the processor implementing the barcode entry method of any one of claims 1-6 when executing a computer program stored on the memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the barcode entry method according to any one of claims 1 to 6.
CN202111635323.4A 2021-12-29 2021-12-29 Bar code input method, device, system, electronic equipment and medium Pending CN114296559A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111635323.4A CN114296559A (en) 2021-12-29 2021-12-29 Bar code input method, device, system, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111635323.4A CN114296559A (en) 2021-12-29 2021-12-29 Bar code input method, device, system, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114296559A true CN114296559A (en) 2022-04-08

Family

ID=80972442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111635323.4A Pending CN114296559A (en) 2021-12-29 2021-12-29 Bar code input method, device, system, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114296559A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115857782A (en) * 2022-12-22 2023-03-28 深圳市普洛威电子有限公司 Automatic information input method and system based on artificial intelligence

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115857782A (en) * 2022-12-22 2023-03-28 深圳市普洛威电子有限公司 Automatic information input method and system based on artificial intelligence

Similar Documents

Publication Publication Date Title
CN100412804C (en) Method and system for recognizing error codes of failure diagnosis card for main board
US20140085309A1 (en) Quick response code display for communications and error handling
CN111427803A (en) Automated random test method, apparatus, computer device and medium
CN116382462B (en) Vibration method and vibration device
CN114296559A (en) Bar code input method, device, system, electronic equipment and medium
EP4095686A2 (en) Method for switching skin of mini-program page, and electronic device
EP4033342A2 (en) Method and apparatus for controlling interface focus on interface, electronic device and storage medium
CN103701791A (en) Server, terminal equipment, visual desktop system and operation method thereof
CN110764746B (en) Script generation method and device and computer readable storage medium
CN117114618A (en) To-be-handled item follow-up method, system, computer equipment and storage medium
CN108132783A (en) A kind of configuration method and device of Web App
CN111596897B (en) Code multiplexing processing method and device and electronic equipment
CN111506285B (en) Electronic price tag updating method and device, electronic equipment and readable medium
CN114124750A (en) Test method, system, equipment and storage medium of communication module
CN112418944A (en) Coupon transfer method and device, electronic equipment and storage medium
CN102298446B (en) Multi-mouse/multi-keyboard emulator
EP3846039B1 (en) Data writing method and apparatus, and electronic device
CN117148801B (en) Controller adaptation method, device, electronic equipment and medium
CN115729530B (en) Cross-system logic statement generation method, device, storage medium and equipment
CN115952376B (en) Webpage access method and device, electronic equipment and storage medium
CN103488500A (en) Multimedia document processing method and device
US7253806B2 (en) Computer keyboard
CN114969482A (en) Method for automatically completing request by online configuration interface and related equipment thereof
CN112738282B (en) Remote control method and system for 5G communication virtualization network element desktop
CN116414443A (en) Method, system, electronic device and medium for generating display object in webpage

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