A shared code scanning method and platform

By combining port mapping technology with terminals, cloud hosts, scanners, and printers, the problem of integrating barcode scanning software with cloud platforms in existing technologies has been solved. This enables efficient cloud data collection and storage, reduces costs for small and medium-sized enterprises, and improves barcode scanning efficiency and product traceability and anti-counterfeiting capabilities.

CN115600622BActive Publication Date: 2026-11-27CHINA COMMERCE NETWORKS (SHANGHAI) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211250163.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-13
Publication Date
2026-11-27
Estimated Expiration
2042-10-13

AI Technical Summary

Technical Problem

Existing QR code scanning software products cannot be tightly integrated with cloud platforms, forcing SMEs and individuals to manually deploy servers, increasing costs and failing to meet the needs of QR code scanning and traceability.

Method used

By using port mapping technology, the terminal, cloud host, scanner, and printer are combined to achieve a one-to-one correspondence between the external network port and the internal network port of the scanner, and a one-to-one correspondence between the external network port and the internal network port of the printer. The cloud host is used for data storage and display, and business data is decoded through TCP handshake.

Benefits of technology

No need to manually deploy servers; enables cloud-based collection and storage of unique codes for each item, improving scanning efficiency, supporting data authenticity verification and cross-selling verification, reducing costs, and suitable for SMEs and individuals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115600622B_ABST
    Figure CN115600622B_ABST
Patent Text Reader

Abstract

The application discloses a shared code scanning method and platform, and relates to the technical field of information processing, which comprises the following steps: obtaining a user external network IP, a scanning head external network mapping port and a printer external network mapping port through a terminal; determining a scanning head internal network port according to the user external network IP and the scanning head external network mapping port, and determining a printer internal network port according to the user external network IP and the printer external network mapping port through a cloud host; controlling the corresponding scanning head to scan bar code data according to the scanning head internal network port, so as to obtain business data, and storing and displaying the business data in real time; the business data is used for data authenticity query and channeling query; and printing the business data according to the printer internal network port to control the corresponding printer. The application combines the terminal, the cloud host, the scanning head and the printer, and improves the efficiency of bar code scanning and printing through port mapping, thereby improving the efficiency of product tracing and anti-counterfeiting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information processing technology, and in particular to a shared QR code scanning method and platform. Background Technology

[0002] In recent years, cloud server costs have been declining, performance has been improving, network speeds have become faster and more stable, and the rapid development of 5G has created an excellent environment for cloud QR code scanning.

[0003] Given the growing demand from SMEs for QR code tracking, many QR code data collection software products have emerged on the market. However, most of them cannot be tightly integrated with cloud platforms. They require manual server deployment, uploading to local hosts for collection, and then uploading to cloud hosts, which significantly increases costs. This makes them unsuitable for small and micro enterprises or individuals with low requirements for data collection speed. Summary of the Invention

[0004] The purpose of this invention is to provide a shared barcode scanning method and platform that combines a terminal, a cloud host, a scanner, and a printer. Through port mapping, it improves the efficiency of barcode scanning and printing, thereby enhancing the efficiency of product traceability and anti-counterfeiting.

[0005] To achieve the above objectives, the present invention provides the following solution:

[0006] This invention provides a shared QR code scanning method, comprising:

[0007] Obtain the user's external IP address, the scanner's external network port, and the printer's external network port through the terminal;

[0008] The cloud host determines the scanner head's internal network port based on the user's external network IP and the scanner head's external network mapping port, and determines the printer's internal network port based on the user's external network IP and the printer's external network mapping port; wherein, the scanner head's external network mapping port corresponds one-to-one with the scanner head's internal network port; and the printer's external network mapping port corresponds one-to-one with the printer's internal network port.

[0009] The scanner head is controlled via its intranet port to scan barcode data, thereby acquiring business data. This business data is then stored and displayed in real time. The business data is used for data authenticity verification and cross-selling verification.

[0010] The printer is controlled to print the business data according to the printer's intranet port.

[0011] Optionally, the port of the scanning head corresponding to the intranet port control of the scanning head is a TCP port;

[0012] The shared QR code scanning method also includes:

[0013] For the service data output from the TCP port, a three-way TCP handshake is performed to decode the service data.

[0014] Optionally, the shared QR code scanning method further includes:

[0015] Set the router corresponding to the external network to pass-through mode, and then set up the scanner port mapping in the router corresponding to the external network so that the scanner's external network mapping port corresponds one-to-one with the scanner's internal network port.

[0016] Optionally, the attributes of the business data include successful read and read error;

[0017] The shared QR code scanning method also includes:

[0018] An alarm signal is generated when the attribute of the business data indicates a read error.

[0019] Optionally, the shared QR code scanning method further includes:

[0020] Obtain the user's external IP address and the external network mapping port of the network I / O card through the terminal;

[0021] The internal IP address of the network I / O card is determined based on the user's external IP address and the external network mapping port of the network I / O card.

[0022] Based on the intranet IP address of the network I / O card, the alarm signal is removed.

[0023] Optionally, the business data is stored in real time, specifically including:

[0024] The business data is stored in an SQL database.

[0025] Optionally, the business data can be displayed in real time, specifically including:

[0026] The business data is displayed in real time through the terminal.

[0027] To achieve the above objectives, the present invention also provides the following technical solutions:

[0028] A shared QR code scanning platform includes:

[0029] The terminal is used to obtain the user's external IP address, the scanner's external network mapping port, and the printer's external network mapping port.

[0030] A cloud host, connected to the terminal, is used to determine the scanner head's internal network port based on the user's external network IP and the scanner head's external network mapping port, and to determine the printer's internal network port based on the user's external network IP and the printer's external network mapping port; wherein, the scanner head's external network mapping port corresponds one-to-one with the scanner head's internal network port; and the printer's external network mapping port corresponds one-to-one with the printer's internal network port.

[0031] The scanning head, connected to the cloud host, is used to control the corresponding scanning head to scan barcode data according to the intranet port of the scanning head, so as to obtain business data, and then send the business data to the cloud host;

[0032] The cloud server is also used for real-time storage and display of the business data; the business data is used for data authenticity verification and cross-selling verification.

[0033] The printer is connected to the cloud host and is used to control the corresponding printer to print the business data according to the printer's intranet port.

[0034] According to specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0035] This invention provides a shared barcode scanning method and platform, deploying port mapping to ensure a one-to-one correspondence between the scanner's external network port and its internal network port, and between the printer's external network port and its internal network port. This associates the scanner and printer based on the cloud host and the user's external IP address. When shared scanning is needed, the user's external IP address, the scanner's external network port, and the printer's external network port are obtained from the terminal. Based on the mapping settings, the scanner's internal network port and the printer's internal network port are determined. Barcode data is scanned using the scanner corresponding to the internal network port, and the obtained business data is stored and displayed in real time. The business data is then printed using the printer corresponding to the internal network port. In summary, this invention eliminates the need for manual server deployment, enabling cloud-based data collection and storage for each item with a unique barcode, significantly improving work efficiency. Furthermore, the collected business data can be used for data authenticity verification and cross-selling verification, further enhancing product traceability and anti-counterfeiting efficiency and security. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0037] Figure 1This is a flowchart illustrating the shared QR code scanning method of the present invention;

[0038] Figure 2 This is a schematic diagram of the structure of the shared QR code scanning platform of the present invention. Attached image description:

[0040] 1-Terminal, 2-Cloud host, 3-Scanning head, 4-Printer. Detailed Implementation

[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0042] This invention proposes a shared barcode scanning method and platform that eliminates the need for on-site deployment of computers, servers, or other equipment. It enables data collection (scanning head) and printing of digital data using any simple network-enabled scanner and printer, achieving one-item-one-code cloud collection and storage, thus improving data collection efficiency.

[0043] To make the objectives, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0044] Example 1

[0045] like Figure 1 As shown, this embodiment provides a shared QR code scanning method, including:

[0046] Step 100: Obtain the user's external IP address, the scanner's external network mapping port, and the printer's external network mapping port through the terminal. Specifically, the user selects the barcode scanning module and the printing function module on the terminal, and then enters the user's external IP address, the scanner's external network mapping port, and the printer's external network mapping port on the terminal. The terminal is a mobile phone, tablet, or computer, and the corresponding external network is the Wi-Fi or mobile network used by the mobile phone, tablet, or computer, as opposed to the enterprise intranet.

[0047] Step 200: The cloud host determines the scanner head's internal network port based on the user's external network IP and the scanner head's external network mapping port, and determines the printer's internal network port based on the user's external network IP and the printer's external network mapping port; wherein, the scanner head's external network mapping port corresponds one-to-one with the scanner head's internal network port; and the printer's external network mapping port corresponds one-to-one with the printer's internal network port.

[0048] Specifically, the router corresponding to the external network is set to pass-through mode, and then port mapping for the scanner head is configured in the router to ensure a one-to-one correspondence between the scanner head's external network mapped port and the scanner head's internal network port. Similarly, the same method can be used to configure a one-to-one correspondence between the printer's external network mapped port and the printer's internal network port.

[0049] In a practical application, the cloud server uses Windows Server 2019 Enterprise Edition. By enabling the RDP multi-user function (RDSVDI multi-user terminal function), the enterprise's remote ports can be mapped to the router ports. The enterprise's remote ports mentioned here refer to internal network ports, including printer internal network ports and scanner internal network ports.

[0050] For example, the terminal connects the scanner to the enterprise network via wired or wireless network, sets the scanner address to the enterprise's legitimate internal network address, and maps the port to the enterprise router's public IP address. For instance, a scanner with IP address 192.168.3.100 is mapped to the public IP address 10.20.30.232, and the port is set to 51236. Therefore, the cloud host software connection is via port 10.20.30.232:51236. In other words, port 10.20.30.232:51236 is the scanner's internal network port.

[0051] Step 300: Control the corresponding scanning head to scan barcode data according to the intranet port of the scanning head to obtain business data, and store and display the business data in real time; the business data is used for data authenticity query and cross-selling query.

[0052] Specifically, the port of the scanning head corresponding to the intranet port control of the scanning head is a TCP port; based on this, the shared scanning method further includes: performing a three-way TCP handshake on the business data output by the TCP port to decode the business data; the decoded data is the actual data stored in the barcode.

[0053] In addition, the business data is stored in an SQL database and displayed in real time through the terminal. Specifically, the business data is automatically saved to the corresponding data table in the SQL database on the cloud host, and anti-counterfeiting activation and anti-counterfeiting measures are automatically performed. At the end of printing, the SQL data table is uploaded to the cloud host's data center for data merging. Based on the above SQL table settings, any data scanned by the enterprise and its storage records are obtained in real time on the cloud host and displayed on the software interface of the remote virtual host on the terminal, realizing cloud-based barcode scanning.

[0054] Step 400: Control the corresponding printer to print the business data according to the printer's intranet port. Specifically, the business data is stored in an SQL data table on the cloud host. The SQL data table outputs the corresponding business data to the printer's intranet port, and then outputs it to the printer for printing.

[0055] In a specific practical application, the attributes of the business data include successful read and read error; the read error includes data read failure, read error, and read quantity error. The shared QR code scanning method further includes: when the attribute of the business data is read error, generating an alarm signal to remind the user of an operational error or a problem on-site. Specifically, the warning light on the interface displays a red alarm.

[0056] When a user selects the exclusion function module on the terminal and enters their external IP address and the external network port mapping of the network I / O card, an alarm signal is generated. Simultaneously, the cloud host determines the internal IP address of the network I / O card based on the user's external IP address and the network I / O card's external network port mapping. Then, based on the network I / O card's internal network IP address, the alarm signal is excluded. Specifically, the router corresponding to the external network is set to pass-through mode, and network I / O card port mapping is configured in the router to ensure a one-to-one correspondence between the external network port mapping and the network I / O card's internal network IP address.

[0057] Example 2

[0058] In order to execute the method corresponding to Embodiment 1 above and achieve the corresponding functions and technical effects, this embodiment provides a shared QR code scanning platform, such as... Figure 2 As shown, the shared QR code scanning platform includes:

[0059] Terminal 1 is used to obtain the user's external IP address, the scanner's external network mapped port, and the printer's external network mapped port. Specifically, the terminal is set up in the production site, connected to a router via a local area network, and through relevant router settings, the ports on the terminal are mapped one-to-one with the virtual internal network ports on the cloud host.

[0060] Cloud host 2 is connected to the terminal. Cloud host 2 is used to determine the internal network port of the scanner head based on the user's external network IP and the external network mapping port of the scanner head, and to determine the internal network port of the printer based on the user's external network IP and the external network mapping port of the printer; wherein, the external network mapping port of the scanner head corresponds one-to-one with the internal network port of the scanner head; and the external network mapping port of the printer corresponds one-to-one with the internal network port of the printer. Specifically, the cloud host is located in a cloud server room and is connected to a router via an external network.

[0061] Scanner 3 is connected to the cloud host. Scanner 3 is used to control the corresponding scanner to scan barcode data according to the scanner's intranet port to obtain business data, and then send the business data to the cloud host. Scanner 3 can be set to either always-on mode for deduplication or trigger mode, which can be configured by the staff as needed.

[0062] The cloud host 2 is also used for real-time storage and display of the business data; the business data is used for data authenticity verification and cross-selling verification. The interface of the cloud host 2 can also display the scanning steps of the scanner and the printing steps of the printer in real time.

[0063] Printer 4 is connected to the cloud host. Printer 4 is used to control the corresponding printer to print the business data according to the printer's intranet port. Specifically, both the scanning head and the printer are located in the production site; a network I / O port is also set up in the production site for setting indicator lights and for performing rejection and material sorting operations; when the attribute of the business data is read incorrect, an alarm signal is generated and displayed by the indicator light, that is, the indicator light emits red light.

[0064] In summary, the shared barcode scanning platform provided by this invention eliminates the need to purchase additional scanning computer hosts, databases, systems, etc. It achieves real-time label printing controlled from the external network through network printing port mapping, thus completing the network setup. Additional network I / O devices can be configured as needed to perform alarm rejection and other tasks, thereby realizing product traceability and anti-counterfeiting with a unique code for each item. This serves small and medium-sized enterprises, adding a safe and efficient service to product management.

[0065] For businesses that need to activate labels, or those seeking cost savings, especially those with temporary scanning needs (such as at trade shows), the shared scanning platform of this invention can be easily assembled using a SIM card, a 5G router, and a network scanner. It can be handheld or mounted on a standard stand. No platform development is required; simply renting the platform allows for scanning and collecting all necessary codes. The backend cloud platform development adopts a modular approach; simply adding a scanner or printer module enables scanning-linked printing and labeling.

[0066] Compared with the prior art, the present invention also has the following advantages:

[0067] The shared scanning method and platform provided by this invention can greatly reduce costs; it enables the basic work of scanning and data collection, and is especially suitable for pre-scanning. In different factories or workshops, it can detect and merge table data in advance, effectively reduce digital data loss, and improve work efficiency.

[0068] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0069] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. Furthermore, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A shared QR code scanning method, characterized in that, The shared QR code scanning method includes: Obtain the user's external IP address, the scanner's external network port, and the printer's external network port through the terminal; The cloud host determines the scanner head's internal network port based on the user's external network IP and the scanner head's external network mapping port, and also determines the printer's internal network port based on the user's external network IP and the printer's external network mapping port; wherein, the scanner head's external network mapping port and the scanner head's internal network port correspond one-to-one; the printer's external network mapping port and the printer's internal network port correspond one-to-one; the RDS VDI multi-user terminal function is enabled on the cloud host to map the enterprise's remote ports to routing ports; the enterprise's remote ports are internal network ports, including the printer's internal network port and the scanner head's internal network port; The scanner head is controlled via its intranet port to scan barcode data, thereby acquiring business data. This business data is then stored and displayed in real time. The business data is used for data authenticity verification and cross-selling verification. The printer is controlled to print the business data according to the printer's intranet port.

2. The shared QR code scanning method according to claim 1, characterized in that, The port corresponding to the scanner head's intranet port control is a TCP port; The shared QR code scanning method also includes: For the service data output from the TCP port, a three-way TCP handshake is performed to decode the service data.

3. The shared QR code scanning method according to claim 1, characterized in that, The shared QR code scanning method also includes: Set the router corresponding to the external network to pass-through mode, and then set up the scanner port mapping in the router corresponding to the external network so that the scanner's external network mapping port corresponds one-to-one with the scanner's internal network port.

4. The shared QR code scanning method according to claim 1, characterized in that, The attributes of the business data include successful read and read error; The shared QR code scanning method also includes: An alarm signal is generated when the attribute of the business data indicates a read error.

5. The shared QR code scanning method according to claim 4, characterized in that, The shared QR code scanning method also includes: Obtain the user's external IP address and the external network mapping port of the network I / O card through the terminal; The internal IP address of the network I / O card is determined based on the user's external IP address and the external network mapping port of the network I / O card. Based on the intranet IP address of the network I / O card, the alarm signal is removed.

6. The shared QR code scanning method according to claim 1, characterized in that, Real-time storage of the aforementioned business data specifically includes: The business data is stored in an SQL database.

7. The shared QR code scanning method according to claim 1, characterized in that, The real-time display of the aforementioned business data specifically includes: The business data is displayed in real time through the terminal.

8. A shared QR code scanning platform, characterized in that, The shared QR code scanning platform includes: The terminal is used to obtain the user's external IP address, the scanner's external network mapping port, and the printer's external network mapping port. A cloud host, connected to the terminal, is used to determine the scanner head's internal network port based on the user's external network IP and the scanner head's external network mapping port, and to determine the printer's internal network port based on the user's external network IP and the printer's external network mapping port; wherein, the scanner head's external network mapping port corresponds one-to-one with the scanner head's internal network port; the printer's external network mapping port corresponds one-to-one with the printer's internal network port; the cloud host enables the RDS VDI multi-user terminal function to map the enterprise's remote ports to routing ports; the enterprise's remote ports are internal network ports, including the printer's internal network port and the scanner head's internal network port; The scanning head, connected to the cloud host, is used to control the corresponding scanning head to scan barcode data according to the intranet port of the scanning head, so as to obtain business data, and then send the business data to the cloud host; The cloud server is also used for real-time storage and display of the business data; the business data is used for data authenticity verification and cross-selling verification. The printer is connected to the cloud host and is used to control the corresponding printer to print the business data according to the printer's intranet port.

Citation Information

Patent Citations

  • Cloud computing data interaction system and method applied to scanning gun technology

    CN114330395A

  • Method and apparatus for controlling interface of printing data between clients and printers

    US20050111032A1

  • Communication method and device

    WO2022089412A1