Method and device for adapting scanning equipment
By detecting the device information of the scanning device and sending adaptation requests, the scanning device is automatically configured, which solves the problems of complex configuration methods and poor user experience, and improves the operability of the scanning device.
Patent Information
- Application Number
- CN201910968122.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-12
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2039-10-12
AI Technical Summary
The existing code scanning gun configuration method is complex, requiring the operator to have professional knowledge and poor user experience.
By detecting the device information of the scanning device, it is determined whether it matches the preset information. If it does not match, an adaptation request will be sent, and configuration information will be received and applied to configure the scanning device.
The configuration of the code scanning gun can be completed without user intervention, which improves the operability of the scanning device and reduces the difficulty of a better scan effect for the user experience.
Smart Images

Figure CN110956048B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a method and apparatus for adapting a scanning device. Background Art
[0002] As a high-tech product that closely combines optics, mechanics, electronics and software, scanning equipment is another major computer input device after the mouse and keyboard. Since the birth of scanning equipment, everything from the initial manuscript data to the recent QR code can be processed by scanning equipment, thereby realizing the management, use, storage and output of these information.
[0003] A typical scanning device is a barcode scanner used in supermarkets. The barcode scanner can recognize the payment code presented by the user and transmit the payment information corresponding to the payment code to an associated device, such as a point of sales terminal (POS), thereby completing a payment collection.
[0004] There are many types of POS machines on the market, and the barcode scanners used with POS machines also have different performances. In some cases, for example, when replacing a barcode scanner, the POS machine needs to be configured with a new barcode scanner. Currently, the configuration of the new barcode scanner is mainly completed by scanning a barcode or QR code containing configuration information. This method is not only complicated, but also requires the operator to have certain professional knowledge and has poor operability. Therefore, how to enhance the operability of scanning equipment is a problem that needs to be solved at present. Summary of the invention
[0005] The present application provides a method and apparatus for adapting a scanning device, which can enhance the operability of the scanning device.
[0006] In a first aspect, a method for adapting a scanning device is provided, comprising: detecting a scanning device and 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, wherein the adaptation request is used to request configuration of the scanning device; receiving configuration information; and configuring the scanning device according to the configuration information.
[0007] In a second aspect, another method for adapting a scanning device is provided, comprising: receiving an adaptation request, the adaptation request being used to request configuration of the scanning device; determining configuration information corresponding to the device information of the scanning device from at least one configuration information based on the device information of the scanning device; and sending configuration information, the configuration information being used to configure the scanning device.
[0008] In a third aspect, a device for adapting a scanning device is provided, which is used to execute the method in the first aspect. Specifically, the device includes a functional module for executing the method in the first aspect.
[0009] In a fourth aspect, another apparatus for adapting a scanning device is provided, which is used to execute the method in the second aspect. Specifically, the apparatus includes a functional module for executing the method in the second aspect.
[0010] In a fifth aspect, a terminal device is provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method in the first aspect.
[0011] In a sixth aspect, a server is provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method in the second aspect.
[0012] In a seventh aspect, a chip is provided for executing the method in the first aspect or the second aspect. Specifically, the chip includes: a processor for calling and running a computer program from a memory, so that a device equipped with the chip is used to execute the method in the first aspect or the second aspect.
[0013] In an eighth aspect, a computer-readable storage medium is provided for storing a computer program, wherein the computer program enables a computer to execute the method in the first aspect or the second aspect.
[0014] In a ninth aspect, a computer program product is provided, comprising computer program instructions, which enable a computer to execute the method in the first aspect or the second aspect.
[0015] In the scheme for adapting the scanning device provided in the present application, since the execution device can detect the device information of the scanning device after the scanning device is powered on, and execute the steps of matching the scanning device when the device information does not match the preset information, no user intervention is required. Therefore, the scheme for adapting the scanning device provided in the present application can enhance the operability of the scanning device and reduce the difficulty for users to experience better scanning effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a scanning system suitable for the present application;
[0017] Figure 2 is a schematic diagram of a method for adapting a scanning device provided by the present application;
[0018] Figure 3 is a schematic diagram of another method for adapting a scanning device provided by the present application;
[0019] Figure 4 is a schematic diagram of a device for adapting a scanning device provided by the present application;
[0020] Figure 5 is a schematic diagram of another device for adapting a scanning device provided by the present application;
[0021] Figure 6 It is a schematic diagram of a device adapted to a scanning device provided in the present application. DETAILED DESCRIPTION
[0022] Below, the technical solution provided by this application will be described in detail with reference to the accompanying drawings.
[0023] Figure 1 A scanning system suitable for the present application includes a cloud 110 , a POS machine 120 and a barcode scanner 130 .
[0024] The cloud 110 is, for example, a server, on which a software platform using virtualization technology is installed, which integrates multiple functions such as search, download, use, management, and backup. Through this platform, various commonly used software can be encapsulated in an independent virtualized environment, thereby decoupling the application software from the operating system and achieving the purpose of green software use.
[0025] The POS machine 120 can speed up the checkout speed and accuracy. The basic principle is: first create product information (unit price, department, discount...) in the computer file of the POS machine, and after the barcode on the product is read by an optical reading device (for example, a barcode scanner 130), the product information can be directly displayed in the POS machine.
[0026] The barcode scanner 130 can convert the QR code or barcode on the product into information that can be recognized by the computer according to a preset decoding method, and then realize the management, use, storage and output of this information. For example, this information can be transmitted to the POS machine 120 for processing by the POS machine 120.
[0027] The POS machine 120 can communicate with the cloud 110, and can also communicate with the barcode scanner 130, such as Figure 1 As shown by the double-headed arrows in the figure. The above communication method can be wireless communication or wired communication. For example, the POS machine 120 and the cloud 110 can communicate via optical fiber or via a cellular network; the POS machine 120 and the barcode scanner 130 can communicate via Bluetooth or via a universal serial bus (USB). In addition, the barcode scanner 130 can also communicate directly with the cloud 110 ( Figure 1 (not shown). This application does not limit the communication method between the various devices in the above scanning system.
[0028] Figure 1The scanning system shown is only an example of a scanning system applicable to the present application, and the scanning system applicable to the present application is not limited thereto. For example, the POS machine 120 can also be a mobile phone or a tablet computer, and the barcode scanning gun 130 can also be a scanner with more functions.
[0029] Normally, the barcode scanner 130 and the POS machine 120 used by the user are two devices with matching functions set by the manufacturer. However, in some cases, the two devices may not match.
[0030] For example, when a user replaces a barcode scanner, the scanning rate and transmission rate of the new barcode scanner are usually faster, and the rate at which the POS machine 120 receives and processes data cannot keep up with the transmission rate of the new barcode scanner. If the POS machine 120 or the new barcode scanner is not set up, scanning errors and other problems may occur.
[0031] For another example, when the POS machine 120 has new upgradeable firmware, if the POS machine 120 is not upgraded, the POS machine 120 and the barcode scanner 130 may not achieve better usage effects.
[0032] The above two situations are two examples of mismatch between the barcode scanner 130 and the POS machine 120. For the user, whether it is to set up the POS machine 120 or a new barcode scanner, or to upgrade the firmware, certain professional knowledge is required. In addition, some QR codes containing setting information or upgrade information may need to be scanned, which increases the difficulty for the user to experience a better scanning effect.
[0033] The present application provides a method for adapting a scanning device, which can enhance the operability of the scanning device and reduce the difficulty of providing a better scanning effect for the user experience.
[0034] like Figure 2 As shown, the method 200 includes:
[0035] S210: Detect a scanning device and obtain device information of the scanning device.
[0036] The scanning device is, for example, a scanner 130. The execution device of method 200 may be a POS machine 120. After the scanner 130 establishes a connection with the POS machine 120, for example, when the USB plug of the scanner 130 is inserted into the USB interface of the POS machine 120, the POS machine 120 detects the scanner 130 and reads the device information of the scanner 130.
[0037] The device information may be hardware information, such as media access control (MAC) layer information of the scanner 130; the device information may also be software information, such as firmware version information of the scanner 130. The present application does not limit the specific content of the device information.
[0038] S220, determining whether the device information matches preset information.
[0039] The preset information is information pre-stored in the execution device of method 200, and may be information of the same type as the device information or information of a different type from the device information.
[0040] For example, both the device information and the preset information are MAC layer information. When the device information is the same as the preset information, the execution device can determine that the device information matches the preset information; when the device information is different from the preset information, the execution device can determine that the device information does not match the preset information.
[0041] For another example, the device information is firmware version information, and the preset information is a hash value. After the executing device obtains the firmware version information of the scanning device, it performs a hash operation on the firmware version information to obtain a hash value. If the hash value is the same as the preset information, the executing device can determine that the device information matches the preset information; if the hash value is different from the preset information, the executing device can determine that the device information does not match the preset information.
[0042] If the device information matches the preset information, the execution device may not send an adaptation request, and the POS machine 120 may perform a scanning operation through the barcode scanner 130; if the device information does not match the preset information, the execution device may perform the following steps.
[0043] S230: When the device information does not match the preset information, send an adaptation request, where the adaptation request is used to request configuration of the scanning device.
[0044] The execution device may send an adaptation request to the cloud 110 to request the cloud 110 to configure the scanning device, wherein the execution device may send the adaptation request directly to the cloud 110 or forward the adaptation request through the scanning device.
[0045] The cloud 110 may send a query request to the scanning device or the execution device to query the status of the scanning device, for example, to obtain the MAC layer information and / or firmware version information of the scanning device. Subsequently, the cloud 110 may send configuration information to the execution device, and the configuration information may include at least one of the following parameters: scanning parameters and transmission parameters of the scanning device, and receiving parameters and processing parameters of the associated device of the scanning device.
[0046] As an optional implementation, the adaptation request includes device information of the scanning device and / or device information of the associated devices of the scanning device. In this way, the cloud 110 no longer needs to send a query request, thereby reducing the signaling overhead of the execution device and the cloud 110, and improving the rate of adapting the scanning device.
[0047] The associated device of the scanning device may be a POS machine 120. The POS machine 120 is set based on the receiving parameters and processing parameters in the configuration information to improve the matching degree between the POS machine 120 and the scanning device. The associated device of the scanning device may also be other devices that can communicate with the scanning device, which is not limited in this application.
[0048] S240, receiving configuration information.
[0049] S250: Configure the scanning device according to the configuration information.
[0050] Taking the execution device as POS machine 120 as an example, after POS machine 120 obtains the configuration information, if the configuration information includes the receiving parameters and processing parameters of POS machine 120, then POS machine 120 can configure the local parameters according to the receiving parameters and processing parameters; if the configuration information includes the scanning parameters and transmission parameters of the barcode scanner 130, then POS machine 120 can send the scanning parameters and transmission parameters to the barcode scanner 130, so that the barcode scanner 130 can configure the local parameters. The above solution does not require the scanning device to communicate with the cloud 110, reducing the cost of the scanning device.
[0051] In the scanning system applying method 200, since the execution device can detect the device information of the scanning device after the scanning device is powered on, and execute the steps of matching the scanning device when the device information does not match the preset information, no user intervention is required. Therefore, method 200 can enhance the operability of the scanning device and reduce the difficulty for users to experience better scanning effects.
[0052] The above describes in detail the method for adapting the scanning device provided by the present application from the perspective of the terminal device. Next, the processing steps of the server (ie, the cloud) in the method for adapting the scanning device provided by the present application will be introduced.
[0053] like Figure 3 As shown, the method 300 includes:
[0054] S310: Receive an adaptation request, where the adaptation request is used to request configuration of a scanning device.
[0055] The execution device of method 300 may be cloud 110 or a chip in cloud 110. Cloud 110 may receive an adaptation request from POS machine 120 or barcode scanner 130, which has the same meaning as the adaptation request in method 200 and will not be described here for brevity.
[0056] After the cloud 110 obtains the adaptation request, it may perform the following steps.
[0057] S320: Determine, from at least one configuration information, configuration information corresponding to the device information of the scanning device according to the device information of the scanning device.
[0058] For example, the cloud 110 can search for configuration information corresponding to the device information of the barcode scanner 130 from a locally stored database, where the database is a set of configuration information of the barcode scanner, and the configuration information set includes at least one model and at least one configuration information, and the at least one model corresponds one-to-one to the at least one configuration information; the device information is the model of the barcode scanner 130, and the cloud 110 determines the target configuration information from at least one configuration information in the database based on the model of the barcode scanner 130, and the target configuration information is the configuration information in which the model associated in the at least one configuration information is the same as the model of the barcode scanner 130.
[0059] The cloud 110 may also determine the configuration information of the POS machine 120 from a database containing configuration information of associated devices in a similar manner.
[0060] Among them, the above-mentioned database can be generated by testers through test verification. For example, the testers determine the configuration parameters of the barcode scanner 130 and the configuration parameters of the POS machine 120 based on the scanning rate of the barcode scanner 130, the data transmission rate between the barcode scanner 130 and the POS machine 120, and the processing rate of the POS machine 120, and store these two configuration parameters and the device information of the barcode scanner 130 and the POS machine 120 (for example, device model) in the database. These four information correspond one by one to form a set of information. After the cloud 110 receives the request message containing the device information of the barcode scanner 130 and / or the POS machine 120, it can uniquely determine the configuration parameters of the barcode scanner 130 and / or the POS machine 120, that is, the configuration information.
[0061] After the cloud 110 determines the configuration information, it may perform the following steps.
[0062] S330: Send configuration information, where the configuration information is used to configure the scanning device.
[0063] The specific process of configuring the scanning device can refer to the relevant description in method 200, which will not be repeated here.
[0064] In the scanning system applying method 300, the execution device of method 300 can select appropriate configuration information from the database after obtaining the adaptation request without user intervention. Therefore, method 300 can enhance the operability of the scanning device and reduce the difficulty for users to experience better scanning effects.
[0065] The above describes in detail an example of a method for adapting a scanning device provided by the present application. It is understandable that, in order to realize the above functions, the device for adapting a scanning device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0066] The present application can divide the device for adapting the scanning device into functional units according to the above method example. For example, each function can be divided into each functional unit, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0067] Figure 4 The device 400 includes a receiving unit 410, a processing unit 420 and a sending unit 430. The processing unit 420 can control the sending unit 430 to perform the sending step, and the processing unit 420 can control the receiving unit 410 to perform the receiving step.
[0068] The processing unit 420 is used to: detect a scanning device and obtain device information of the scanning device;
[0069] The processing unit 420 is further configured to: determine whether the device information matches the preset information;
[0070] The sending unit 430 is used to: when the device information does not match the preset information, send an adaptation request, where the adaptation request is used to request configuration of the scanning device;
[0071] The receiving unit 410 is used to: receive configuration information;
[0072] The processing unit 420 is further configured to configure the scanning device according to the configuration information.
[0073] Optionally, the processing unit 420 is further configured to: when the device information matches preset information, determine not to send the adaptation request.
[0074] Optionally, the adaptation request includes device information of the scanning device.
[0075] Optionally, the adaptation request further includes device information of an associated device of the scanning device.
[0076] Optionally, the processing unit 420 is specifically configured to: send the configuration information to the scanning device through the sending unit.
[0077] Optionally, the configuration information includes at least one of the following parameters: scanning parameters and transmission parameters of the scanning device, and receiving parameters and processing parameters of a device associated with the scanning device.
[0078] The specific process of the apparatus 400 executing the method for adapting the scanning device and the beneficial effects produced can be referred to the relevant description in the method embodiment, which will not be repeated here.
[0079] Figure 5 1 is a schematic diagram of another apparatus for adapting a scanning device provided by the present application. The apparatus 500 includes a receiving unit 510, a processing unit 520 and a sending unit 530, wherein the processing unit 520 can control the sending unit 530 to perform a sending step, and the processing unit 520 can control the receiving unit 510 to perform a receiving step.
[0080] The receiving unit 510 is used to: receive an adaptation request, where the adaptation request is used to request configuration of a scanning device;
[0081] The processing unit 520 is used 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;
[0082] The sending unit 530 is used to send configuration information, where the configuration information is used to configure the scanning device.
[0083] 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 configuration information corresponding to the device information of the associated device from at least one configuration information according to the device information of the associated device.
[0084] Optionally, the configuration information includes at least one of the following parameters: scanning parameters and transmission parameters of the scanning device, and receiving parameters and processing parameters of a device associated with the scanning device.
[0085] The specific process of the apparatus 500 executing the method for adapting the scanning device and the beneficial effects produced can be referred to the relevant description in the method embodiment, which will not be repeated here.
[0086] Figure 6 A schematic structural diagram of a device adapted to a scanning device provided in the present application is shown. Figure 6The dotted line in the figure indicates that the unit or the module is optional. The device 600 can be used to implement the method described in the above method embodiment. The device 600 can be a terminal device, a server or a chip.
[0087] The device 600 includes one or more processors 601, which can support the device 600 to implement Figure 2 or Figure 3 The method in the corresponding method embodiment. The processor 601 can be a general-purpose processor or a special-purpose processor. For example, the processor 601 can be a CPU. The CPU can be used to control the device 600, execute the software program, and process the data of the software program. The device 600 can also include a communication unit 605 to realize the input (reception) and output (transmission) of signals.
[0088] For example, the device 600 may be a chip, the communication unit 605 may be an input and / or output circuit of the chip, or the communication unit 605 may be a communication interface of the chip, and the chip may be a component of a terminal device, a server, or other electronic devices.
[0089] For another example, the device 600 may be a terminal device or a server, and 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.
[0090] The device 600 may include one or more memories 602, on which a program 604 is stored. The program 604 can be executed by the processor 601 to generate instructions 603, so that the processor 601 performs the method described in the above method embodiment according to the instructions 603. Optionally, data may also be stored in the memory 602. Optionally, the processor 601 may also read the data stored in the memory 602, and the data may be stored at the same storage address as the program 604, or the data may be stored at a different storage address from the program 604.
[0091] The processor 601 and the memory 602 may be provided separately or integrated together, for example, integrated on a single board of a server or a system on chip (SOC) of a terminal device.
[0092] The device 600 may further include an antenna 606. The communication unit 605 is configured to implement the transceiver function of the device 600 through the antenna 606.
[0093] The specific manner in which the processor 601 executes the method for processing the adapted scanning device may refer to the relevant description in the method embodiment.
[0094] It should be understood that each step of the above method embodiment can be completed by a hardware-based logic circuit or a software-based instruction in the processor 601. The processor 601 can be a CPU, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components.
[0095] The present application also provides a computer program product, which, when executed by the processor 601, implements the method described in any method embodiment of the present application.
[0096] The computer program product may be stored in the memory 602 , for example, a program 604 , which is converted into an executable target file that can be executed by the processor 601 after preprocessing, compiling, assembling, and linking.
[0097] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the method described in any method embodiment of the present application is implemented. The computer program can be a high-level language program or an executable target program.
[0098] The computer-readable storage medium is, for example, a memory 602. The memory 602 may be a volatile memory or a nonvolatile memory, or the memory 602 may include both a volatile memory and a nonvolatile memory. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described devices and equipment and the technical effects produced can refer to the corresponding processes and technical effects in the aforementioned method embodiments, and will not be repeated here.
[0100] In several embodiments provided in the present application, the disclosed systems, devices and methods can be implemented in other ways. For example, some features of the method embodiments described above can be ignored or not performed. The device embodiments described above are merely schematic, and the division of units is only a logical function division. There may be other division methods in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the above coupling includes electrical, mechanical or other forms of connection.
[0101] It should be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0102] In addition, the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0103] In short, the above is only a preferred embodiment of the technical solution of this application, and is not intended to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application should be included in the protection scope of this application.
Claims
1. A method for adapting a scanning device, characterized in that: include: Detecting a scanning device and acquiring device information of the scanning device; wherein, after the scanning device establishes a connection with the 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 includes media access control layer information, and the software information at least includes firmware version information; the scanning device and the associated device communicate with each other through wireless communication or wired communication; Determining whether the device information matches preset information; wherein the preset information is information pre-stored in the associated device; When the preset information and the device information are both the media access control layer information: if the preset information and the device information are the same, the associating device determines that the device information matches the preset information; if the preset information and the device information are different, the associating device confirms that the device information does not match the preset information; When the preset information is a hash value and the device information is the firmware version information: after the associated device obtains the firmware version information of the scanning device, the associated device performs a 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 device determines that the device information matches the preset information; if the hash value is different from the preset information, the associated device determines that the device information does not match the preset information; When the device information does not match the preset information, an adaptation request is sent, wherein the adaptation request is used to request configuration of the scanning device; wherein the associated device directly or indirectly forwards the adaptation request to the cloud through the scanning device, requesting the cloud to configure the scanning device; the cloud sends a query request to the scanning device or the associated device, and searches for configuration information corresponding to the scanning device from a locally stored database, wherein the database is a set of configuration information containing the scanning device, and the database includes at least one model and at least one configuration information, and the at least one model corresponds to the at least one configuration information one by one; Receive configuration information; The associating device configures the scanning device according to the configuration information.
2. The method according to claim 1, characterized in that Also includes: When the device information matches the preset information, it is determined not to send the adaptation request.
3. The method according to claim 1 or 2, characterized in that: The adaptation request includes device information of the scanning device.
4. The method according to claim 1, characterized in that: The adaptation request also includes device information of an associated device of the scanning device.
5. The method according to claim 1, characterized in that Configuring the scanning device according to the configuration information includes: The configuration information is sent to the scanning device.
6. The method according to claim 1, characterized in that The configuration information includes 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 for adapting a scanning device, characterized in that: include: The cloud receives an adaptation request, wherein the adaptation request is used to request configuration of a scanning device; wherein the adaptation request includes device information of the scanning device and / or device information of an associated device of the scanning device; the device information is hardware information or software information, wherein the hardware information includes at least media access control layer information, and the software information includes at least firmware version information; Determine, from at least one configuration information, configuration information corresponding to the device information of the scanning device according to the device information of the scanning device; wherein, the cloud searches for configuration information corresponding to the scanning device from a locally stored database, the database being a set of configuration information containing the scanning device, the database comprising at least one model and at least one configuration information, the at least one model corresponding to the at least one configuration information one-to-one; the device information also comprises the model of the scanning device, the cloud determines, from at least one configuration information in the database, target configuration information according to the model of the scanning device, the target configuration information being configuration information whose model associated in the at least one configuration information is the same as the model of the scanning device; Send configuration information, where the configuration information is used to configure the scanning device.
8. The method according to claim 7, characterized in that The adaptation request also includes device information of an associated device of the scanning device, and the method further includes: Configuration information corresponding to the device information of the associated device is determined from at least one configuration information according to the device information of the associated device.
9. The method according to claim 7 or 8, characterized in that: The configuration information includes 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. A device for adapting a scanning device, characterized in that: It includes a processing unit, a sending unit and a receiving unit. The processing unit is used to: detect a scanning device and obtain device information of the scanning device; The processing unit is also used to: determine whether the device information matches the preset information; The sending unit is used to: when the device information does not match the preset information, send an adaptation request, wherein the adaptation request is used to request configuration of the scanning device; The receiving unit is used to: receive configuration information; The processing unit is further used to: configure the scanning device according to the configuration information; After the scanning device establishes a connection with the 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 includes media access control layer information, and the software information at least includes firmware version information; the scanning device and the associated device communicate with each other through wireless communication or wired communication; Wherein, the preset information is information pre-stored in the associated device; When the preset information and the device information are both the media access control layer information: if the preset information and the device information are the same, the associating device determines that the device information matches the preset information; if the preset information and the device information are different, the associating device confirms that the device information does not match the preset information; When the preset information is a hash value and the device information is the firmware version information: after the associated device obtains the firmware version information of the scanning device, the associated device performs a 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 device determines that the device information matches the preset information; if the hash value is different from the preset information, the associated device determines that the device information does not match the preset information; The associated device sends an adaptation request to the cloud directly or indirectly through the scanning device, requesting the cloud to configure the scanning device; the cloud sends a query request to the scanning device or the associated device, searching for configuration information corresponding to the scanning device from a locally stored database, the database being a set of configuration information containing the scanning device, the database including at least one model and at least one configuration information, and the at least one model and the at least one configuration information correspond one to one.
11. The device according to claim 10, characterized in that The processing unit is also used for: When the device information matches the preset information, it is determined not to send the adaptation request.
12. The device according to claim 10 or 11, characterized in that The adaptation request includes device information of the scanning device.
13. The device according to claim 10, characterized in that The adaptation request also includes device information of an associated device of the scanning device.
14. The device according to claim 10, characterized in that The processing unit is specifically used for: The configuration information is sent to the scanning device through the sending unit.
15. The device according to claim 10, characterized in that The configuration information includes 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. A device for adapting a scanning device, characterized in that: It includes a processing unit, a receiving unit and a sending unit. The receiving unit is used to: receive an adaptation request, the adaptation request is used to request configuration of a scanning device; wherein, after the scanning device establishes a connection with the 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 includes media access control layer information, and the software information at least includes firmware version information; the scanning device and the associated device communicate with each other through wireless communication or wired communication; The processing unit is used 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; Determining whether the device information matches preset information; wherein the preset information is information pre-stored in the associated device; When the preset information and the device information are both the media access control layer information: if the preset information and the device information are the same, the associating device determines that the device information matches the preset information; if the preset information and the device information are different, the associating device confirms that the device information does not match the preset information; When the preset information is a hash value and the device information is the firmware version information: after the associated device obtains the firmware version information of the scanning device, the associated device performs a 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 device determines that the device information matches the preset information; if the hash value is different from the preset information, the associated device determines that the device information does not match the preset information; The sending unit is used to: send configuration information, wherein the associated device directly or indirectly forwards an adaptation request to the cloud through the scanning device, requesting the cloud to configure the scanning device; the cloud sends a query request to the scanning device or the associated device, and searches for configuration information corresponding to the scanning device from a locally stored database, wherein the database is a set of configuration information containing the scanning device, and the database includes at least one model and at least one configuration information, and the at least one model and the at least one configuration information correspond one to one; the configuration information is used to configure the scanning device.
17. The device according to claim 16, characterized in that The adaptation request also includes device information of an associated device of the scanning device, and the processing unit is further configured to: Configuration information corresponding to the device information of the associated device is determined from at least one configuration information according to the device information of the associated device.
18. The device according to claim 16 or 17, characterized in that The configuration information includes 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, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 6.
20. A server, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute the method as claimed in any one of claims 7 to 9.
21. A chip, characterized in that: It comprises: a processor, used to call and run a computer program from a memory, so that a device equipped with the chip executes: a method as described in any one of claims 1 to 6, or a method as described in any one of claims 7 to 9.
22. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program causes 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.
Citation Information
Patent Citations
Scanning method and scanning device for scanning engines
CN107045616A