[go: up one dir, main page]

CN110956048B - Method and device for adapting scanning equipment - Google Patents

Method and device for adapting scanning equipment Download PDF

Info

Publication number
CN110956048B
CN110956048B CN201910968122.2A CN201910968122A CN110956048B CN 110956048 B CN110956048 B CN 110956048B CN 201910968122 A CN201910968122 A CN 201910968122A CN 110956048 B CN110956048 B CN 110956048B
Authority
CN
China
Prior art keywords
information
equipment
scanning
configuration information
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910968122.2A
Other languages
Chinese (zh)
Other versions
CN110956048A (en
Inventor
胡允阁
胡艳伟
徐帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Sunmi Technology Group Co Ltd
Original Assignee
Shanghai Sunmi Technology Group 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 Shanghai Sunmi Technology Group Co Ltd filed Critical Shanghai Sunmi Technology Group Co Ltd
Priority to CN201910968122.2A priority Critical patent/CN110956048B/en
Publication of CN110956048A publication Critical patent/CN110956048A/en
Application granted granted Critical
Publication of CN110956048B publication Critical patent/CN110956048B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/10861Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices sensing of data fields affixed to objects or articles, e.g. coded labels
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/0036Checkout procedures
    • G07G1/0045Checkout procedures with a code reader for reading of an identifying code of the article to be registered, e.g. barcode reader or radio-frequency identity [RFID] reader
    • G07G1/0081Checkout procedures with a code reader for reading of an identifying code of the article to be registered, e.g. barcode reader or radio-frequency identity [RFID] reader the reader being a portable scanner or data reader

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Stored Programmes (AREA)
  • Communication Control (AREA)

Abstract

本申请提供了一种适配扫描设备的方法,包括:检测扫描设备,获取所述扫描设备的设备信息;判断所述设备信息与预设信息是否匹配;当所述设备信息与预设信息不匹配时,发送适配请求,所述适配请求用于请求配置所述扫描设备;接收配置信息;根据所述配置信息配置所述扫描设备。在该方法中,由于执行设备能够在扫描设备上电后检测扫描设备的设备信息,并在设备信息与预设信息不匹配时执行匹配扫描设备的步骤,无需用户介入,因此,本申请提供的适配扫描设备的方法能够增强扫描设备的可操作性,降低用户体验更好的扫码效果的难度。

The present application provides a method for adapting a scanning device, including: detecting a scanning device, obtaining device information of the scanning device; determining whether the device information matches preset information; when the device information does not match the preset information, sending an adaptation request, the adaptation request is used to request configuration of the scanning device; receiving configuration information; configuring the scanning device according to the configuration information. In this method, since the execution device can detect the device information of the scanning device after the scanning device is powered on, and execute the step of matching the scanning device when the device information does not match the preset information, no user intervention is required. Therefore, the method for adapting a scanning device provided by the present application can enhance the operability of the scanning device and reduce the difficulty of users experiencing better scanning effects.

Description

Method and device for adapting scanning equipment
Technical Field
The present application relates to the field of computers, and in particular, to a method and apparatus for adapting a scanning device.
Background
Scanning devices are another major computer input device following mice and keyboards as a high-tech product of tightly combined optical, mechanical, electronic and software technologies. Since the advent of scanning devices, two-dimensional codes from the first document to recent years have been processed by scanning devices, and management, use, storage, and output of such information has been further realized.
A typical scanning device is a code scanner used in supermarkets, which can identify payment codes displayed by users and transmit payment information corresponding to the payment codes to associated devices, such as point of SALES TERMINAL (POS) devices, so as to complete a cash collection.
The POS machines in the current market are various in variety, and the code scanning gun matched with the POS machine has different performances. In some cases, for example, when the code scanning gun is replaced, the POS machine needs to configure a new code scanning gun, and the configuration of the new code scanning gun is currently completed mainly by scanning a bar code or a two-dimensional code containing configuration information. Therefore, how to enhance operability of the scanning device is a problem that needs to be solved at present.
Disclosure of Invention
The application provides a method and a device for adapting scanning equipment, which can enhance the operability of the scanning equipment.
In a first aspect, a method for adapting a scanning device is provided, which includes detecting a scanning device, obtaining device information of the scanning device, judging whether the device information is matched with preset information, sending an adaptation request for requesting to configure the scanning device when the device information is not matched with the preset information, receiving configuration information, and configuring the scanning device according to the configuration information.
In a second aspect, another method for adapting a scanning device is provided, which comprises the steps of receiving an adaptation request, determining configuration information corresponding to device information of the scanning device from at least one piece of configuration information according to the device information of the scanning device, and sending the configuration information, wherein the configuration information is used for configuring the scanning device.
In a third aspect, there is provided an apparatus adapted to a scanning device for performing the method of the first aspect described above. In particular, the apparatus comprises a functional module for performing the method in the first aspect.
In a fourth aspect, there is provided another apparatus adapted to a scanning device for performing the method of the second aspect described above. In particular, the apparatus comprises a functional module for performing the method in the second aspect.
In a fifth aspect, a terminal device is provided comprising a processor and a memory. The memory is used for storing a computer program, and the processor is used for calling and running the computer program stored in the memory to execute the method in the first aspect.
In a sixth aspect, a server is provided that includes a processor and a memory. The memory is for storing a computer program and the processor is for calling and running the computer program stored in the memory for performing the method of the second aspect described above.
In a seventh aspect, a chip is provided for performing the method of the first or second aspect. In particular, the chip comprises a processor for calling and running a computer program from a memory, such that a device on which the chip is mounted is used for performing the method of the first or second aspect described above.
In an eighth aspect, a computer-readable storage medium is provided for storing a computer program that causes a computer to execute the method in the first aspect or the second aspect.
In a ninth aspect, there is provided a computer program product comprising computer program instructions for causing a computer to perform the method of the first or second aspect described above.
In the scheme of the adaptive scanning device, the execution device can detect the device information of the scanning device after the scanning device is electrified, and execute the step of matching the scanning device when the device information is not matched with the preset information, so that user intervention is not needed.
Drawings
FIG. 1 is a scanning system suitable for use with the present application;
FIG. 2 is a schematic diagram of a method of adapting a scanning device provided by the present application;
FIG. 3 is a schematic diagram of another method of adapting a scanning device provided by the present application;
FIG. 4 is a schematic diagram of an apparatus for adapting a scanning device provided by the present application;
FIG. 5 is a schematic view of another apparatus for adapting a scanning device provided by the present application;
fig. 6 is a schematic diagram of an apparatus for adapting a scanning apparatus according to the present application.
Detailed Description
The technical scheme provided by the application will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a scanning system suitable for use with the present application. The scanning system includes cloud 110, POS 120, and code scanner 130.
The cloud 110 is, for example, a server, on which a software platform employing a virtualization technology is installed, and integrates multiple functions of searching, downloading, using, managing, backing up, and the like. Through the platform, various common software can be packaged in an independent virtualized environment, so that the application software and an operating system are decoupled, and the purpose of using the software in a green way is achieved.
The POS machine 120 can accelerate the cashing speed and accuracy, and the basic principle is that commodity data (unit price, department, discount.) is created in the computer file of the POS machine, and after the bar code on the commodity is read in by the optical reading device (for example, the code scanner 130), the commodity data can be directly displayed in the POS machine.
The code scanning gun 130 can convert the two-dimensional code or the bar code on the commodity into information which can be identified by a computer according to a preset decoding mode, so that management, use, storage and output of the information are realized, and for example, the information can be transmitted to the POS machine 120 so as to be convenient for the POS machine 120 to process.
POS 120 may communicate with cloud 110 or with code scanner 130, as indicated by the double-headed arrow in FIG. 1. The communication method may be wireless communication or wired communication. For example, POS 120 and cloud 110 may communicate via optical fiber or cellular network, POS 120 and gun 130 may communicate via Bluetooth or universal serial bus (universal serial bus, USB). In addition, the code scanner 130 may also communicate directly with the cloud 110 (not shown in FIG. 1). The application does not limit the communication mode among the devices in the scanning system.
The scanning system shown in fig. 1 is only one example of a scanning system suitable for the present application, and the scanning system suitable for the present application is not limited thereto. For example, POS 120 may be a cell phone or tablet computer, and code scanner 130 may be a scanner with more functions.
Typically, the user uses a gun 130 that matches the function set by the manufacturer of POS 120. In some cases, however, the two devices may be mismatched.
For example, when a user changes the code scanner, the code scanner is usually faster in the code scanner speed and the transmission speed, and the data receiving and processing speed of the POS machine 120 cannot keep up with the transmission speed of the new code scanner, so that the code scanner may have a problem of error in code scanning if the POS machine 120 or the new code scanner is not set.
For another example, if POS machine 120 is not upgraded when POS machine 120 has new upgradeable firmware, POS machine 120 and code scanner 130 may not be used better.
Two examples of the mismatch between the gun 130 and the POS 120 are described above. For the user, whether the POS machine 120 or a new code scanner or an upgrade firmware is set, a certain expertise is required, and in addition, some two-dimensional codes containing setting information or upgrade information may need to be scanned, so that difficulty of better code scanning effect of user experience is increased.
The application provides a method for adapting scanning equipment, which can enhance the operability of the scanning equipment and reduce the difficulty of better code scanning effect of user experience.
As shown in fig. 2, the method 200 includes:
s210, detecting scanning equipment and acquiring equipment information of the scanning equipment.
The scanning device is, for example, a scanning gun 130. The implementation device of the method 200 may be the POS machine 120, and after the scan gun 130 is connected to the POS machine 120, for example, after the USB plug of the scan gun 130 is plugged into the USB interface of the POS machine 120, the POS machine 120 detects the scan gun 130 and reads the device information of the scan gun 130.
The device information may be hardware information such as medium access control (MEDIA ACCESS control, MAC) layer information of the scan gun 130, or software information such as firmware version information of the scan gun 130. The application does not limit the specific content of the equipment information.
S220, judging whether the equipment information is matched with preset information.
The preset information is information pre-stored in the execution device of the method 200, and may be information of the same type as the device information or information of a different type from the device information.
For example, the device information and the preset information are both MAC layer information, and when the device information is the same as the preset information, the executing device may determine that the device information matches the preset information, and when the device information is different from the preset information, the executing device may determine that the device information does not match the preset information.
For example, the device information is firmware version information, the preset information is a hash value, after the execution device obtains the firmware version information of the scanning device, hash operation is performed on the firmware version information to obtain a hash value, if the hash value is the same as the preset information, the execution device can determine that the device information is matched with the preset information, and if the hash value is different from the preset information, the execution device can determine that the device information is not matched with the preset information.
If the device information is not matched with the preset information, the execution device may not send an adaptation request, and the POS machine 120 may perform the scanning operation through the code scanner 130, and if the device information is not matched with the preset information, the execution device may perform the following steps.
And S230, when the equipment information is not matched with preset information, sending an adaptation request, wherein the adaptation request is used for requesting to configure the scanning equipment.
The execution device may send an adaptation request to the cloud 110, and request the cloud 110 to configure the scanning device, where the execution device may directly send the adaptation request to the cloud 110, or may forward the adaptation request through the code scanning device.
The cloud 110 may send a query request to the scanning device or the execution device to query the state of the scanning device, e.g., obtain MAC layer information and/or firmware version information of the scanning device. Subsequently, the cloud 110 may send configuration information to the executing device, which may include at least one of scan and transmission parameters of the scanning device, receive and processing parameters of the associated device of the scanning device.
As an alternative embodiment, the adaptation request includes device information of the scanning device and/or device information of an associated device of the scanning device, so that the cloud 110 does not need to send the query request again, thereby reducing signaling overhead of the execution device and the cloud 110, and improving a rate of adapting the scanning device.
The association device of the scanning device may be a POS machine 120, where the POS machine 120 sets based on the receiving parameter and the processing parameter in the configuration information, so as to improve the matching degree between the POS machine 120 and the scanning device. The association device of the scanning device may also be another device capable of communicating with the scanning device, which is not limited by the present application.
S240, receiving configuration information.
S250, configuring the scanning equipment according to the configuration information.
Taking the execution device as the POS machine 120 as an example, after the POS machine 120 obtains the configuration information, if the configuration information includes the receiving parameter and the processing parameter of the POS machine 120, the POS machine 120 may configure the local parameter according to the receiving parameter and the processing parameter, and if the configuration information includes the scanning parameter and the transmission parameter of the code scanner 130, the POS machine 120 may send the scanning parameter and the transmission parameter to the code scanner 130, so that the code scanner 130 configures the local parameter. The scheme does not need to communicate with the cloud 110 by the scanning device, and reduces the cost of the scanning device.
In the scanning system to which the method 200 is applied, since the execution device can detect the device information of the scanning device after the scanning device is powered on, and execute the step of matching the scanning device when the device information is not matched with the preset information, no user intervention is required, the method 200 can enhance the operability of the scanning device, and reduce the difficulty of better code scanning effect experienced by the user.
The method for adapting a scanning device provided by the present application is described in detail above from the point of view of a terminal device, and processing steps of a server (i.e., cloud) in the method for adapting a scanning device provided by the present application will be described below.
As shown in fig. 3, the method 300 includes:
S310, receiving an adaptation request, wherein the adaptation request is used for requesting to configure the scanning device.
The execution device of the method 300 may be the cloud 110, or may be a chip in the cloud 110. Cloud 110 may receive an adaptation request from POS machine 120 or code scanner 130, which has the same meaning as the adaptation request in method 200, and is not described in detail herein for brevity.
After the cloud 110 obtains the adaptation request, the following steps may be performed.
S320, determining configuration information corresponding to the equipment information of the scanning equipment from at least one piece of configuration information according to the equipment information of the scanning equipment.
For example, the cloud 110 may search a locally stored database for configuration information corresponding to the device information of the code scanner 130, where the database is a configuration information set including at least one model and at least one configuration information, the at least one model corresponds to the at least one configuration information one by one, the device information is a model of the code scanner 130, the cloud 110 determines target configuration information from the at least one configuration information in the database according to the model of the code scanner 130, and the target configuration information is configuration information with a model associated with the at least one configuration information being the same as the model of the code scanner 130.
Cloud 110 may also determine the configuration information of POS machine 120 from a database containing the configuration information of the associated device in a similar manner.
The database may be generated by a tester through test verification, for example, the tester determines the configuration parameters of the code scanner 130 and the configuration parameters of the POS machine 120 based on the code scanner 130 code scanner rate, the data transmission rate between the code scanner 130 and the POS machine 120, and the processing rate of the POS machine 120, and stores the two configuration parameters and the device information (e.g., the device model) of the code scanner 130 and the POS machine 120 in the database, where the four information corresponds one to form a set of information, and after the cloud 110 receives a request message containing the device information of the code scanner 130 and/or the POS machine 120, the configuration parameters of the code scanner 130 and/or the POS machine 120, that is, the configuration information, may be determined uniquely.
After the cloud 110 determines the configuration information, the following steps may be performed.
S330, sending configuration information, wherein the configuration information is used for configuring the scanning equipment.
The specific process of configuring the scanning device may refer to the related description in the method 200, and will not be described herein.
In the scanning system applying the method 300, the execution device of the method 300 can select appropriate configuration information from the database after acquiring the adaptation request without user intervention, so that the method 300 can enhance the operability of the scanning device and reduce the difficulty of better code scanning effect experienced by the user.
Examples of the method for adapting a scanning device provided by the present application are described in detail above. It will be appreciated that the means adapted to the scanning device comprise, in order to achieve the above-described functions, corresponding hardware structures and/or software modules performing the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The present application may divide the functional units of the apparatus adapted to the scanning device according to the above-described method example, for example, each function may be divided into each functional unit, or two or more functions may be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that the division of the units in the present application is illustrative, and is merely a logic function division, and other division manners may be implemented in practice.
Fig. 4 is a schematic structural diagram of an apparatus for adapting to a scanning device according to the present application. The apparatus 400 comprises a receiving unit 410, a processing unit 420 and a transmitting unit 430, the processing unit 420 being capable of controlling the transmitting unit 430 to perform the transmitting step, the processing unit 420 being capable of controlling the receiving unit 410 to perform the receiving step.
The processing unit 420 is configured to detect a scanning device and obtain device information of the scanning device;
The processing unit 420 is further configured to determine whether the device information matches with preset information;
the sending unit 430 is configured to send an adaptation request when the device information does not match the preset information, where the adaptation request is used to request configuration of the scanning device;
the receiving unit 410 is configured to receive configuration information;
the processing unit 420 is further configured to configure the scanning device according to the configuration information.
Optionally, the processing unit 420 is further configured to determine not to send the adaptation request when the device information matches preset information.
Optionally, the adaptation request includes device information of the scanning device.
Optionally, the adaptation request further comprises device information of an associated device of the scanning device.
Optionally, the processing unit 420 is specifically configured to send the configuration information to the scanning device through the sending unit.
Optionally, the configuration information comprises at least one of a scanning parameter and a transmission parameter of the scanning device, a receiving parameter and a processing parameter of an associated device of the scanning device.
The specific process of the method for adapting the scanning device by the apparatus 400 and the resulting advantageous effects can be referred to the relevant description in the method embodiment, and will not be described herein.
Fig. 5 is a schematic structural diagram of another apparatus for adapting a scanning device according to the present application. The apparatus 500 comprises a receiving unit 510, a processing unit 520 and a transmitting unit 530, the processing unit 520 being capable of controlling the transmitting unit 530 to perform the transmitting step, the processing unit 520 being capable of controlling the receiving unit 510 to perform the receiving step.
The receiving unit 510 is configured to receive an adaptation request, where the adaptation request is used to request configuration of a scanning device;
the processing unit 520 is configured to determine configuration information corresponding to the device information of the scanning device from at least one configuration information according to the device information of the scanning device;
the transmitting unit 530 is configured to transmit configuration information for configuring the scanning device.
Optionally, the adaptation request further includes device information of an associated device of the scanning device, and the processing unit 520 is further configured to determine, from at least one configuration information, configuration information corresponding to the device information of the associated device according to the device information of the associated device.
Optionally, the configuration information comprises at least one of a scanning parameter and a transmission parameter of the scanning device, a receiving parameter and a processing parameter of an associated device of the scanning device.
The specific process of the method for adapting the scanning device by the apparatus 500 and the resulting advantageous effects can be referred to the relevant description in the method embodiment, and will not be described herein.
Fig. 6 shows a schematic structural diagram of an apparatus for adapting a scanning apparatus according to the present application. The dashed line in fig. 6 indicates that the unit or the module is optional. The apparatus 600 may be used to implement the methods described in the method embodiments above. The device 600 may be a terminal device or a server or a chip.
The device 600 includes one or more processors 601, which one or more processors 601 may support the device 600 to implement the method in the corresponding method embodiments of fig. 2 or 3. The processor 601 may be a general purpose processor or a special purpose processor. For example, the processor 601 may be a CPU. The CPU may be used to control the device 600, execute software programs, and process data for the software programs. The device 600 may also include a communication unit 605 to enable input (reception) and output (transmission) of signals.
For example, the device 600 may be a chip, the communication unit 605 may be input and/or output circuitry of the chip, or the communication unit 605 may be a communication interface of the chip, which may be an integral part of a terminal device or a server or other electronic device.
For another example, the device 600 may be a terminal device or a server, the communication unit 605 may be a transceiver of the terminal device or the server, or the communication unit 605 may be a transceiver circuit of the terminal device or the server.
The device 600 may include one or more memories 602 having a program 604 stored thereon, the program 604 being executable by the processor 601 to generate instructions 603 such that the processor 601 performs the methods described in the method embodiments above according to the instructions 603. Optionally, the memory 602 may also have data stored therein. Alternatively, the processor 601 may also read data stored in the memory 602, which may be stored at the same memory address as the program 604, or which may be stored at a different memory address than the program 604.
The processor 601 and the memory 602 may be provided separately or may be integrated together, for example, on a single board of a server or a System On Chip (SOC) of a terminal device.
The device 600 may also include an antenna 606. The communication unit 605 is used to implement the transceiving function of the device 600 through the antenna 606.
The specific way in which the processor 601 performs the method of processing an adapted scanning device may be found in the relevant description of the method embodiments.
It should be understood that the steps of the above-described method embodiments may be accomplished by logic circuitry in the form of hardware or instructions in the form of software in the processor 601. The processor 601 may be a CPU, digital signal processor (DIGITAL SIGNAL processor), application SPECIFIC INTEGRATED Circuit (ASIC), field programmable gate array (field programmable GATE ARRAY, FPGA), or other programmable logic device such as discrete gates, transistor logic, or discrete hardware components.
The application also provides a computer program product which, when executed by the processor 601, implements the method according to any of the method embodiments of the application.
The computer program product may be stored in the memory 602, for example, the program 604, and the program 604 is finally converted into an executable object file capable of being executed by the processor 601 through preprocessing, compiling, assembling, and linking.
The application also provides a computer readable storage medium having stored thereon a computer program which when executed by a computer implements the method according to any of the method embodiments of the application. The computer program may be a high-level language program or an executable object program.
The computer-readable storage medium is, for example, memory 602. The memory 602 may be volatile memory or nonvolatile memory, or the memory 602 may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an erasable programmable ROM (erasable PROM), an electrically erasable programmable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (double DATA RATE SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCHLINK DRAM, SLDRAM), and direct memory bus random access memory (direct rambus RAM, DR RAM).
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working processes and technical effects of the apparatus and device described above may refer to corresponding processes and technical effects in the foregoing method embodiments, which are not described in detail herein.
In the several embodiments provided by the present application, the disclosed systems, devices, and methods may be implemented in other manners. For example, some features of the method embodiments described above may be omitted, or not performed. The above-described apparatus embodiments are merely illustrative, the division of units is merely a logical function division, and there may be additional divisions in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the elements or the coupling between the elements may be direct or indirect, including electrical, mechanical, or other forms of connection.
It should be understood that, in various embodiments of the present application, the size of the sequence number of each process does not mean that the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In addition, the term "and/or" herein is merely an association relation describing the association object, and means that three kinds of relations may exist, for example, a and/or B, and that three kinds of cases where a exists alone, while a and B exist alone, exist alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
In summary, the foregoing description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (22)

1. A method of adapting a scanning device, comprising:
Detecting a scanning device to acquire device information of the scanning device, wherein after the scanning device is connected with an associated device, the associated device detects the scanning device and reads the device information of the scanning device, the device information is hardware information or software information, the hardware information at least comprises medium access control layer information, and the software information at least comprises firmware version information;
Judging whether the equipment information is matched with preset information or not, wherein the preset information is information pre-stored in the associated equipment;
When the preset information and the equipment information are both the medium access control layer information, the associated equipment determines that the equipment information is matched with the preset information if the preset information and the equipment information are the same;
When the preset information is a hash value and the equipment information is the firmware version information, the associated equipment acquires the firmware version information of the scanning equipment and then carries out hash operation on the firmware version information to obtain a hash value; if the hash value is the same as the preset information, the associated equipment determines that the equipment information is matched with the preset information; if the hash value is different from the preset information, the associated equipment determines that the equipment information is not matched with the preset information;
When the equipment information is not matched with preset information, sending an adaptation request, wherein the adaptation request is used for requesting to configure the scanning equipment; the cloud sends a query request to the scanning equipment or the associated equipment, and searches configuration information corresponding to the scanning equipment from a locally stored database, wherein the database comprises a configuration information set of the scanning equipment and comprises at least one model and at least one configuration information, and the at least one model and the at least one configuration information are in one-to-one correspondence;
Receiving configuration information;
The association device configures the scanning device according to the configuration information.
2. The method as recited in claim 1, further comprising:
And when the equipment information is matched with preset information, determining that the adaptation request is not transmitted.
3. The method according to claim 1 or 2, wherein the adaptation request comprises device information of the scanning device.
4. The method of claim 1, wherein the adaptation request further comprises device information of an associated device of the scanning device.
5. The method of claim 1, wherein said configuring the scanning device according to the configuration information comprises:
And sending the configuration information to the scanning equipment.
6. The method of claim 1, wherein the configuration information comprises at least one of the following parameters:
the scanning parameters and transmission parameters of the scanning device, and the receiving parameters and processing parameters of the associated device of the scanning device.
7. A method of adapting a scanning device, comprising:
The cloud receives an adaptation request, wherein the adaptation request is used for requesting to configure the scanning equipment, the adaptation request comprises equipment information of the scanning equipment and/or equipment information of associated equipment of the scanning equipment, the equipment information is hardware information or software information, the hardware information at least comprises medium access control layer information, and the software information at least comprises firmware version information;
The cloud searches configuration information corresponding to the scanning equipment from a locally stored database, wherein the database comprises a configuration information set of the scanning equipment, the database comprises at least one model and at least one configuration information, the at least one model corresponds to the at least one configuration information one by one, the equipment information further comprises the model of the scanning equipment, the cloud determines target configuration information from the at least one configuration information in the database according to the model of the scanning equipment, and the target configuration information is the configuration information of which the model is related to the at least one configuration information and the model of the scanning equipment is the same;
and sending configuration information, wherein the configuration information is used for configuring the scanning equipment.
8. The method of claim 7, wherein the adaptation request further comprises device information of an associated device of the scanning device, the method further comprising:
and determining configuration information corresponding to the equipment information of the associated equipment from at least one piece of configuration information according to the equipment information of the associated equipment.
9. The method according to claim 7 or 8, wherein the configuration information comprises at least one of the following parameters:
the scanning parameters and transmission parameters of the scanning device, and the receiving parameters and processing parameters of the associated device of the scanning device.
10. An apparatus for adapting a scanning device, characterized by comprising a processing unit, a transmitting unit and a receiving unit,
The processing unit is used for detecting scanning equipment and acquiring equipment information of the scanning equipment;
The processing unit is also used for judging whether the equipment information is matched with preset information or not;
The sending unit is used for sending an adaptation request when the equipment information is not matched with preset information, wherein the adaptation request is used for requesting to configure the scanning equipment;
the receiving unit is used for receiving configuration information;
the processing unit is also used for configuring the scanning equipment according to the configuration information;
after the scanning equipment is connected with the associated equipment, the associated equipment detects the scanning equipment and reads equipment information of the scanning equipment, wherein the equipment information is hardware information or software information, the hardware information at least comprises medium access control layer information, and the software information at least comprises firmware version information;
The preset information is information pre-stored in the associated equipment;
When the preset information and the equipment information are both the medium access control layer information, the associated equipment determines that the equipment information is matched with the preset information if the preset information and the equipment information are the same;
When the preset information is a hash value and the equipment information is the firmware version information, the associated equipment acquires the firmware version information of the scanning equipment and then carries out hash operation on the firmware version information to obtain a hash value; if the hash value is the same as the preset information, the associated equipment determines that the equipment information is matched with the preset information; if the hash value is different from the preset information, the associated equipment determines that the equipment information is not matched with the preset information;
The cloud sends a query request to the scanning device or the associated device, and searches configuration information corresponding to the scanning device from a locally stored database, wherein the database is a configuration information set containing the scanning device and comprises at least one model and at least one configuration information, and the at least one model and the at least one configuration information are in one-to-one correspondence.
11. The apparatus of claim 10, wherein the processing unit is further configured to:
And when the equipment information is matched with preset information, determining that the adaptation request is not transmitted.
12. The apparatus according to claim 10 or 11, wherein the adaptation request comprises device information of the scanning device.
13. The apparatus of claim 10, wherein the adaptation request further comprises device information of an associated device of the scanning device.
14. The apparatus according to claim 10, wherein the processing unit is specifically configured to:
and transmitting the configuration information to the scanning equipment through the transmitting unit.
15. The apparatus of claim 10, wherein the configuration information comprises at least one of the following parameters:
the scanning parameters and transmission parameters of the scanning device, and the receiving parameters and processing parameters of the associated device of the scanning device.
16. An apparatus for adapting a scanning device, characterized by comprising a processing unit, a receiving unit and a transmitting unit,
The receiving unit is used for receiving an adaptation request, wherein the adaptation request is used for requesting to configure a scanning device, and after the scanning device is connected with an associated device, the associated device detects the scanning device and reads device information of the scanning device, the device information is hardware information or software information, the hardware information at least comprises medium access control layer information, and the software information at least comprises firmware version information;
The processing unit is used for determining configuration information corresponding to the equipment information of the scanning equipment from at least one piece of configuration information according to the equipment information of the scanning equipment;
Judging whether the equipment information is matched with preset information or not, wherein the preset information is information pre-stored in the associated equipment;
When the preset information and the equipment information are both the medium access control layer information, the associated equipment determines that the equipment information is matched with the preset information if the preset information and the equipment information are the same;
When the preset information is a hash value and the equipment information is the firmware version information, the associated equipment acquires the firmware version information of the scanning equipment and then carries out hash operation on the firmware version information to obtain a hash value; if the hash value is the same as the preset information, the associated equipment determines that the equipment information is matched with the preset information; if the hash value is different from the preset information, the associated equipment determines that the equipment information is not matched with the preset information;
The sending unit is used for sending configuration information, wherein the associated equipment directly or indirectly forwards an adaptation request to cloud through the scanning equipment to request the cloud to configure the scanning equipment, the cloud sends a query request to the scanning equipment or the associated equipment to search configuration information corresponding to the scanning equipment from a locally stored database, the database is a configuration information set containing the scanning equipment, the database comprises at least one model and at least one configuration information, the at least one model corresponds to the at least one configuration information one by one, and the configuration information is used for configuring the scanning equipment.
17. The apparatus of claim 16, wherein the adaptation request further comprises device information of an associated device of the scanning device, the processing unit further to:
and determining configuration information corresponding to the equipment information of the associated equipment from at least one piece of configuration information according to the equipment information of the associated equipment.
18. The apparatus according to claim 16 or 17, wherein the configuration information comprises at least one of the following parameters:
the scanning parameters and transmission parameters of the scanning device, and the receiving parameters and processing parameters of the associated device of the scanning device.
19. A terminal device comprising a processor and a memory for storing a computer program, the processor being adapted to invoke and run the computer program stored in the memory for performing the method according to any of claims 1 to 6.
20. A server comprising a processor and a memory for storing a computer program, the processor being adapted to invoke and run the computer program stored in the memory for performing the method according to any of claims 7 to 9.
21. A chip comprising a processor for calling and running a computer program from a memory, causing a device on which the chip is mounted to perform the method of any one of claims 1 to 6 or the method of any one of claims 7 to 9.
22. A computer-readable storage medium storing a computer program for causing a computer to execute the method according to any one of claims 1 to 6 or the method according to any one of claims 7 to 9.
CN201910968122.2A 2019-10-12 2019-10-12 Method and device for adapting scanning equipment Active CN110956048B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910968122.2A CN110956048B (en) 2019-10-12 2019-10-12 Method and device for adapting scanning equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910968122.2A CN110956048B (en) 2019-10-12 2019-10-12 Method and device for adapting scanning equipment

Publications (2)

Publication Number Publication Date
CN110956048A CN110956048A (en) 2020-04-03
CN110956048B true CN110956048B (en) 2025-04-08

Family

ID=69975655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910968122.2A Active CN110956048B (en) 2019-10-12 2019-10-12 Method and device for adapting scanning equipment

Country Status (1)

Country Link
CN (1) CN110956048B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114881062A (en) * 2022-04-21 2022-08-09 深圳市普渡科技有限公司 Code scanning identification method and device, computer equipment and storage medium
CN117784961A (en) * 2022-09-27 2024-03-29 广州视源电子科技股份有限公司 Pairing method of capacitive pen, capacitive pen, touch screen device, electronic device and media
CN115766958B (en) * 2022-12-06 2025-06-27 珠海奔图电子有限公司 Control parameter matching method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107045616A (en) * 2017-01-09 2017-08-15 东软集团股份有限公司 The scan method and scanning means of scanning engine

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7913911B2 (en) * 2007-03-20 2011-03-29 Van Etten David Method for updating indicia readers
US10453047B2 (en) * 2013-01-13 2019-10-22 Retail Technologies Corporation Mobile scanner gun system with mobile tablet having a mobile POS and enterprise resource planning application for POS customer order fulfillment and in store inventory management for retail establishment
US20150039409A1 (en) * 2013-07-13 2015-02-05 Flashback Survey, Inc. Methods And Systems For Providing Scan Triggered Application Services
US9778928B1 (en) * 2016-03-30 2017-10-03 Invensense, Inc. Compressed firmware update
CN108304899A (en) * 2018-01-16 2018-07-20 阿里巴巴集团控股有限公司 Information processing method, device and equipment based on scanning DOI
CN110020698B (en) * 2018-06-22 2022-02-25 长虹美菱股份有限公司 Intelligent software matching system and implementation method thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107045616A (en) * 2017-01-09 2017-08-15 东软集团股份有限公司 The scan method and scanning means of scanning engine

Also Published As

Publication number Publication date
CN110956048A (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN110956048B (en) Method and device for adapting scanning equipment
CN111694589B (en) Upgrade package generation method, device, server and computer readable storage medium
US9465599B2 (en) Method, device and system for installing terminal software
CN110875850A (en) Firmware upgrading method and system, readable storage medium and terminal equipment
CN115208951B (en) Request processing method, request processing device, electronic equipment and computer readable storage medium
US11063828B2 (en) Detecting software misconfiguration at a remote machine
CN111683066A (en) Heterogeneous system integration method and device, computer equipment and storage medium
US9215271B2 (en) Method and apparatus for executing application of mobile device
CN111931102A (en) Method, device and system for constructing page
KR20210029621A (en) Apparatus and method for improving runtime performance after application update in electronic device
US10078532B2 (en) Resource management method and device for terminal system among multiple operating systems
CN113254035A (en) Driver installation method, computing device and storage medium
CN107341106B (en) Application compatibility detection method, development terminal and storage medium
CN103885775A (en) Method and device for obtaining driver file
CN111070662A (en) 3D printing method, equipment and storage medium
CN111949314A (en) Method, device, server and storage medium for generating application installation package
CN110109850B (en) Scanning equipment searching method and device based on SANE protocol framework
CN112486497A (en) Compiling configuration file generation method and device, electronic equipment and storage medium
CN110442636B (en) Data reading and writing method and device and data reading and writing equipment
KR20020009741A (en) Apparatus for etalishing operating platform of mobile phone and wireless up-grading method of application thereby
WO2018121652A1 (en) Method and device for connecting wireless access point through application in user equipment
CN117811921A (en) Component parameter configuration method, server and terminal equipment
CN109145598A (en) Method for detecting virus, device, terminal and the storage medium of script file
CN116633771A (en) Method, device, and medium for gray scale publishing
CN111198614A (en) Method and apparatus for processing input content of human interface device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant