Movatterモバイル変換


[0]ホーム

URL:


CN113836955A - A scanning gun output configuration method, system, electronic device and storage medium - Google Patents

A scanning gun output configuration method, system, electronic device and storage medium
Download PDF

Info

Publication number
CN113836955A
CN113836955ACN202110959159.6ACN202110959159ACN113836955ACN 113836955 ACN113836955 ACN 113836955ACN 202110959159 ACN202110959159 ACN 202110959159ACN 113836955 ACN113836955 ACN 113836955A
Authority
CN
China
Prior art keywords
scanning gun
output
broadcast
mode
gun
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
CN202110959159.6A
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.)
Qingdao Wintec System Co ltd
Original Assignee
Qingdao Wintec System 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 Qingdao Wintec System Co ltdfiledCriticalQingdao Wintec System Co ltd
Priority to CN202110959159.6ApriorityCriticalpatent/CN113836955A/en
Publication of CN113836955ApublicationCriticalpatent/CN113836955A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提出一种扫描枪输出配置方法、系统、电子设备及存储介质,其方法技术方案包括设备数据获取步骤,获取一扫描枪的描述参数,通过所述描述参数判断扫描枪是否存在,若存在,则获取所述扫描枪的pid、vid及描述符;输出方式配置步骤,将所述pid、所述vid和所述描述符组成所述扫描枪的系统属性值,并进一步将输出方式赋给所述系统属性值以配置所述扫描枪的输出方式;广播方式输出步骤,所述输出方式包括广播方式,定义一自定义广播,当检测到所述扫描枪的最后键事件为回车时,将所述扫描枪扫描的信息作为所述广播的参数随所述广播输出。本申请可以根据用户需求对扫描枪的输出方式进行配置,具有灵活性、便捷性。

Figure 202110959159

The present invention provides a scanning gun output configuration method, system, electronic device and storage medium. The technical solution of the method includes a device data acquisition step, obtaining description parameters of a scanning gun, and determining whether the scanning gun exists by the description parameters, and if there is a scanning gun. , then the pid, vid and descriptor of the scanning gun are obtained; in the output mode configuration step, the pid, the vid and the descriptor are formed into the system attribute value of the scanning gun, and the output mode is further assigned to The system attribute value is used to configure the output mode of the scanning gun; in the broadcast mode output step, the output mode includes a broadcast mode, and a custom broadcast is defined, when it is detected that the last key event of the scanning gun is Enter, The information scanned by the scanning gun is output along with the broadcast as a parameter of the broadcast. The application can configure the output mode of the scanning gun according to the user's needs, which is flexible and convenient.

Figure 202110959159

Description

Output configuration method and system for scanning gun, electronic equipment and storage medium
Technical Field
The invention belongs to the technical field of scanning guns, and particularly relates to a scanning gun output configuration method, a scanning gun output configuration system, electronic equipment and a storage medium.
Background
The scanning gun is generally output in a keyboard manner, any input box and the like can be displayed, but sometimes a user requires the scanning gun to be output in a broadcast manner, for example, when the user uses the scanning gun on an Android device, the user application wants to receive output information of the scanning gun in a broadcast manner. However, since other clients may not want to use the broadcast as the output method of the scan gun, there is a need to implement a method for configuring the output method of the scan gun in order to avoid the cost waste of unnecessary time and labor, such as the need to repeatedly customize the ROM for different users.
Disclosure of Invention
The embodiment of the application provides a scanning gun output configuration method, a scanning gun output configuration system, electronic equipment and a storage medium, and at least solves the problem that the output mode of a scanning gun cannot be configured according to the requirements of a user in the existing scanning gun output method.
In a first aspect, an embodiment of the present application provides a scan gun output configuration method, including: acquiring device data, namely acquiring description parameters of a scanning gun, judging whether the scanning gun exists or not according to the description parameters, and acquiring pid, vid and descriptors of the scanning gun if the scanning gun exists; an output mode configuration step, wherein the pid, the vid and the descriptor form a system attribute value of the scanning gun, and an output mode is further given to the system attribute value so as to configure the output mode of the scanning gun; and a broadcast mode output step, wherein the output mode comprises a broadcast mode, a self-defined broadcast is defined, and when the last key event of the scanning gun is detected to be carriage return, the information scanned by the scanning gun is used as the parameter of the broadcast to be output along with the broadcast.
Preferably, the description parameter is description information of the target scanning gun device of the InputDevice type.
Preferably, the broadcasting mode outputting step further includes: defining a character string Buffer, storing the information codes of the scanning gun into the character string Buffer one by one when the key event of the scanning gun is detected, and outputting the information in the character string Buffer as the broadcast parameter along with the broadcast when the last key event of the scanning gun is detected as carriage return.
Preferably, the output mode further includes a keyboard form, and the keyboard form includes directly outputting the information in the character string Buffer in an interface display frame where a mouse is located.
In a second aspect, an embodiment of the present application provides a scan gun output configuration system, which is suitable for the scan gun output configuration method, and includes: the equipment data acquisition module is used for acquiring description parameters of a scanning gun, judging whether the scanning gun exists or not according to the description parameters, and if so, acquiring pid, vid and descriptors of the scanning gun; the output mode configuration module is used for forming a system attribute value of the scanning gun by the pid, the vid and the descriptor and further endowing an output mode to the system attribute value so as to configure the output mode of the scanning gun; and the broadcast mode output module is used for defining a self-defined broadcast, and outputting the information scanned by the scanning gun as the broadcast parameters along with the broadcast when the last key event of the scanning gun is detected as carriage return.
In some of these embodiments, the description parameter is target scan gun device description information of the InputDevice type.
In some embodiments, the broadcast mode output module further includes: defining a character string Buffer, storing the information codes of the scanning gun into the character string Buffer one by one when the key event of the scanning gun is detected, and outputting the information in the character string Buffer as the broadcast parameter along with the broadcast when the last key event of the scanning gun is detected as carriage return.
In some embodiments, the output mode further includes a keyboard form, and the keyboard form includes that the information in the character string Buffer is directly output in an interface display frame where a mouse is located.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor, when executing the computer program, implements a scan gun output configuration method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements a scan gun output configuration method as described in the first aspect above.
Compared with the prior art, the output configuration method of the scanning gun provided by the embodiment of the application can configure the output mode of the scanning gun according to the user requirement, has flexibility and convenience, greatly reduces the manpower and time cost when the output mode of the scanning gun is customized and required by a large number of users, and improves the user experience.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flow chart of a scan gun output configuration method of the present invention;
FIG. 2 is a block diagram of a scan gun output configuration system of the present invention;
FIG. 3 is a block diagram of an electronic device of the present invention;
in the above figures:
1. an equipment data acquisition module; 2. an output mode configuration module; 3. a broadcast mode output module; 60. a bus; 61. a processor; 62. a memory; 63. a communication interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Embodiments of the invention are described in detail below with reference to the accompanying drawings:
fig. 1 is a flowchart of a scan gun output configuration method of the present invention, and referring to fig. 1, the scan gun output configuration method of the present invention includes the following steps:
s1: obtaining description parameters of a scanning gun, judging whether the scanning gun exists or not according to the description parameters, and if so, obtaining pid, vid and descriptors of the scanning gun. Optionally, the description parameter is target scanning gun device description information of an InputDevice type.
In a specific implementation, the embodiments of the present application are implemented in the form of an interface. Configuring an interface of an output mode, and needing to transmit two parameters, wherein the parameter I is description information of target scanning gun equipment of an Inputdevice type; the second parameter is an output mode, and in specific implementation, the output mode parameter is an int type, which includes: 1, broadcasting; broadcast and keyboard; 3: a keyboard.
In specific implementation, whether the scanning gun exists or not is judged firstly through the parameters, if not, the scanning gun is not detected through a return value prompt, and if so, the pid and vid corresponding to the scanning gun and the description of the scanning gun are obtained. In the specific implementation, the description herein refers to a descriptor of a scan gun, and if pids and vids of scan guns of the same manufacturer and the same model are the same, but the descriptors are different, so in order to identify the differential scan, descriptor information of the scan gun is obtained on the basis of obtaining the pids and vids of the scan gun.
S2: composing the pid, the vid and the descriptor into a system attribute value of the scanning gun, and further assigning an output mode to the system attribute value to configure the output mode of the scanning gun
In the specific implementation, the information is used for forming a system attribute value representing the scanning gun in a 'connected mode', and then a parameter two value is assigned to the attribute value so as to configure the output mode of the scanning gun. The first few bits of the truncated descriptor information are used to form together with pid, vid the system attribute values referred to later. I.e., a system attribute value representing the scan gun is "pid of the scan gun". multidigit of the descriptor of the scan gun ".
In specific implementation, after configuration, when a user uses the scanning gun to scan a code, the user will check the value of the attribute value corresponding to the scanning gun, and output the value according to the corresponding output mode.
S3: the output mode comprises a broadcast mode, a self-defined broadcast is defined, and when the last key event of the scanning gun is detected to be carriage return, the information scanned by the scanning gun is used as the parameter of the broadcast to be output along with the broadcast.
Optionally, a character string Buffer is defined, when a key event of the scanning gun is detected, the information codes of the scanning gun are stored into the character string Buffer one by one, and when a last key event of the scanning gun is detected as a carriage return, the information in the character string Buffer is used as the broadcast parameter to be output along with the broadcast.
In the specific implementation, a character string Buffer is defined, and when a gun key scanning event is detected, the gun scanning information codes are stored into the character string Buffer one by one.
In a specific implementation, in the form of a broadcast: and defining a self-defined broadcast, and outputting the information in the character string Buffer as the broadcast parameters along with the broadcast when the last key event of the scanning gun is detected as carriage return. In a specific implementation, the scanning gun scanning information is a string of character strings, the string of character strings is obtained by one character and is transmitted into the Buffer, and when the last character of the string of information is obtained, a carriage return character exists, so that when the carriage return character is obtained, it is indicated that the scanning gun information is completely obtained, and at the moment, the information in the Buffer is sent in a broadcast mode, so that the scanning gun scanning information is sent in a broadcast mode.
Optionally, the output mode further includes a keyboard form, and the keyboard form includes directly outputting the information in the character string Buffer in an interface display frame where a mouse is located.
In a specific implementation, in the form of a keyboard: and directly outputting the information in the character string Buffer in an interface display frame where the mouse is positioned.
In a specific implementation, to implement the above technical solution, an interface for configuring an output mode is provided, and the interface may be a system attribute value or a method. The user interface menu for configuring the output mode by the user is further realized, the user can configure the output mode in the application menu, and the user can select three output modes: keyboard, broadcast, keyboard, and broadcast. The writing logic transmits the user configuration information to the interface, and when the scanning gun scans codes, the output mode of the scanning gun is judged through the interface, so that the scanning gun is output in the user configuration mode.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
The embodiment of the application provides a scanning gun output configuration system, which is suitable for the scanning gun output configuration method. As used below, the terms "unit," "module," and the like may implement a combination of software and/or hardware of predetermined functions. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
FIG. 2 is a block diagram of a scan gun output configuration system according to the present invention, referring to FIG. 2, including:
the device data acquisition module 1: obtaining description parameters of a scanning gun, judging whether the scanning gun exists or not according to the description parameters, and if so, obtaining pid, vid and descriptors of the scanning gun. Optionally, the description parameter is target scanning gun device description information of an InputDevice type.
In a specific implementation, the embodiments of the present application are implemented in the form of an interface. Configuring an interface of an output mode, and needing to transmit two parameters, wherein the parameter I is description information of target scanning gun equipment of an Inputdevice type; the second parameter is an output mode, and in specific implementation, the output mode parameter is an int type, which includes: 1, broadcasting; broadcast and keyboard; 3: a keyboard.
In specific implementation, whether the scanning gun exists or not is judged firstly through the parameters, if not, the scanning gun is not detected through a return value prompt, and if so, the pid and vid corresponding to the scanning gun and the description of the scanning gun are obtained. In the specific implementation, the description herein refers to a descriptor of a scan gun, and if pids and vids of scan guns of the same manufacturer and the same model are the same, but the descriptors are different, so in order to identify the differential scan, descriptor information of the scan gun is obtained on the basis of obtaining the pids and vids of the scan gun.
Output mode configuration module 2: composing the pid, the vid and the descriptor into a system attribute value of the scanning gun, and further assigning an output mode to the system attribute value to configure the output mode of the scanning gun
In the specific implementation, the information is used for forming a system attribute value representing the scanning gun in a 'connected mode', and then a parameter two value is assigned to the attribute value so as to configure the output mode of the scanning gun. The first few bits of the truncated descriptor information are used to form together with pid, vid the system attribute values referred to later. I.e., a system attribute value representing the scan gun is "pid of the scan gun". multidigit of the descriptor of the scan gun ".
In specific implementation, after configuration, when a user uses the scanning gun to scan a code, the user will check the value of the attribute value corresponding to the scanning gun, and output the value according to the corresponding output mode.
Broadcast mode output module 3: the output mode comprises a broadcast mode, a self-defined broadcast is defined, and when the last key event of the scanning gun is detected to be carriage return, the information scanned by the scanning gun is used as the parameter of the broadcast to be output along with the broadcast.
Optionally, a character string Buffer is defined, when a key event of the scanning gun is detected, the information codes of the scanning gun are stored into the character string Buffer one by one, and when a last key event of the scanning gun is detected as a carriage return, the information in the character string Buffer is used as the broadcast parameter to be output along with the broadcast.
In the specific implementation, a character string Buffer is defined, and when a gun key scanning event is detected, the gun scanning information codes are stored into the character string Buffer one by one.
In a specific implementation, in the form of a broadcast: and defining a self-defined broadcast, and outputting the information in the character string Buffer as the broadcast parameters along with the broadcast when the last key event of the scanning gun is detected as carriage return. In a specific implementation, the scanning gun scanning information is a string of character strings, the string of character strings is obtained by one character and is transmitted into the Buffer, and when the last character of the string of information is obtained, a carriage return character exists, so that when the carriage return character is obtained, it is indicated that the scanning gun information is completely obtained, and at the moment, the information in the Buffer is sent in a broadcast mode, so that the scanning gun scanning information is sent in a broadcast mode.
Optionally, the output mode further includes a keyboard form, and the keyboard form includes directly outputting the information in the character string Buffer in an interface display frame where a mouse is located.
In a specific implementation, in the form of a keyboard: and directly outputting the information in the character string Buffer in an interface display frame where the mouse is positioned.
In a specific implementation, to implement the above technical solution, an interface for configuring an output mode is provided, and the interface may be a system attribute value or a method. The user interface menu for configuring the output mode by the user is further realized, the user can configure the output mode in the application menu, and the user can select three output modes: keyboard, broadcast, keyboard, and broadcast. The writing logic transmits the user configuration information to the interface, and when the scanning gun scans codes, the output mode of the scanning gun is judged through the interface, so that the scanning gun is output in the user configuration mode.
Additionally, one scan gun output configuration method described in connection with FIG. 1 may be implemented by an electronic device. Fig. 3 is a block diagram of an electronic device of the present invention.
The electronic device may comprise aprocessor 61 and amemory 62 in which computer program instructions are stored.
Specifically, theprocessor 61 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 62 may include, among other things, mass storage for data or instructions. By way of example, and not limitation,memory 62 may include a Hard Disk Drive (Hard Disk Drive, abbreviated HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these.Memory 62 may include removable or non-removable (or fixed) media, where appropriate. Thememory 62 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, thememory 62 is a Non-Volatile (Non-Volatile) memory. In particular embodiments,Memory 62 includes Read-Only Memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), Electrically rewritable ROM (EAROM), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended data output Dynamic Random-Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
Thememory 62 may be used to store or cache various data files that need to be processed and/or used for communication, as well as possible computer program instructions executed by theprocessor 61.
Theprocessor 61 implements any of the scan gun output configuration methods described in the above embodiments by reading and executing computer program instructions stored in thememory 62.
In some of these embodiments, the electronic device may also include acommunication interface 63 and abus 60. As shown in fig. 3, theprocessor 61, thememory 62, and thecommunication interface 63 are connected via abus 60 to complete communication therebetween.
Thecommunication port 63 may be implemented with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
Thebus 60 includes hardware, software, or both to couple the components of the electronic device to one another.Bus 60 includes, but is not limited to, at least one of the following: data Bus (Data Bus), Address Bus (Address Bus), Control Bus (Control Bus), Expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example, and not limitation,Bus 60 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (FSB), a Hyper Transport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a Video Electronics Bus (audio Electronics Association), abbreviated VLB) bus or other suitable bus or a combination of two or more of these.Bus 60 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The electronic device can execute a scan gun output configuration method in the embodiment of the application.
In addition, in combination with the scan gun output configuration method in the foregoing embodiments, the embodiments of the present application may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the scan gun output configuration methods in the above embodiments.
And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

Translated fromChinese
1.一种扫描枪输出配置方法,其特征在于,包括:1. a scanning gun output configuration method, is characterized in that, comprises:设备数据获取步骤,获取一扫描枪的描述参数,通过所述描述参数判断扫描枪是否存在,若存在,则获取所述扫描枪的pid、vid及描述符;The device data acquisition step is to acquire a description parameter of a scanning gun, and determine whether the scanning gun exists through the description parameter, and if it exists, obtain the pid, vid and descriptor of the scanning gun;输出方式配置步骤,将所述pid、所述vid和所述描述符组成所述扫描枪的系统属性值,并进一步将输出方式赋给所述系统属性值以配置所述扫描枪的输出方式;In the output mode configuration step, the pid, the vid and the descriptor are formed into the system attribute value of the scanning gun, and the output mode is further assigned to the system attribute value to configure the output mode of the scanning gun;广播方式输出步骤,所述输出方式包括广播方式,定义一自定义广播,当检测到所述扫描枪的最后键事件为回车时,将所述扫描枪扫描的信息作为所述广播的参数随所述广播输出。The broadcast mode output step, the output mode includes a broadcast mode, and a custom broadcast is defined. When the last key event of the scanning gun is detected as a carriage return, the information scanned by the scanning gun is used as the parameter of the broadcast. the broadcast output.2.根据权利要求1所述的扫描枪输出配置方法,其特征在于,所述描述参数为InputDevice类型的目标扫描枪设备描述信息。2 . The scanning gun output configuration method according to claim 1 , wherein the description parameter is target scanning gun device description information of InputDevice type. 3 .3.根据权利要求1所述的扫描枪输出配置方法,其特征在于,所述广播方式输出步骤进一步包括:定义一字符串Buffer,检测到所述扫描枪的键事件时,将所述扫描枪的信息码逐一保存至所述字符串Buffer中,当检测到所述扫描枪的最后键事件为回车时,将所述字符串Buffer中的信息作为所述广播的参数随所述广播输出。3. The scanning gun output configuration method according to claim 1, wherein the broadcast mode output step further comprises: defining a character string Buffer, when detecting a key event of the scanning gun, sending the scanning gun The information codes are stored in the character string Buffer one by one, and when it is detected that the last key event of the scanning gun is a carriage return, the information in the character string Buffer is used as the parameter of the broadcast and output with the broadcast.4.根据权利要求3所述的扫描枪输出配置方法,其特征在于,所述输出方式还包括键盘形式,所述键盘形式包括将所述字符串Buffer中的信息直接输出在鼠标所在的界面显示框中。4. The scanning gun output configuration method according to claim 3, wherein the output mode also includes a keyboard form, and the keyboard form includes directly outputting the information in the character string Buffer on an interface where the mouse is located. box.5.一种扫描枪输出配置系统,其特征在于,包括:5. a scanning gun output configuration system, is characterized in that, comprises:设备数据获取模块,获取一扫描枪的描述参数,通过所述描述参数判断扫描枪是否存在,若存在,则获取所述扫描枪的pid、vid及描述符;The device data acquisition module acquires a description parameter of a scanning gun, judges whether the scanning gun exists through the description parameter, and if it exists, obtains the pid, vid and descriptor of the scanning gun;输出方式配置模块,将所述pid、所述vid和所述描述符组成所述扫描枪的系统属性值,并进一步将输出方式赋给所述系统属性值以配置所述扫描枪的输出方式;an output mode configuration module, which composes the pid, the vid and the descriptor into the system attribute value of the scanning gun, and further assigns the output mode to the system attribute value to configure the output mode of the scanning gun;广播方式输出模块,所述输出方式包括广播方式,定义一自定义广播,当检测到所述扫描枪的最后键事件为回车时,将所述扫描枪扫描的信息作为所述广播的参数随所述广播输出。Broadcast mode output module, the output mode includes broadcast mode, defines a custom broadcast, when it is detected that the last key event of the scanning gun is Enter, the information scanned by the scanning gun is used as the parameter of the broadcast along with the the broadcast output.6.根据权利要求5所述的扫描枪输出配置系统,其特征在于,所述描述参数为InputDevice类型的目标扫描枪设备描述信息。6 . The scanning gun output configuration system according to claim 5 , wherein the description parameter is target scanning gun device description information of InputDevice type. 7 .7.根据权利要求5所述的扫描枪输出配置系统,其特征在于,所述广播方式输出模块进一步包括:定义一字符串Buffer,检测到所述扫描枪的键事件时,将所述扫描枪的信息码逐一保存至所述字符串Buffer中,当检测到所述扫描枪的最后键事件为回车时,将所述字符串Buffer中的信息作为所述广播的参数随所述广播输出。7. The scanning gun output configuration system according to claim 5, wherein the broadcast mode output module further comprises: defining a character string Buffer, when detecting a key event of the scanning gun, the scanning gun The information codes are stored in the character string Buffer one by one, and when it is detected that the last key event of the scanning gun is a carriage return, the information in the character string Buffer is used as the parameter of the broadcast and output with the broadcast.8.根据权利要求7所述的扫描枪输出配置系统,其特征在于,所述输出方式还包括键盘形式,所述键盘形式包括将所述字符串Buffer中的信息直接输出在鼠标所在的界面显示框中。8. The scanning gun output configuration system according to claim 7, wherein the output mode also includes a keyboard form, and the keyboard form includes directly outputting the information in the character string Buffer to be displayed on the interface where the mouse is located box.9.一种电子设备,包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至4中任一项所述的扫描枪输出配置方法。9. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements the computer program as claimed in the claims The scanning gun output configuration method described in any one of 1 to 4.10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1至4中任一项所述的扫描枪输出配置方法。10. A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the method for configuring the output of a scanner gun according to any one of claims 1 to 4 is implemented.
CN202110959159.6A2021-08-202021-08-20 A scanning gun output configuration method, system, electronic device and storage mediumPendingCN113836955A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110959159.6ACN113836955A (en)2021-08-202021-08-20 A scanning gun output configuration method, system, electronic device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110959159.6ACN113836955A (en)2021-08-202021-08-20 A scanning gun output configuration method, system, electronic device and storage medium

Publications (1)

Publication NumberPublication Date
CN113836955Atrue CN113836955A (en)2021-12-24

Family

ID=78961036

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110959159.6APendingCN113836955A (en)2021-08-202021-08-20 A scanning gun output configuration method, system, electronic device and storage medium

Country Status (1)

CountryLink
CN (1)CN113836955A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116909962A (en)*2023-06-062023-10-20麦格纳汽车镜像(天津)有限公司Data transmission method and device suitable for USB code scanning gun and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6015090A (en)*1992-06-122000-01-18Symbol Technologies, Inc.Hand mountable adaptive barcode scanner
US20050077358A1 (en)*2003-10-082005-04-14Thomas BoehmSystem and method for configuring an omnidirectional scanner
US20090205000A1 (en)*2008-02-052009-08-13Christensen Kelly MSystems, methods, and devices for scanning broadcasts
CN102073840A (en)*2010-12-312011-05-25广东川田科技有限公司Scanning gun
CN104918307A (en)*2015-04-152015-09-16深圳市金立通信设备有限公司Terminal
CN108780544A (en)*2016-12-302018-11-09华为技术有限公司The method and mobile device carried out data transmission using bar code
CN110109850A (en)*2019-05-212019-08-09珠海奔图电子有限公司Searching method and device based on scanning device under SANE protocol frame
CN111951500A (en)*2020-08-172020-11-17上海商米科技集团股份有限公司Scanning method and device
CN112257478A (en)*2020-10-202021-01-22北京字节跳动网络技术有限公司Code scanning method, device, terminal and storage medium
CN112487836A (en)*2020-11-272021-03-12浪潮金融信息技术有限公司Method, device and medium for using automatic terminal code scanner

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6015090A (en)*1992-06-122000-01-18Symbol Technologies, Inc.Hand mountable adaptive barcode scanner
US20050077358A1 (en)*2003-10-082005-04-14Thomas BoehmSystem and method for configuring an omnidirectional scanner
US20090205000A1 (en)*2008-02-052009-08-13Christensen Kelly MSystems, methods, and devices for scanning broadcasts
CN102073840A (en)*2010-12-312011-05-25广东川田科技有限公司Scanning gun
CN104918307A (en)*2015-04-152015-09-16深圳市金立通信设备有限公司Terminal
CN108780544A (en)*2016-12-302018-11-09华为技术有限公司The method and mobile device carried out data transmission using bar code
CN110109850A (en)*2019-05-212019-08-09珠海奔图电子有限公司Searching method and device based on scanning device under SANE protocol frame
CN111951500A (en)*2020-08-172020-11-17上海商米科技集团股份有限公司Scanning method and device
CN112257478A (en)*2020-10-202021-01-22北京字节跳动网络技术有限公司Code scanning method, device, terminal and storage medium
CN112487836A (en)*2020-11-272021-03-12浪潮金融信息技术有限公司Method, device and medium for using automatic terminal code scanner

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
男人要像阳光: "https://blog.csdn.net/qq_28627123/article/details/52670136 2/7 android设备连接蓝牙扫描枪获取数据", pages 1 - 7, Retrieved from the Internet <URL:https://blog.csdn.net/CSDNno/article/details/79639426>*
造梦先生: "商米机自助收银说明", pages 1 - 6, Retrieved from the Internet <URL:https://blog.csdn.net/qulongle6023/article/details/102687892>*
造梦先生: "商米机自助收银说明_商米 aidl 扫码 模拟键盘输出-CSDN博客", pages 1 - 5, Retrieved from the Internet <URL:https://blog.csdn.net/qulongle6023/article/details/102687892>*

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116909962A (en)*2023-06-062023-10-20麦格纳汽车镜像(天津)有限公司Data transmission method and device suitable for USB code scanning gun and electronic equipment

Similar Documents

PublicationPublication DateTitle
USRE48430E1 (en)Two-dimensional code processing method and terminal
CN107563201B (en)Associated sample searching method and device based on machine learning and server
US9886766B2 (en)Electronic device and method for adding data to image and extracting added data from image
CN111625782B (en) Source code access rights control method, device, computer equipment and storage medium
CN111324352A (en)Code generation method of application page and related equipment
CN106815522A (en)Mobile terminal software vacation interface identification method and device
CN108958755B (en)Method and device for generating application program installation package and electronic equipment
CN105988837A (en)Installation method and device of application program
CN113885935A (en)Resource packaging method and device, electronic equipment and computer readable storage medium
US20250165563A1 (en)Image processing system for verification of rendered data
CN113126986A (en)Dynamic data-based form item rendering method, system, equipment and storage medium
CN114154474A (en) Data export method, system, computer device and readable storage medium
CN113836955A (en) A scanning gun output configuration method, system, electronic device and storage medium
CN110007967B (en) A data processing method, device and device based on streaming framework
KR101833220B1 (en)Deobfuscation assessing apparatus of application code and method of assessing deobfuscation of application code using the same
CN107577943B (en) Sample prediction method, device and server based on machine learning
CN108197955B (en)Terminal verification method, terminal device and computer readable storage medium
CN107515704B (en)Method and device for previewing compressed file
CN108319868A (en)Guard method, device, storage medium and the terminal device of picture access
CN114500368B (en)Data transmission method and device and router adopting device
CN113535338A (en)Interaction method, system, storage medium and electronic device for data access
CN112507235A (en)Mixed-rank material recommendation method and system, electronic equipment and storage medium
CN113535722A (en) Mapping-based DAG traceability sampling method, system, equipment and storage medium
CN113268145B (en)Physical input device input method, system, electronic device and storage medium
CN113032038A (en)Application program management method and device, computing equipment and readable storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20211224

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp