CN112003962A - Scanning gun base and processing method, device and medium thereof - Google Patents

Scanning gun base and processing method, device and medium thereof Download PDF

Info

Publication number
CN112003962A
CN112003962A CN202010819587.4A CN202010819587A CN112003962A CN 112003962 A CN112003962 A CN 112003962A CN 202010819587 A CN202010819587 A CN 202010819587A CN 112003962 A CN112003962 A CN 112003962A
Authority
CN
China
Prior art keywords
data
scanning gun
base
scanning
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
CN202010819587.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.)
Netum Intelligent Guangzhou Technology Co ltd
Original Assignee
Netum Intelligent Guangzhou 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 Netum Intelligent Guangzhou Technology Co ltd filed Critical Netum Intelligent Guangzhou Technology Co ltd
Priority to CN202010819587.4A priority Critical patent/CN112003962A/en
Publication of CN112003962A publication Critical patent/CN112003962A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10198Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves setting parameters for the interrogator, e.g. programming parameters and operating modes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10297Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support

Abstract

The embodiment of the invention discloses a scanning gun base and a processing method, a processing device and a processing medium thereof, relating to the technical field of scanning guns, wherein the scanning gun base is provided with media access control address data, and the processing method of the scanning gun base comprises the following steps: extracting base address data from the received scanning gun data; if the base address data is matched with the media access control address data, determining target forwarding data according to the scanning gun data; and transmitting the target forwarding data to the main base so as to forward the target forwarding data to the terminal equipment through the main base, wherein the terminal equipment is used for carrying out service processing according to the target forwarding data. The embodiment of the invention enables the same terminal equipment to process the information scanned by a plurality of scanning guns, thereby solving the problem of high information scanning cost caused by the fact that the terminal equipment with the same number as the scanning guns is needed to process the information scanned by the scanning guns in the prior art, and effectively reducing the information scanning cost.

Description

Scanning gun base and processing method, device and medium thereof
Technical Field
The embodiment of the invention relates to the technical field of scanning guns, in particular to a scanning gun base and a processing method, a processing device and a processing medium thereof.
Background
With the development of scanning technology, bar codes, two-dimensional codes and the like are more and more widely used by people.
In practical applications, information on a bar code or a two-dimensional code is usually scanned by a scanning gun and is input to a terminal device such as a computer, so as to realize identification and management of the bar code information. At present, scanning guns are usually connected with terminal devices in a one-to-one correspondence manner in a wired or wireless manner, that is, each scanning gun needs to have an independent terminal device connected with the scanning gun in a corresponding manner, so as to perform service processing on information scanned by each scanning gun through the terminal device. When there are several scanning guns, the terminal devices with the same number as the scanning guns are needed to process the information scanned by the scanning guns, and the price of the terminal devices is expensive, which increases the information scanning cost.
Disclosure of Invention
The invention provides a scanning gun base and a processing method, a processing device and a processing medium thereof, which are used for realizing a many-to-one transmission system of a scanning gun and terminal equipment, thereby reducing the information scanning cost.
In a first aspect, an embodiment of the present invention provides a processing method for a scan gun base, where the scan gun base is provided with media access control address data, and the processing method includes:
extracting base address data from the received scanning gun data;
if the base address data is matched with the media access control address data, determining target forwarding data according to the scanning gun data;
and transmitting the target forwarding data to a main base so as to forward the target forwarding data to terminal equipment through the main base, wherein the terminal equipment is used for carrying out service processing according to the target forwarding data.
Optionally, after the extracting the address data of the base, the method further includes: judging whether the base address data is matched with the media access control address data; and if the base address data is not matched with the media access control address data, ignoring the scanning gun data or deleting the scanning gun data.
Optionally, the processing method is applied to a scanning gun base, the scanning gun base establishes a communication connection with a scanning gun in a wireless manner, and the processing method further includes: and receiving scanning gun data based on the communication connection, wherein the scanning gun data is sent by the scanning gun according to the scanned information.
Optionally, determining target forwarding data according to the scan gun data includes:
extracting service data scanned by a scanning gun from the scanning gun data;
and determining the service data as the target forwarding data.
Optionally, before transmitting the target forwarding data to the master chassis, the method further includes: detecting whether a chip selection pin connected with the main base receives a chip selection enabling signal output by the main base or not; and if the chip selection pin receives the chip selection enabling signal, executing the step of transmitting the target forwarding data to a main base based on the chip selection enabling signal, wherein the main base is a base connected with the terminal equipment, and the working mode of the main base is configured to be a host mode.
In a second aspect, an embodiment of the present invention further provides a processing apparatus for a scan gun base, where the scan gun base is provided with media access control address data, and the processing apparatus includes:
the base address extraction module is used for extracting base address data from the received scanning gun data;
a forwarding data determining module, configured to determine target forwarding data according to the scan gun data when the base address data matches the mac address data;
and the forwarding data transmission module is used for transmitting the target forwarding data to a main base so as to forward the target forwarding data to the terminal equipment through the main base, wherein the terminal equipment is used for carrying out service processing according to the target forwarding data.
Optionally, the processing apparatus is applied to a scanning gun base, the scanning gun base establishes a communication connection with a scanning gun in a wireless manner, and the processing apparatus further includes the following modules:
the base address judging module is used for judging whether the base address data is matched with the media access control address data;
a data ignoring and deleting module, configured to ignore the scan gun data or delete the scan gun data when the base address data is not matched with the media access control address data;
a scanning gun data receiving module, configured to receive scanning gun data based on the communication connection, where the scanning gun data is sent by the scanning gun according to scanned information;
the chip selection pin detection module is used for detecting whether a chip selection pin connected with the main base receives a chip selection enabling signal output by the main base or not;
and the forwarding triggering module is used for triggering the forwarding data transmission module to execute the step of transmitting the target forwarding data to the main base based on the chip selection enabling signal when the chip selection pin receives the chip selection enabling signal, wherein the main base is a base connected with the terminal equipment, and the working mode of the main base is configured to be a host mode.
Optionally, the forwarding data determining module includes:
the service data extraction sub-module is used for extracting the service data scanned by the scanning gun from the scanning gun data;
and the forwarding data determining submodule is used for determining the service data as the target forwarding data.
In a third aspect, an embodiment of the present invention further provides a scanning gun base, including: a processor and a memory; the memory has stored therein at least one instruction that, when executed by the processor, causes the scan gun mount to perform a method of processing a scan gun mount as described in the first aspect.
In a fourth aspect, the embodiments of the present invention also provide a computer-readable storage medium, where instructions, when executed by a processor of an apparatus, enable the apparatus to perform the processing method of the scanning gun base according to the first aspect.
In the embodiment, the base address data is extracted from the received scanning gun data, so that when the base address data is matched with the media access control address data set in the scanning gun base, the target forwarding data is determined according to the scanning gun data, and is transmitted to the main base, so that the target forwarding data is forwarded to the terminal device through the main base for service processing, that is, the information scanned by the scanning gun connected to the scanning gun base is transmitted to the terminal device through the main base, so that the same terminal device can process the information scanned by a plurality of scanning guns, thereby solving the problem of high information scanning cost caused by the fact that the terminal devices with the same number as the scanning guns are required to process the information scanned by the scanning guns in the prior art, and effectively reducing the information scanning cost.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for processing a base of a scan gun according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a main mount coupled to a terminal device and a plurality of scan gun mounts in one example of the invention.
FIG. 3 is a flow chart illustrating steps in a method for processing a base of a scanning gun in an alternative embodiment of the invention;
fig. 4 is a schematic structural block diagram of a processing apparatus of a base of a scanning gun according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of steps of a processing method for a scanning gun base according to an embodiment of the present invention, where the present embodiment is applicable to a processing situation of the scanning gun base, and the scanning gun base may be connected to a scanning gun in a one-to-one correspondence manner in a wireless manner, that is, the scanning gun base may be bound to the scanning gun, and may transmit corresponding target forwarding data to a main base connected to a terminal device according to scanning gun data sent by the bound scanning gun, so as to forward the target forwarding data to the terminal device through the main base for service processing. Specifically, the scan gun base of the embodiment of the present invention may be provided with media access control address data, and the processing method of the scan gun base includes the following steps:
step 110, extracting the base address data from the received scan gun data.
The scan gun data may be data sent by the scan gun in a wireless manner, and specifically may be sent by the scan gun according to the scanned information. Specifically, after the scanning gun scans the information, the scanning gun base can generate and send corresponding scanning gun data by adding address data of the base bound and connected with the scanning gun base in the scanning information, that is, adding base address data, so that the scanning gun base can receive the scanning gun data. After receiving the scanning gun data, the scanning gun base can extract base address data from the scanning gun data, so as to determine whether the scanning gun data is the data sent by the scanning gun bound to the scanning gun base according to the base address data. It should be noted that the base Address data may represent an Address of the scanning gun base, and may be specifically used to identify the scanning gun base, for example, the base may be a Media Access Control Address (MAC) of the scanning gun base, and the like, which is not limited in this embodiment.
And 120, if the base address data is matched with the media access control address data, determining target forwarding data according to the scanning gun data.
Specifically, after the base address data is extracted from the scanning gun data, the present embodiment may compare the base address data with the media access control address data set in the scanning gun base to determine whether the base address data matches the media access control address data set in the scanning gun base. If the extracted base address data is matched with the media access control address data set in the scanning gun base, it can be determined that the currently received scanning gun data is data sent by the scanning gun bound with the scanning gun base, that is, the scanning gun base can analyze and forward the scanning gun data, specifically, the scanning gun base can analyze business data to be forwarded from the scanning gun data, and then can produce corresponding target forwarding data according to the business data.
Optionally, after extracting the base address data, the processing method of the scanning gun base according to this embodiment may further include: judging whether the base address data is matched with the media access control address data; and if the base address data is not matched with the media access control address data, ignoring the scanning gun data or deleting the scanning gun data. Specifically, in the embodiment, after the base address data is extracted from the received scanning gun data, the base address data may be compared with the MAC data preset in the local, so as to determine whether the base address data is consistent with the MAC data preset in the local, that is, determine whether the extracted base address data matches with the MAC address data set in the scanning gun base. If the base address data extracted from the scanning gun data is consistent with the MAC data preset in the local, that is, if the extracted base address data matches the MAC address data set in the scanning gun base, the scanning gun data may be the data sent by the scanning gun bound to the scanning gun base, and then the target forwarding data may be determined based on the service data carried in the scanning gun data, and then step 130 is performed. If the base address data extracted from the scanning gun data is inconsistent with the MAC data preset in the local, that is, if the extracted base address data is not matched with the MAC address data set in the scanning gun base, it can be determined that the scanning gun sending the scanning gun data is not bound with the scanning gun base, the scanning gun base can ignore the scanning gun data and does not process the scanning gun data, if the service data carried in the scanning gun data is not forwarded, that is, the corresponding target forwarding data does not need to be generated according to the scanning gun data, or the scanning gun data can be directly deleted, so as to save the storage resources in the scanning gun base.
Step 130, transmitting the target forwarding data to a main base, so as to forward the target forwarding data to a terminal device through the main base.
And the terminal equipment is used for carrying out service processing according to the target forwarding data. Specifically, in this embodiment, after the scan gun base determines the target forwarding data, the target forwarding data may be transmitted to the main base connected to the terminal device, so that the target forwarding data is forwarded to the terminal device through the main base, and the terminal device may perform service processing according to the target forwarding data after receiving the target forwarding data. The target forwarding data may carry various information related to service processing scanned by the scanning gun, such as barcode information scanned by the scanning gun, which is not specifically limited in this embodiment.
It should be noted that the main base in this embodiment may be connected to a terminal device and a plurality of scanning gun bases, and may send target forwarding data to the terminal device for service processing after receiving the target forwarding data sent by the scanning gun bases. For example, as shown in fig. 2, the Master chassis may be communicatively connected to a terminal device such as a computer through a Universal Serial Bus (USB), and may communicate with N scan gun chassis through a Serial Peripheral Interface (SPI) to implement data transmission of each scan gun chassis through a Chip Select (CS) signal, that is, target forwarding data transmitted by each scan gun chassis is transmitted after being enabled through Chip Select pins CS1, CS2, and CS3 … … CSN of the Master chassis, specifically, which Chip Select pin enables to transmit target forwarding data transmitted by the scan gun chassis connected to which Chip Select pin is connected, and after being enabled through a Chip Select pin CS1, a Master Input/Slave Output data (Master Output Slave) line and a Master Output/Slave Input data (Slave Output Slave, MOSI) line transmits target forwarding data sent by the scanning gun base 1 connected with the chip select pin CS 1; similarly, after the chip select pin CS2 is enabled, the target forwarding data sent by the scan gun base 2 connected to the chip select pin CS2 may be transmitted through the serial clock line, the master input/slave output data line, and the master output/slave input data line; after the chip selection pin CS3 is enabled, transmitting target forwarding data … … sent by the base 3 connected with the chip selection pin CS3, and so on, and after the chip selection pin CSN-1 is enabled, transmitting target forwarding data sent by the scanning gun base N-1 connected with the chip selection pin CSN-1 through a serial clock line, a host input/slave output data line and a host output/slave input data line; after the chip selection pin CSN is enabled, target forwarding data sent by a scanning gun base N connected with the chip selection pin CSN can be transmitted through a serial clock line, a host input/slave output data line and a host output/slave input data line, wherein N is an integer. Therefore, the main base connected with the terminal equipment can communicate with the plurality of scanning gun bases through the SPI, and can forward data transmitted by the scanning gun bases to the terminal equipment, so that the same terminal equipment can process information scanned by a plurality of scanning guns, a many-to-one transmission system of the scanning guns is realized, the number of the terminal equipment required when a plurality of scanning guns are used can be reduced, and the information scanning cost can be effectively reduced.
In summary, in the embodiment, the base address data is extracted from the received scanning gun data, so that when the base address data matches the media access control address data set in the scanning gun base, the target forwarding data is determined according to the scanning gun data, and is transmitted to the main base, so that the target forwarding data is forwarded to the terminal device through the main base for service processing, that is, the information scanned by the scanning guns connected to the scanning gun base is transmitted to the terminal device through the main base, so that the same terminal device can process the information scanned by multiple scanning guns, thereby solving the problem of high information scanning cost caused by the fact that the terminal devices with the same number as the scanning guns are required to process the information scanned by the scanning guns in the prior art, and effectively reducing the information scanning cost.
On the basis of the foregoing embodiment, optionally, before transmitting the target forwarding data to the master chassis, the embodiment of the present invention may further include: detecting whether a chip selection pin connected with the main base receives a chip selection enabling signal output by the main base or not; and if the chip selection pin receives the chip selection enabling signal, executing the step of transmitting the target forwarding data to a main base based on the chip selection enabling signal, wherein the main base is a base connected with the terminal equipment, and the working mode of the main base is configured to be a host mode. Specifically, the main chassis is configured in a host mode, can support at least two scan gun chassis connections, and can output a chip select enable signal to the scan gun chassis as a main device to select a data input of a corresponding scan gun chassis through the chip select enable signal. Specifically, after receiving a chip select enable signal output by a master base as a master device, a scan gun base as a slave device may transmit target forwarding data to the master base through a connection line such as an SCLK line, a MISO line, and a MOSI line based on the chip select enable signal, so as to forward the target forwarding data to a terminal device through the master base for service processing. If the scanning gun base does not receive the chip selection enabling signal, the target forwarding data can be cached firstly, and the chip selection enabling signal sent by the main base is waited to be received, so that the target forwarding data is transmitted when the chip selection enabling signal is waited, and the stability of data transmission is ensured.
In a specific implementation, the processing method of the scanning gun base provided in the embodiment of the present invention may be applied to a scanning gun base, where the scanning gun base may establish a communication connection with a scanning gun in a wireless manner, that is, the scanning gun base is correspondingly connected with the scanning gun, and the scanning gun may add base address data corresponding to the scanning gun base to scanned information, so that scanning gun data sent by the scanning gun may carry base address data corresponding to the scanning gun base, and the binding between the scanning gun and the scanning gun base is implemented. Optionally, the processing method of the scanning gun base provided by the embodiment of the present invention may further include: and receiving scanning gun data based on the communication connection, wherein the scanning gun data is sent by the scanning gun according to the scanned information.
Referring to FIG. 3, a flow chart of steps of a method of processing a scan gun mount in an alternative embodiment of the invention is shown. The processing method of the scanning gun base can be applied to the scanning gun base, and the scanning gun base can be in communication connection with a scanning gun in a wireless mode. As shown in fig. 3, the processing method of the scanning gun base in the embodiment of the present invention may specifically include the following steps:
step 310, receiving scanning gun data based on the communication connection, wherein the scanning gun data is sent by the scanning gun according to the scanned information.
The information scanned by the scanning gun may include various data scanned by the scanning gun, such as base address data corresponding to a base of the scanning gun, service data related to service processing of the scanning gun, and the like, and the object of this embodiment is not particularly limited.
In step 320, the base address data is extracted from the received scan gun data.
Step 330, determining whether the base address data matches with media access control address data;
specifically, the scanning gun base in this embodiment may determine whether to process currently received scanning gun data by determining whether the extracted base address data matches the media access control address data set in the local, and if so, whether to forward service data carried in the scanning gun data. If the base address data does not match the mac address data, step 340 may be performed. And if the base address data is matched with the media access control address data, skipping to step 350 for execution so as to forward the service data carried in the scanning gun data.
Step 340, ignoring the scanning gun data, or deleting the scanning gun data.
Specifically, when the base address data extracted from the scanning gun data by the scanning gun base is not matched with the locally set media access control address data, the scanning gun data can be ignored, that is, the scanning gun data can not be processed, so that the processor resource of the scanning gun base is saved, the processing efficiency of the scanning gun base is improved, or the scanning gun data can be deleted, so that the storage resource of the scanning gun base is saved.
And step 350, determining target forwarding data according to the scanning gun data.
Specifically, when the base address data extracted from the scanning gun data matches the locally set mac address data, the scanning gun base may parse the service data to be forwarded from the scanning gun data, and then may generate corresponding target forwarding data according to the service data.
Further, the determining target forwarding data according to the scan gun data in the embodiment of the present invention may specifically include: extracting service data scanned by a scanning gun from the scanning gun data; and determining the service data as the target forwarding data. It should be noted that the service data may refer to data related to service processing scanned by a scanning gun, such as barcode data scanned by the scanning gun, and the present embodiment does not specifically limit this.
And step 360, detecting whether a chip selection pin connected with the main base receives a chip selection enabling signal output by the main base.
In this embodiment, the main base may be a base connected to the terminal device, and the working mode of the main base may be configured to be a host mode, so as to be connected to one or more scanning gun bases as a main device. In specific implementation, the main base configured in the host mode may output a chip selection enable signal according to a data transmission requirement, and further may trigger the scanning gun base connected thereto to input target forwarding data to be forwarded to the terminal device based on the chip selection enable signal, that is, the scanning gun base sends the determined target forwarding data to the main base.
Step 370, transmitting the target forwarding data to a master base based on the chip select enable signal.
Specifically, when the chip select pin receives the chip select enable signal output by the main chassis, the scan gun chassis may execute step 370 based on the chip select enable signal, so as to send the target forwarding data to the terminal device through the main chassis for service processing. The terminal device is used for carrying out service processing according to the target forwarding data after receiving the target forwarding data, so that the aim of processing the information scanned by the scanning gun is fulfilled, and the requirement of processing the scanning information is met.
To sum up, the embodiment determines the target forwarding data according to the scanning gun data when the base address data is matched with the mac address data set in the scanning gun base, so that the scanning gun base sends the data to be sent by the scanning gun bound to the scanning gun base, thereby reducing crosstalk between signals, and transmits the target forwarding data to the main base, so that the target forwarding data is forwarded to the terminal device through the main base for service processing, i.e., the information scanned by the scanning gun connected to the scanning gun base is transmitted to the terminal device through the main base, so that the same terminal device can process the information scanned by multiple scanning guns, i.e., a many-to-one transmission system of the scanning guns and the terminal device is implemented, thereby solving the problem that the information scanning cost is high due to the fact that the terminal device with the same number as the scanning guns needs to process the information scanned by the scanning guns in the prior art The problem is that the information scanning cost is effectively reduced.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention.
Referring to fig. 4, a schematic block diagram of a processing apparatus of a base of a scanning gun according to an embodiment of the present invention is shown. The scan gun base in this embodiment is provided with media access control address data, and as shown in fig. 4, the processing device of the scan gun base may specifically include the following modules:
the base address extraction module is used for extracting base address data from the received scanning gun data;
a forwarding data determining module, configured to determine target forwarding data according to the scan gun data when the base address data matches the mac address data;
and the forwarding data transmission module is used for transmitting the target forwarding data to a main base so as to forward the target forwarding data to the terminal equipment through the main base.
And the terminal equipment is used for carrying out service processing according to the target forwarding data.
On the basis of the above embodiment, optionally, the processing apparatus of the scanning gun base in this embodiment further includes the following modules:
the base address judging module is used for judging whether the base address data is matched with the media access control address data;
and the data ignoring and deleting module is used for ignoring the scanning gun data or deleting the scanning gun data when the base address data is not matched with the media access control address data.
For example, the base address determining module may determine whether the base address data matches the mac address data after the base address extracting module extracts the base address data; if the base address data matches the media access control address data, the forwarding data transmission module may be triggered to transmit the target forwarding data to the master base; if the base address data is not matched with the media access control address data, the data ignoring and deleting module can be triggered to ignore the currently received scanning gun data, or delete the scanning gun data.
In a specific implementation, optionally, the processing apparatus of the scanning gun base provided in this embodiment may be applied to a scanning gun base, the scanning gun base may establish a communication connection with a scanning gun in a wireless manner, and the processing apparatus of the scanning gun base may further include a scanning gun data receiving module. The scanning gun data receiving module is used for receiving scanning gun data based on the communication connection. And the scanning gun data is sent by the scanning gun according to the scanned information.
In an optional embodiment of the present invention, the forwarding data determining module may include the following sub-modules:
the service data extraction sub-module is used for extracting the service data scanned by the scanning gun from the scanning gun data;
and the forwarding data determining submodule is used for determining the service data as the target forwarding data. Optionally, the processing apparatus for a base of a scanning gun provided in this embodiment may further include the following modules:
the chip selection pin detection module is used for detecting whether a chip selection pin connected with the main base receives a chip selection enabling signal output by the main base or not;
and the forwarding triggering module is used for triggering the forwarding data transmission module to transmit the target forwarding data to the main base based on the chip selection enabling signal when the chip selection pin receives the chip selection enabling signal. The main base is connected with the terminal equipment, and the working mode of the main base is configured to be a host mode.
For example, the chip select pin detection module may detect whether the chip select pin connected to the main chassis receives a chip select enable signal output by the main chassis before the forwarding data transmission module transmits the target forwarding data to the main chassis; if the chip selection pin receives the chip selection enabling signal, the forwarding data transmission module can be triggered to execute the step of transmitting the target forwarding data to the main base through the forwarding triggering module. If the chip selection pin does not receive the chip selection enabling signal, the target forwarding data is cached through a storage device such as a memory in the scanning gun base, so that when the fact that the chip selection pin receives the chip selection enabling signal is detected, the target forwarding data is transmitted to a main base connected with the terminal device, the terminal device can carry out service processing according to the target forwarding data, corresponding service processing of the scanning gun is completed, and the purpose of processing information scanned by the scanning gun is achieved.
It should be noted that, the processing device of the scanning gun base in the above embodiments can execute the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
In a specific implementation, the processing device of the scanning gun base may be formed by two or more physical entities, or may be formed by one physical entity, and may be integrated in the scanning gun base, which is not particularly limited in this embodiment.
Further, an embodiment of the present invention further provides a scanning gun base, including: a processor and a memory. At least one instruction is stored in the memory and executed by the processor to cause the scan gun mount to perform a method of processing a scan gun mount as described in the method embodiments above.
Embodiments of the present invention further provide a computer-readable storage medium, where instructions of the computer-readable storage medium, when executed by a processor of a device, enable the device to perform a processing method of a scan gun base as described in the above method embodiments. Illustratively, the processing method of the scanning gun base comprises the following steps: extracting base address data from the received scanning gun data; if the base address data is matched with the media access control address data set by the scanning gun base, determining target forwarding data according to the scanning gun data; and transmitting the target forwarding data to a main base so as to forward the target forwarding data to terminal equipment through the main base, wherein the terminal equipment is used for carrying out service processing according to the target forwarding data.
It should be noted that, as for the embodiments of the apparatus, the base of the scanning gun, and the storage medium, since they are basically similar to the embodiments of the method, the description is simple, and the relevant points can be referred to the partial description of the embodiments of the method.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, and includes instructions for enabling a device (such as a device that may be a scanning gun base or the like) to execute the processing method of the scanning base according to any embodiment of the present invention.
It should be noted that, in the processing apparatus of the scanning gun base, the units and modules included in the processing apparatus are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by suitable instruction execution devices. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example, and the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A processing method of a scanning gun base is characterized in that the scanning gun base is provided with media access control address data, and the processing method comprises the following steps:
extracting base address data from the received scanning gun data;
if the base address data is matched with the media access control address data, determining target forwarding data according to the scanning gun data;
and transmitting the target forwarding data to a main base so as to forward the target forwarding data to terminal equipment through the main base, wherein the terminal equipment is used for carrying out service processing according to the target forwarding data.
2. The processing method according to claim 1, further comprising, after extracting the base address data:
judging whether the base address data is matched with the media access control address data;
and if the base address data is not matched with the media access control address data, ignoring the scanning gun data or deleting the scanning gun data.
3. The processing method according to claim 1, wherein the processing method is applied to a scanning gun base, the scanning gun base establishes a communication connection with a scanning gun in a wireless manner, and the processing method further comprises:
and receiving scanning gun data based on the communication connection, wherein the scanning gun data is sent by the scanning gun according to the scanned information.
4. The process of claim 1, wherein determining target forwarding data from the scan gun data comprises:
extracting service data scanned by a scanning gun from the scanning gun data;
and determining the service data as the target forwarding data.
5. The process of any one of claims 1 to 4, further comprising, prior to transmitting the target forwarding data to a primary chassis:
detecting whether a chip selection pin connected with the main base receives a chip selection enabling signal output by the main base or not;
and if the chip selection pin receives the chip selection enabling signal, executing the step of transmitting the target forwarding data to a main base based on the chip selection enabling signal, wherein the main base is a base connected with the terminal equipment, and the working mode of the main base is configured to be a host mode.
6. A processing apparatus of a scanning gun mount, the scanning gun mount provided with media access control address data, the processing apparatus comprising:
the base address extraction module is used for extracting base address data from the received scanning gun data;
a forwarding data determining module, configured to determine target forwarding data according to the scan gun data when the base address data matches the mac address data;
and the forwarding data transmission module is used for transmitting the target forwarding data to a main base so as to forward the target forwarding data to the terminal equipment through the main base, wherein the terminal equipment is used for carrying out service processing according to the target forwarding data.
7. The processing device according to claim 6, wherein the processing device is applied to a scanning gun base, the scanning gun base establishes a communication connection with a scanning gun in a wireless manner, and the processing device further comprises:
the base address judging module is used for judging whether the base address data is matched with the media access control address data;
a data ignoring and deleting module, configured to ignore the scan gun data or delete the scan gun data when the base address data is not matched with the media access control address data;
a scanning gun data receiving module, configured to receive scanning gun data based on the communication connection, where the scanning gun data is sent by the scanning gun according to scanned information;
the chip selection pin detection module is used for detecting whether a chip selection pin connected with the main base receives a chip selection enabling signal output by the main base or not;
and the forwarding triggering module is used for triggering the forwarding data transmission module to execute the step of transmitting the target forwarding data to the main base based on the chip selection enabling signal when the chip selection pin receives the chip selection enabling signal, wherein the main base is a base connected with the terminal equipment, and the working mode of the main base is configured to be a host mode.
8. The processing apparatus according to claim 6 or 7, wherein the forwarding data determination module comprises:
the service data extraction sub-module is used for extracting the service data scanned by the scanning gun from the scanning gun data;
and the forwarding data determining submodule is used for determining the service data as the target forwarding data.
9. A scanning gun mount, comprising: a processor and a memory;
the memory has stored therein at least one instruction that, when executed by the processor, causes the scanning gun mount to perform a method of processing the scanning gun mount of any of claims 1 to 5.
10. A computer-readable storage medium, wherein instructions in the readable storage medium, when executed by a processor of a device, enable the device to perform a method of processing a scan gun mount as recited in any of claims 1 to 5.
CN202010819587.4A 2020-08-14 2020-08-14 Scanning gun base and processing method, device and medium thereof Pending CN112003962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010819587.4A CN112003962A (en) 2020-08-14 2020-08-14 Scanning gun base and processing method, device and medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010819587.4A CN112003962A (en) 2020-08-14 2020-08-14 Scanning gun base and processing method, device and medium thereof

Publications (1)

Publication Number Publication Date
CN112003962A true CN112003962A (en) 2020-11-27

Family

ID=73473208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010819587.4A Pending CN112003962A (en) 2020-08-14 2020-08-14 Scanning gun base and processing method, device and medium thereof

Country Status (1)

Country Link
CN (1) CN112003962A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101344985A (en) * 2008-08-26 2009-01-14 刘正东 Wireless remote control method
CN103068006A (en) * 2012-12-28 2013-04-24 苏州动点电子科技有限公司 Control method controlling multi-point wireless connection in wireless scanner base
US20140061306A1 (en) * 2012-08-31 2014-03-06 Hand Held Products, Inc. Pairing method for wireless scanner via rfid
CN104063036A (en) * 2013-03-20 2014-09-24 西门子公司 Control method and system for scanning guns
CN204856517U (en) * 2015-06-08 2015-12-09 青岛蓝创高技术工程有限公司 Remote wireless yard transmission system that sweeps
CN109240971A (en) * 2018-09-26 2019-01-18 威创集团股份有限公司 Communication means, apparatus and system
CN109359073A (en) * 2018-09-18 2019-02-19 深圳吉迪思电子科技有限公司 A kind of communication between devices method and apparatus topological structure based on spi bus
CN109902053A (en) * 2017-12-07 2019-06-18 厦门雅迅网络股份有限公司 A kind of SPI communication method, terminal device and storage medium based on dual controller

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101344985A (en) * 2008-08-26 2009-01-14 刘正东 Wireless remote control method
US20140061306A1 (en) * 2012-08-31 2014-03-06 Hand Held Products, Inc. Pairing method for wireless scanner via rfid
CN103068006A (en) * 2012-12-28 2013-04-24 苏州动点电子科技有限公司 Control method controlling multi-point wireless connection in wireless scanner base
CN104063036A (en) * 2013-03-20 2014-09-24 西门子公司 Control method and system for scanning guns
CN204856517U (en) * 2015-06-08 2015-12-09 青岛蓝创高技术工程有限公司 Remote wireless yard transmission system that sweeps
CN109902053A (en) * 2017-12-07 2019-06-18 厦门雅迅网络股份有限公司 A kind of SPI communication method, terminal device and storage medium based on dual controller
CN109359073A (en) * 2018-09-18 2019-02-19 深圳吉迪思电子科技有限公司 A kind of communication between devices method and apparatus topological structure based on spi bus
CN109240971A (en) * 2018-09-26 2019-01-18 威创集团股份有限公司 Communication means, apparatus and system

Similar Documents

Publication Publication Date Title
CN108363737B (en) Data format conversion method, device and equipment
CN103401857B (en) The exchange method and system of 2 D code information, client, server
CN103593419A (en) Method, device, server and system for inquiring data
CN105430711B (en) Transmission method, device and the equipment of information
WO2023020253A1 (en) Data acquisition method and apparatus, electronic device, and storage medium
CN108650671B (en) Method, device, mobile terminal, storage medium and system for establishing Bluetooth connection
WO2023020187A1 (en) Data obtaining methods and apparatuses, electronic device and storage medium
CN103618780A (en) Method and device for realizing multiple virtual machine mounted externally-arranged components
CN113473435A (en) Bluetooth-based equipment connection method and device, electronic equipment and storage medium
CN104426816A (en) Virtual machine communication method and device
CN112003962A (en) Scanning gun base and processing method, device and medium thereof
CN114025014B (en) Asset detection method and device, electronic equipment and storage medium
CN115795544A (en) File security attribute storage method and related device
CN112995344B (en) Block chain all-in-one machine, and chain crossing method and device and storage medium of multiple nodes in block chain all-in-one machine
CN112003914A (en) Scanning gun processing method and device, scanning gun and medium
CN112543121B (en) Multi-device group control method, electronic device and computer readable storage medium
CN104407846B (en) Information processing method and device
CN113329096A (en) Message transmission method and device, electronic equipment and storage medium
CN106211269A (en) A kind of smart machine means of communication and device
CN112003992A (en) Transmission system and method based on scanning gun
CN112511441A (en) Message processing method and device
CN105188155A (en) Network connection method and terminal
CN104333583A (en) Document transmission method and device
CN104899537A (en) Data transmission method and electronic equipment
CN103648182A (en) Business data transmission method and device, processor and mobile terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201127