QR code-based cross-network communication methods, devices, electronic equipment, and computer program products

By using a QR code-based cross-network communication method, dynamically updating and using segmentation markers, the problem of insufficient bandwidth for QR code cross-network transmission is solved, achieving high-security and high-speed data transmission, suitable for data exchange in different network environments.

CN119835027BActive Publication Date: 2026-06-30NO 15 INST OF CHINA ELECTRONICS TECH GRP

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NO 15 INST OF CHINA ELECTRONICS TECH GRP
Filing Date
2024-12-20
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

In existing technologies, the cross-network transmission bandwidth of QR codes is not high enough to meet the requirements of data security and high-speed transmission, and the security of data injection and transmission is insufficient for ordinary QR code methods.

Method used

A cross-network communication method based on QR codes is adopted. Data is acquired at the communication sending end, processed into packets to generate data packets, converted into QR code arrays, and dynamically updated in an asynchronous communication manner. Region division and status identification are performed using segmentation markers and update counters to ensure the security and efficiency of data transmission.

Benefits of technology

Without altering physical isolation, it achieves highly secure and high-speed cross-network communication, improving data transmission efficiency and flexibility, and adapting to data exchange needs in different network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835027B_ABST
    Figure CN119835027B_ABST
Patent Text Reader

Abstract

This application provides a cross-network communication method, apparatus, electronic device, and computer program product based on QR codes, belonging to the technical field of digital information transmission. The method involves acquiring communication data, processing the communication data into packets to generate data packets, converting the data packets into corresponding QR codes, and displaying a QR code array on one or more interactive interfaces. Based on changes in the communication data, one or more QR codes in the QR code array are updated asynchronously. This application is applied to data exchange between two or more networks. The communication sending end displays a QR code array on one or more interactive interfaces, and then updates one or more QR codes in the QR code array asynchronously based on changes in the communication data. The communication receiving end reads the updated one or more QR codes, and uses the data information stored in the QR codes to achieve cross-network communication between two physically isolated networks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of digital information transmission, specifically to a cross-network communication method, apparatus, electronic device, and computer program product based on QR codes. Background Technology

[0002] Physical isolation is an important security strategy, primarily used to ensure high security between networks or systems with different security levels. Its advantage is high security, but its disadvantage is that it can affect the efficiency of information exchange. In scenarios with high security requirements, the main methods for resolving data transmission between two networks include removable storage media, dedicated isolation switching equipment, and QR codes. Each of these methods has its drawbacks: removable storage media involves a cumbersome process; dedicated isolation switching equipment requires specialized technical personnel for maintenance, and its security is still being verified; and ordinary QR code methods do not meet certain security requirements for data injection and transmission, and the transmission bandwidth is insufficient, making it difficult to meet the requirements of data security and high transmission speed. No effective technical solutions have yet been proposed to address these issues, and improvements are urgently needed. Summary of the Invention

[0003] The main objective of this application is to provide a cross-network communication method, device, electronic device, and computer program product based on QR codes, so as to solve the problems in related technologies where the cross-network transmission bandwidth of QR codes is not high enough and cannot meet the requirements of data security and high-speed transmission.

[0004] According to one aspect of the embodiments of this application, a cross-network communication method based on QR codes is provided, applied to a communication sending end, comprising: acquiring communication data; processing the communication data into packets to generate data packets; converting the data packets into corresponding QR codes; displaying a QR code array on one or more interactive interfaces; and updating one or more QR codes in the QR code array in an asynchronous communication manner according to changes in the communication data.

[0005] According to at least one embodiment of the present application, updating one or more QR codes in the QR code array in an asynchronous communication manner further includes: during the process of updating the QR code array, one or more QR codes in the QR code array are updated to new QR codes, while the remaining QR codes remain unchanged.

[0006] According to at least one embodiment of the present application, updating one or more QR codes in the QR code array in an asynchronous communication manner based on changes in communication data further includes: detecting the data volume of one or more QR codes; if the data volume does not exceed the data transmission limit of a QR code, generating a QR code; or if the data volume exceeds the data transmission limit of a QR code, dividing the data volume into multiple data blocks and generating multiple QR codes corresponding to the multiple data blocks; in the QR code array, adjacent QR codes are divided into regions by a dividing marker, and an update counter is provided in the QR code array.

[0007] According to at least one embodiment of the present application, the step of obtaining communication data and processing the communication data into packets to generate data packets specifically involves obtaining the communication data through the subscription function of the message middleware at the communication sending end.

[0008] According to another aspect of the embodiments of this application, a cross-network communication method based on QR codes is provided, applied to a communication receiving end, including: responding to a QR code array on an interactive interface of one or more communication sending ends, reading QR code information in the QR code array; and detecting changes in the QR code array in real time, and reading one or more updated QR code information.

[0009] According to at least one embodiment of the present application, the step of reading QR code information in the QR code array in response to the interactive interface of one or more communication transmitters further includes: reading the dividing marks between adjacent QR codes, obtaining one or more QR codes from the QR code array; determining whether the update counters are continuous based on the update counters of the obtained one or more QR codes; if the update counters are continuous, determining that the updated one or more QR codes have not lost frames, or: if the update counters are not continuous, determining that the updated one or more QR codes have lost frames.

[0010] According to another aspect of the embodiments of this application, a cross-network communication method based on QR codes is provided, applied to the communication interaction between a communication sender and a communication receiver, comprising: the communication sender acquiring communication data and processing the communication data into packets to generate data packets; the communication sender converting the data packets into corresponding QR codes and displaying a QR code array on one or more interactive interfaces; the communication receiver responding to the QR code array on one or more interactive interfaces provided by the communication sender and reading the QR code information in the QR code array; the communication sender updating one or more QR codes in the QR code array in an asynchronous communication manner according to changes in the communication data; the communication receiver responding to the QR code array on one or more interactive interfaces of the communication sender and reading the QR code information in the QR code array; and the communication receiver detecting changes in the QR code array in real time and reading the updated one or more QR code information.

[0011] According to another aspect of the embodiments of this application, a cross-network communication device based on QR codes is provided. The cross-network communication device is a communication transmitting terminal, which has one or more interactive interfaces for displaying a QR code array. The communication transmitting terminal detects changes in communication data in real time and updates one or more QR codes in the QR code array in an asynchronous communication manner. And / or: the cross-network communication device is a communication receiving terminal, which responds to the QR code array on the interactive interface of the communication transmitting terminal, reads the QR code information in the QR code array of the interactive interface, and detects changes in the QR code array on the interactive interface of the communication transmitting terminal in real time, reading the updated one or more QR code information.

[0012] According to another aspect of the embodiments of this application, an electronic device is provided, the electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to cause the at least one processor to perform the method.

[0013] According to another aspect of the embodiments of this application, a computer program product is provided, including a computer program, characterized in that the computer program implements the method when executed by a processor.

[0014] The beneficial technical effects of the embodiments of this application are:

[0015] Data exchange between two networks can be achieved without altering physical isolation through a cross-network communication method based on QR codes. This method ensures both security and high transmission rates. It involves establishing communication between a sending and receiving end between the two networks. The sending end displays a QR code array on one or more interactive interfaces and then updates one or more QR codes in the array asynchronously based on changes in the communication data. The receiving end reads the updated QR codes and utilizes the data stored in the QR codes to achieve cross-network communication between the two physically isolated networks.

[0016] This application utilizes the characteristic of QR codes being able to store large amounts of data. Multiple QR codes can be displayed on an interactive interface in the form of a QR code array, ensuring the capacity for data transmission. Furthermore, by using asynchronous communication, one or more QR codes in the QR code array can be updated without having to update all QR codes in the QR code array on the interactive interface at once, thus improving the efficiency of cross-network communication and solving the problem of cross-network transmission bandwidth bottleneck while ensuring security. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the specific implementation methods or related technologies of this application, the accompanying drawings used in the description of the specific implementation methods or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some implementation methods of the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram of a basic application scenario (single-machine cross-network transmission) according to an embodiment of this application.

[0019] Figure 1A This is a schematic diagram illustrating an application scenario (group cross-network transmission) according to an embodiment of this application.

[0020] Figure 2 This is a flowchart of a cross-network communication method (communication sending end) based on QR codes.

[0021] Figure 2A This is an architecture diagram of a cross-network communication system (communication sender) based on QR codes.

[0022] Figure 3 This is a flowchart of a cross-network communication method (communication receiver) based on QR codes.

[0023] Figure 3A This is an architecture diagram of a cross-network communication system (communication receiver) based on QR codes.

[0024] Figure 4This is a flowchart illustrating specific implementation methods of the embodiments of this application in some application scenarios.

[0025] Figure 5 This is a flowchart illustrating a specific implementation of the embodiments of this application in the group working mode.

[0026] Figure 6 This is a structural diagram of the various functional modules in a QR code transmission unit.

[0027] Figure 7 This is a diagram of the QR code array effect on the interactive interface of the communication sending end.

[0028] Figure 8 This is a flowchart of a cross-network communication method (communication sender and communication receiver) based on QR codes.

[0029] Figure 9 This is a schematic diagram of the electronic device. Detailed Implementation

[0030] To enable those skilled in the art to better understand the embodiments of this application, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the implementation methods of the embodiments of this application, and not all of the implementation methods. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the protection scope of the embodiments of this application.

[0031] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of the embodiments of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of the present application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.

[0032] Furthermore, the terms "installation," "setup," "equipped with," "connection," "linking," and "socketing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral structure; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium, or an internal connection between two devices, components, or parts. Those skilled in the art can understand the specific meaning of the above terms in the embodiments of this application according to the specific circumstances.

[0033] It should be noted that, unless otherwise specified, the implementation methods and features described in the embodiments of this application can be combined with each other. The embodiments of this application will now be described in detail with reference to the accompanying drawings and examples.

[0034] like Figure 1 The basic application scenario illustrated in this application addresses the problem of low data transmission efficiency between information systems with different security levels under physically isolated conditions. This application provides a high-speed unidirectional transmission method and apparatus based on batch generation of QR codes, accelerating workflows and improving efficiency while ensuring data security. In this basic application scenario, QR code transmission does not alter the original physical isolation between systems. Compared to related technologies using transmission media such as optical discs, it reduces many steps in the workflow, eliminates the need for transmission media management, reduces the risk of leakage, and has lower hardware requirements and less technical demand on maintenance personnel compared to dedicated isolation equipment. Furthermore, QR code data is encrypted during transmission to prevent QR code information leakage and ensure the security of data interaction.

[0035] Figure 1 The basic application scenario shown includes network A and network B. Network A has a message middleware that handles data distribution and scheduling, and uses a thread pool for data verification and QR code processing. Because network A may involve group operation, the thread pool will have multiple sets of data verification and QR code processing. Network B also has a message middleware that handles data distribution and scheduling, and uses a thread pool for data verification and QR code processing. Because network B may also involve group operation, the thread pool will have multiple sets of data verification and QR code processing.

[0036] like Figure 1AAs shown, assuming data exchange occurs between two networks, Network A and Network B, without altering the physical isolation, unidirectional data transmission is achieved through a message middleware and the device provided in this embodiment. The data transmission process is transparent and imperceptible to the user; both sides of the network simply pass data through the message middleware. Data transmission efficiency is improved by utilizing data chunking and asynchronous communication (asynchronous thread pool method). By template parameterizing various protocol data and using template matching to verify data validity, illegal data injection and data theft are prevented, thus enhancing data transmission security. Due to the limited screen size of the interactive interface, the number of QR codes displayed on the screen at the same time is limited. The number of QR codes displayed on the screen is configured through both adaptive and manual methods. For each display area, the sending end has one channel processing QR code data, and for the receiving end, each QR code area has one channel processing the received data and distributing it to the target topic, completing data transmission. Figure 1A In network A, multiple communication senders and receivers exchange data via cross-network communication. The sending end in network A includes message middleware, a resource scheduler, multiple scheduling agents, and multiple thread pools. The thread pools handle data verification and QR code processing, displaying a QR code array on the sending end's interface for the receiving end to read and interact with. Similarly, the receiving end in network B also includes message middleware, a resource scheduler, multiple scheduling agents, and multiple thread pools. The thread pools handle QR code decoding and data processing, reading the QR code array provided by the receiving end's interface and interacting with the sending end.

[0037] like Figure 2 As shown, in order to realize the above basic application scenarios and extended application scenarios, this application embodiment provides a cross-network communication method based on QR codes, applied to the communication sending end, including:

[0038] Step S1: Obtain communication data and process the communication data into packets to generate data packets.

[0039] Step S2: Convert the data packet into a corresponding QR code and display the QR code array on one or more interactive interfaces.

[0040] Step S3: Update one or more QR codes in the QR code array using asynchronous communication based on changes in communication data.

[0041] The technical solutions provided in steps S1 to S3 take the communication sender as the execution entity. By processing the communication data into packets to generate corresponding data packets, and converting them into QR codes, the data is displayed as a QR code array on one or more interactive interfaces for the communication receiver to read and process. During the generation of the QR code array, the QR codes in the array can be updated asynchronously according to changes in the communication data, without waiting for all communication operations to complete before updating the QR codes. QR codes can be updated individually in the QR code array, without waiting for the entire QR code array to be updated at once. This improves the real-time performance and response speed of communication, reduces data transmission latency, and ensures the continuity and timeliness of communication, especially in scenarios with frequent data updates. This enables devices in physically isolated network environments to exchange data by scanning QR codes, while also ensuring security during data exchange and enhancing the flexibility and applicability of communication.

[0042] In step S1, acquiring communication data and processing it into packets to generate data packets specifically involves obtaining the communication data through the subscription function of the message middleware at the communication sending end. Step S1 employs a message middleware approach for message transmission between different applications or services. The message middleware subscribes to topics, creates a message queue for each topic to store messages sent to that topic, places messages into the corresponding queue, and then distributes the messages to applications or services that have subscribed to the topic according to the subscription relationship. During message reception, the receiver periodically checks the message queue, pulls messages from the queue, and once a message arrives at the receiver, the receiver sends an acknowledgment reply to the message middleware, indicating that it has received the message. If multiple receivers have subscribed to the same topic, the message middleware can use a load balancing mechanism to evenly distribute messages to all receivers, avoiding overload on a single receiver. Step S1, by acquiring communication data through the message middleware, can improve the efficiency and reliability of message transmission, reduce coupling between system components, and adapt to the communication requirements of high concurrency and high availability.

[0043] In step S1, conventional communication methods can also be used to obtain communication data and generate data packets by performing packet processing, such as encoding conversion, encryption algorithms, etc. The relevant technologies are already well known to those skilled in the art, so they will not be described in detail here.

[0044] In step S2, displaying a QR code array on one or more interactive interfaces means that the QR codes are arranged in an array on the interactive interface. For example, the QR code array is an M x N matrix. Of course, the QR code array is not limited to the form of an M*N matrix. In other embodiments, the QR code array can be a non-rectangular geometric pattern, such as a circle, a ring, or various irregular geometric shapes, etc., as long as the communication receiving end can read the QR code array.

[0045] In step S3, updating one or more QR codes in the QR code array using asynchronous communication further includes: during the update of the QR code array, one or more QR codes in the QR code array are updated to new QR codes, while the remaining QR codes remain unchanged.

[0046] Furthermore, in step S3, updating one or more QR codes in the QR code array asynchronously based on changes in communication data further includes:

[0047] Detect the data volume of one or more QR codes. If the data volume does not exceed the data transmission limit of a single QR code, generate a single QR code, or:

[0048] If the amount of data exceeds the data transmission limit of a single QR code, the data is divided into multiple data blocks and multiple QR codes are generated corresponding to the multiple data blocks.

[0049] In the QR code array, adjacent QR codes are divided into regions by a dividing marker, and an update counter is set in the QR code array.

[0050] The improvement to step S3 allows for dynamic updates to the QR code array based on changes in communication data. This includes detecting whether the data volume exceeds the transmission limit of a single QR code and determining whether to generate a single QR code or divide the data into multiple blocks to generate multiple corresponding QR codes. Simultaneously, to distinguish different QR codes and identify their update status during image recognition, segmentation markers and update counters are introduced. By detecting the data volume and segmenting the data as needed, it can adapt to data transmission requirements of different sizes, improving the flexibility of data transmission. For data exceeding the transmission limit of a single QR code, efficient data transmission is achieved by dividing it into multiple data blocks and generating multiple QR codes. Using segmentation markers to divide adjacent QR codes into regions and using update counters to identify the update status of QR codes increases the reliability of data transmission. The asynchronous communication method allows the system to respond quickly during data updates, improving the real-time performance of data transmission and reducing the burden on the system when processing and displaying QR codes. Especially when handling large amounts of data updates, it improves the overall performance of the system, making it suitable for dynamic, high-frequency data environments and improving the efficiency of cross-network communication and user experience.

[0051] like Figure 2A As shown in the figure, this application embodiment also provides a cross-network communication method based on QR codes, applied to a communication sending end, including:

[0052] The communication data acquisition module is used to acquire communication data and process the communication data into packets to generate data packets.

[0053] A QR code array display module is used to convert the data packet into a corresponding QR code and display the QR code array on one or more interactive interfaces.

[0054] The QR code asynchronous update module updates one or more QR codes in the QR code array asynchronously based on changes in communication data.

[0055] The implementation methods of the system described above are merely illustrative. For example, the various functional modules, units, or subsystems within the system may or may not be physically separate, or they may or may not be physical units; that is, they may be located in the same place or distributed across multiple different systems and their subsystems or modules. Those skilled in the art can select some or all of the functional modules, units, or subsystems to achieve the objectives of the embodiments of this application according to actual needs. Those skilled in the art can understand and implement the above-described situations without any creative effort.

[0056] like Figure 3 As shown in the figure, this application embodiment also provides a cross-network communication method based on QR codes, applied to a communication receiving end, including:

[0057] Step T1: In response to the QR code array on the interactive interface of one or more communication transmitters, read the QR code information in the QR code array.

[0058] Step T2: Detect changes in the QR code array in real time and read one or more updated QR code information.

[0059] Step T3: Read the dividing marks between adjacent QR codes and obtain one or more QR codes from the QR code array.

[0060] Step T4: Based on the update counters of one or more QR codes obtained, determine whether the update counters are continuous. If the update counters are continuous, it is determined that the one or more QR codes after the update have not lost frames; or if the update counters are not continuous, it is determined that the one or more QR codes after the update have lost frames.

[0061] It is easy to understand that a communication receiver can establish a communication connection with one or more communication senders, and the interactive interface and communication sender provided in steps T1 to T4 can exist on different communication devices.

[0062] The technical solutions provided in steps T1 to T4 implement a QR code-based communication method at the communication receiver. The receiver can respond to the QR code array from the transmitter, detect changes in the QR codes in real time, and determine the integrity and continuity of the QR code information based on segmentation markers and update counters. By detecting changes in the QR code array in real time and reading the updated QR code information, real-time data synchronization is ensured, allowing the receiver to obtain the latest data promptly. Reading the segmentation markers between adjacent QR codes ensures the continuity and integrity of the QR code data. By checking the continuity of the update counters, this method can determine whether QR code information is lost, ensuring the reliability of data transmission. If frame loss is detected, the receiver can take appropriate error handling measures in a timely manner, such as requesting retransmission of the lost QR code information, thereby improving the robustness of communication data transmission, reducing the system burden, optimizing the use of system resources, and improving system performance. It is suitable for various dynamically changing data environments, especially in scenarios with frequent data updates, maintaining efficient data synchronization while optimizing user experience and system performance.

[0063] like Figure 3A As shown in the figure, this application embodiment also provides a cross-network communication system based on QR codes, applied to a communication receiving end, including:

[0064] The QR code array information reading module responds to the QR code array on the interactive interface of one or more communication transmitters and reads the QR code information in the QR code array.

[0065] The QR code array change detection module detects changes in the QR code array in real time and reads the updated information of one or more QR codes.

[0066] The QR code segmentation mark reading module reads the segmentation marks between adjacent QR codes and obtains one or more QR codes from the QR code array.

[0067] The QR code update counter acquisition module acquires the update counters of one or more QR codes, checks whether the update counters are continuous, and if the update counters are continuous, it is determined that the one or more QR codes after the update have not lost frames, or if the update counters are not continuous, it is determined that the one or more QR codes after the update have lost frames.

[0068] The implementation methods of the system described above are merely illustrative. For example, the various functional modules, units, or subsystems within the system may or may not be physically separate, or they may or may not be physical units; that is, they may be located in the same place or distributed across multiple different systems and their subsystems or modules. Those skilled in the art can select some or all of the functional modules, units, or subsystems to achieve the objectives of the embodiments of this application according to actual needs. Those skilled in the art can understand and implement the above-described situations without any creative effort.

[0069] like Figure 4 and Figure 5 As shown, in some scenarios involving device data acquisition, there are high-frequency, high-concurrency data transmission situations. In such cases, the processing efficiency of a single machine will limit the real-time performance of cross-network transmission. In the specific implementation of this application embodiment, multiple cross-network data transmission units are combined together, and the data transmission volume of each unit is reasonably allocated through a resource scheduler. A reasonable number of channels are configured in each unit to process each frame of data to realize the data transmission unit group working mechanism, which extends the data transmission bandwidth infinitely in the horizontal direction and solves the cross-network transmission bandwidth bottleneck problem.

[0070] exist Figure 4 In the application scenario shown, the specific steps of the cross-network communication method based on QR codes are as follows:

[0071] Determine whether it is in group working mode and whether it is the master node. If it is in group working mode, the master node starts the resource scheduler to perform resource computing and task allocation. If it is in single-machine mode, it performs data distribution.

[0072] The scheduling agent receives tasks, wakes up idle channels, and updates resource information;

[0073] After processing, the data is encoded into a QR code, and the QR code and number corresponding to each channel are updated asynchronously.

[0074] The image is scanned and the QR code is identified. It is then determined whether the QR code is updated. If so, subsequent operations are performed.

[0075] The QR code is decoded, the data is processed, and then output to the target location.

[0076] exist Figure 5 In the group working mode shown, the specific steps of the cross-network communication method based on QR codes are as follows: Group work begins; the number of nodes is checked to see if it is greater than 1. If the number of nodes is greater than 1, it is determined whether it is the master node. If it is the master node, the resource scheduler is started to perform resource scheduling, and then the scheduling agent receives the task. If the number of nodes is less than or equal to 1, data distribution is performed, and the scheduling agent receives the task. An idle channel is started, data verification is performed, QR code processing and display are performed, image scanning is performed, and then it is determined whether it has been updated. If the QR code has been updated, encoding and recognition are performed, data processing and output are performed, and the group work ends. Alternatively, if the QR code has not been updated, data processing and output are performed directly, and the group work ends.

[0077] like Figure 6 and Figure 7 As shown, some implementations have only one transmission unit for sending the QR code array. The initial configuration of this single transmission unit is as follows: the number of nodes is configured to 1 by default, and the master-slave node is configured to be the master node by default. The display screen needs to be configured with a reasonable number of nodes according to the screen size. The following figure shows a 3*4 layout, which can display 12 QR codes at the same time. At the same time, the thread pool is also set to a size of 12, with each thread corresponding to one channel. Each channel is responsible for generating and displaying the QR code in one display frame.

[0078] A transmission unit consists of seven functional modules: a data distribution module, a scheduling agent module, a data verification module, a QR code processing module, a QR code scanning module, a data processing module, and a data output module.

[0079] Data distribution module: In the case of a single transmission unit, there is no need to perform multi-device resource scheduling. Therefore, the resource scheduling module is only responsible for subscribing to data from the message middleware and distributing the data to the scheduling agent. First, it checks whether the task queue is full. If it is not full, it puts the data into the task queue.

[0080] The scheduling agent module is responsible for maintaining the number of channels, channel status, and task queue capacity. It manages channel and task-related information and provides the resource scheduler with data such as the current channel utilization rate and, if the utilization rate is below 100%, the task queue size. The scheduling agent receives data from the data distribution module. Each channel, when idle, automatically retrieves tasks from the task queue. If a task is retrieved, it begins processing and sets its status to busy. The scheduling agent updates this status. If no task is retrieved, it continues to wait until a new task becomes available.

[0081] Data Validation Module: After receiving a new task, each channel first verifies the validity of the data. The system maintains a set of data protocol templates, each with a unique number. The receiving end also has this set of templates, and the encoding on both sides is consistent. Data is matched against the templates. If the data contains all the template data, a match is found, and the template number is encapsulated into the data. If the match fails, the data is considered invalid and transmission is abandoned. Special characters in the template mark the positions of the data to be filled. The data marked at these positions is extracted from the received data, rearranged, and then transmitted. The advantage of this method is that only valid data is transmitted, reducing the amount of data transmitted. Furthermore, template matching and validation prevent the injection of invalid data. The final transmitted data is not a complete representation of the information, preventing information theft after QR code fraud and improving transmission security.

[0082] The QR code processing module takes the data extracted from the template marker in the previous step, adds special characters for isolation, and then sequentially combines them into a single data frame. If the data volume exceeds the transmission limit of a single QR code, the data is divided into multiple data blocks according to the carrying capacity of a single QR code. At this point, in addition to the data and target location information, information such as the block number, block ID, and block sequence number needs to be added to the data so that the receiving end can assemble the segmented data into a complete data segment based on this information. After segmentation, the data is encoded into a QR code, and then the QR code is output to the interactive interface for display. The number of channels is set during system initialization, and each channel has a sequence number. The QR code display area on the screen also has a corresponding sequence number. Therefore, when the QR code is generated, the channel notifies the corresponding display area to refresh the QR code. Each channel is equipped with a counter that counts from 0 to 9999, and resets to zero after reaching the maximum value. Therefore, each time the QR code is refreshed, the count code is also refreshed on the border of the display area. The QR code is displayed as shown in the figure. The receiving end can determine whether the QR code has been updated and whether subsequent operations such as decoding are needed by comparing the current code with the previous code data, thereby reducing the load on the receiving end. At the same time, by comparing the current code with the previous code to see if it is continuous, it can determine whether there is any missing frame data and the amount of missing frames, so that the receiving end can adjust the frequency of receiving and reading data to reduce the missing frame rate.

[0083] QR code scanning module: The scanning module uses image processing technology to locate the start position of the QR code display area based on the ┏ icon in the image, the corresponding end position based on the ┚ icon, and to identify the code following ┏. It records the code and compares it with the previous code. If they are different, it means the QR code has been refreshed and further processing is performed. If they are the same, it means the QR code has not changed and no processing is performed. If the codes are continuous, it means there are no frame drops. If they are not continuous, it means there are frame drops, and the channel will adjust the reading frequency. This is because if the reading frequency is too high, the hardware performance cannot keep up, which may cause some decoding errors and other problems. A maximum frequency is calculated based on the device's full load. Initially, the frequency is set to be lower than this frequency, and it will be automatically adjusted according to the usage.

[0084] The QR code scanning module disclosed herein can be applied to QR code-based cross-network communication devices. To implement the QR code-based cross-network communication method, the corresponding cross-network communication device can take various forms. For example, the cross-network communication device can be a communication transmitting terminal, which has one or more interactive interfaces for displaying a QR code array. The communication transmitting terminal detects changes in communication data in real time and updates one or more QR codes in the QR code array asynchronously, and / or:

[0085] The cross-network communication device is a communication receiving terminal. The communication receiving terminal responds to the QR code array on the interactive interface of the communication sending terminal, reads the QR code information in the QR code array on the interactive interface, and detects changes in the QR code array on the interactive interface of the communication sending terminal in real time, and reads one or more updated QR code information.

[0086] The QR code-based cross-network communication device disclosed herein enables data transmission between a communication sending terminal and a communication receiving terminal. The sending terminal is responsible for generating and updating the QR code array, while the receiving terminal is responsible for reading and recognizing these QR codes to obtain information. The asynchronous communication between the sending and receiving terminals improves the efficiency and flexibility of QR code-based data transmission, while ensuring data real-time performance and accuracy. Through asynchronous communication, the sending terminal can send data without waiting for a response from the receiving terminal, improving communication efficiency. The sending terminal can detect data changes in real time and update the QR code array, ensuring the receiving terminal receives the latest data information. The receiving terminal can read the information in the QR code array and detect changes in real time, ensuring data integrity and accuracy. The asynchronous QR code update mechanism also reduces system resource consumption, optimizes resource allocation, and improves system performance.

[0087] exist Figure 7In the QR code array, adjacent QR codes are divided into regions by segmentation markers, and an update counter is set in the QR code array. The segmentation markers are configured as identification icons. For example, a QR code can be identified between identification icons ┏ and ┚. Of course, the segmentation markers are not limited to identification icons ┏ and ┚. Any segmentation marker that can divide regions using image recognition technology can be applied to the embodiments of this application. For example, it can be from identification icon T to identification icon T, which can also achieve positioning in the QR code array. For example, Figure 7 In the code, 0018 is the update counter. The update counter could have been 0017 in the previous moment. The change from 0017 to 0018 represents a continuous change in the update counter, indicating that no frame loss occurred during the QR code update process. In the next moment, the update counter could be 0019, indicating that no frame loss also occurred when the QR code updated from its current state to a new state. However, if the update counter changes discontinuously from 0018 to 0020 or 0021, it indicates that frame loss occurred during the update process, requiring a re-request to send data. Figure 7 The example shows the segmentation marker and update counter for the first row of QR codes. In other embodiments, segmentation markers and update counters are set for all QR codes in the QR code array. Figure 7 This is merely an illustrative example for the convenience of understanding the technical solution and does not imply that the interactive interface of the communication sending end is limited to a specific QR code array format or segmentation markers and update counters.

[0088] Data Processing Module: This module assembles the data decoded from the QR code to restore the data sent as input. If it is segmented data, it needs to assemble the data into a complete data segment based on information such as the number of blocks, block ID, and block sequence number. Blocks with the same ID are grouped together, and then combined into complete data based on the number of blocks and block sequence number. After assembly, the template number is parsed out, and the corresponding template is matched in the maintained template set according to the template number. The data is then split into n data items in order based on special characters. The data items are then filled into the template in order according to the special character placeholders, and finally, the complete protocol data is obtained.

[0089] Data output module: This module takes the raw protocol data and sends it to the corresponding topic based on the target location information, so that the information system that is subsequently connected can subscribe to complete the subsequent business.

[0090] like Figure 8As shown, based on any specific implementation of the embodiments of this application, this application also provides a cross-network communication method based on QR codes applied to a communication transmitter and a communication receiver. The cross-network communication method of this embodiment has multiple execution entities, including at least a communication transmitter and a communication receiver. The method steps include:

[0091] Step Q1: The communication sending end acquires communication data and performs packet processing on the communication data to generate data packets.

[0092] In step Q2, the communication sending end converts the data packet into a corresponding QR code and displays the QR code array on one or more interactive interfaces.

[0093] In step Q3, the communication receiving end responds to the QR code array on one or more interactive interfaces provided by the communication sending end and reads the QR code information in the QR code array.

[0094] In step Q4, the communication sending end updates one or more QR codes in the QR code array in an asynchronous communication manner according to the changes in the communication data.

[0095] In step Q5, the communication receiving end responds to the QR code array on one or more interactive interfaces of the communication sending end by reading the QR code information in the QR code array.

[0096] In step Q6, the communication receiver detects changes in the QR code array in real time and reads one or more updated QR code information.

[0097] The technical solutions provided in steps Q1 to Q6 involve two main execution entities: a communication sender and a communication receiver. Through steps such as packet processing, QR code conversion, asynchronous updates, and real-time detection, efficient and real-time transmission of communication data is achieved. The communication sender processes the communication data into packets, enabling the data to adapt to the storage and transmission limitations of QR codes. The communication sender updates the QR code array asynchronously based on data changes, reducing communication latency and improving the real-time performance of data transmission. Real-time detection of changes in the QR code array and updated QR code information ensures that the received data is up-to-date, enhancing the reliability of data transmission. It supports communication across physically isolated network environments, making data transmission unrestricted by specific network environments and suitable for specific application scenarios.

[0098] like Figure 9 As shown, this application embodiment, in addition to providing a cross-network communication method, system, and device based on QR codes, also provides corresponding electronic devices and computer program products:

[0099] An electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to cause the at least one processor to perform a cross-network communication method based on a QR code.

[0100] A computer program product includes a computer program that, when executed by a processor, implements a cross-network communication method based on a QR code.

[0101] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 9 A block diagram is shown that is suitable for implementing an exemplary electronic device according to embodiments of the present application. Figure 9The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this application. This electronic device can typically be a device within an electronic product operating on the QR code-based cross-network communication method described above. The electronic device 500 is represented as a general-purpose computing device. Components of the electronic device 500 may include, but are not limited to: one or more processing units or processors 516, a memory 528, and a bus 518 connecting different system components (including the memory 528 and the processor 516). The bus 518 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus. The electronic device 500 typically includes various computer system readable media. These media can be any available media accessible to the electronic device 500, including volatile and non-volatile media, removable and non-removable media. Memory 528 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 530 and / or cache memory 532. Electronic device 500 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 534 may be used to read and write non-removable, non-volatile magnetic media (not shown in the figure, commonly referred to as "hard disk drives"). Although not shown in the figure, storage system 534 may provide disk drives for reading and writing to removable non-volatile disks (e.g., floppy disks, portable hard disks, hot-swappable storage media) and optical disk drives for reading and writing to removable non-volatile optical disks (e.g., CD-ROMs, DVD-ROMs, or other optical media). In these cases, each drive may be connected to bus 518 via one or more data media interfaces. Memory 528 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various specific embodiments of the present application. A program / utility 540 having a set (at least one) of program modules 542 may be stored, for example, in memory 528. Such program modules 542 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 542 typically perform the functions and / or methods described in the embodiments of this application.Electronic device 500 can also communicate with one or more external devices 514 (e.g., keyboard, pointing device, display 524, etc.), and with one or more devices that enable a user to interact with electronic device 500, and / or with any device that enables electronic device 500 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 522. Furthermore, electronic device 500 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 520. Network adapter 520 communicates with other modules of electronic device 500 via bus 518. It should be understood that, although not shown in the figures, those skilled in the art can use other hardware and / or software modules in conjunction with electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems. The processor 516 executes various functional applications and data processing by running programs stored in the memory 528, such as implementing the methods provided in any one or more embodiments of the present application.

[0102] In the description of the embodiments in this application, the terms "an embodiment," "example," "specific example," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0103] All features, or steps in all methods or processes disclosed in this application's embodiment specification, may be combined in any way, except for mutually exclusive features and / or steps. Any feature disclosed in this specification, unless specifically stated otherwise, may be replaced by other equivalent or similar features. That is, unless specifically stated otherwise, each feature is merely one example of a series of equivalent or similar features. Throughout the specification, the same reference numerals indicate the same elements.

[0104] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the corresponding claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the corresponding claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0105] Although embodiments of the present application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the embodiments of the present application, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A cross-network communication method based on QR codes, applied at the communication sending end, characterized in that, include: The communication data is acquired and then processed into packets to generate data packets. Specifically, the communication data is acquired through the subscription function of the message middleware at the communication sending end. The message middleware is used to transmit messages between different applications or services. If multiple receivers have subscribed to the same topic, the message middleware will send the messages evenly to all receivers through a load balancing mechanism. The data packet is converted into a corresponding QR code, and the QR code array is displayed on one or more interactive interfaces; Based on changes in communication data, one or more QR codes in the QR code array are updated asynchronously, further including: Detect the data volume of one or more QR codes. If the data volume does not exceed the data transmission limit of a single QR code, generate a QR code, or: If the amount of data exceeds the data transmission limit of a single QR code, the data is divided into multiple data blocks and multiple QR codes corresponding to the multiple data blocks are generated. In the QR code array, adjacent QR codes are divided into regions by a dividing marker, and an update counter is set in the QR code array, specifically: Determine whether it is in group working mode and whether it is the master node. If it is in group working mode, the master node starts the resource scheduler to perform resource computing and task allocation. If it is in single-machine mode, it performs data distribution. The scheduling agent receives tasks, wakes up idle channels, and updates resource information; After processing, the data is encoded into a QR code, and the QR code and number corresponding to each channel are updated asynchronously. The image is scanned and the QR code encoding is recognized. It is then determined whether the QR code is updated. If so, subsequent operations are performed, specifically: The QR code is decoded, the data is processed, and then output to the target location, specifically as follows: The number of channels is set during system initialization. Each channel has a serial number, and the QR code display area on the screen also has a corresponding serial number. When the QR code is generated, the channel notifies the corresponding display area to refresh the QR code. Each channel is equipped with a counter, and the counter code is also refreshed on the border of the display area every time the QR code is refreshed. The receiving end compares the counting code with the previous encoded data to determine whether the QR code has been updated and whether decoding is required. During the process of updating the QR code array, one or more QR codes in the QR code array are updated to new QR codes, while the remaining QR codes remain unchanged.

2. A cross-network communication method based on QR codes, applied to the communication interaction between a communication sender and a communication receiver, characterized in that, include: The communication sending end obtains communication data and processes the communication data into packets to generate data packets. Specifically, the communication data is obtained through the subscription function of the message middleware at the communication sending end. The message middleware is used to transmit messages between different applications or services. If multiple receivers have subscribed to the same topic, the message middleware will send the message evenly to all receivers through a load balancing mechanism. The communication sending end converts the data packet into a corresponding QR code and displays the QR code array on one or more interactive interfaces; The communication receiving end responds to the QR code array on one or more interactive interfaces provided by the communication sending end and reads the QR code information in the QR code array; The communication transmitter updates one or more QR codes in the QR code array asynchronously based on changes in communication data, further including: Detect the data volume of one or more QR codes. If the data volume does not exceed the data transmission limit of a single QR code, generate a QR code, or: If the amount of data exceeds the data transmission limit of a single QR code, the data is divided into multiple data blocks and multiple QR codes corresponding to the multiple data blocks are generated. In the QR code array, adjacent QR codes are divided into regions by a dividing marker, and an update counter is set in the QR code array, specifically: Determine whether it is in group working mode and whether it is the master node. If it is in group working mode, the master node starts the resource scheduler to perform resource computing and task allocation. If it is in single-machine mode, it performs data distribution. The scheduling agent receives tasks, wakes up idle channels, and updates resource information; After processing, the data is encoded into a QR code, and the QR code and number corresponding to each channel are updated asynchronously. The image is scanned and the QR code encoding is recognized. It is then determined whether the QR code is updated. If so, subsequent operations are performed, specifically: The QR code is decoded, the data is processed, and then output to the target location, specifically as follows: The number of channels is set during system initialization. Each channel has a serial number, and the QR code display area on the screen also has a corresponding serial number. When the QR code is generated, the channel notifies the corresponding display area to refresh the QR code. Each channel is equipped with a counter, and the counter code is also refreshed on the border of the display area every time the QR code is refreshed. The receiving end compares the counting code with the previous encoded data to determine whether the QR code has been updated and whether decoding is required. The communication receiving end responds to the QR code array on one or more interactive interfaces of the communication sending end and reads the QR code information in the QR code array; The communication receiver detects changes in the QR code array in real time and reads one or more updated QR code information. During the process of updating the QR code array, one or more QR codes in the QR code array are updated to new QR codes, while the remaining QR codes remain unchanged.

3. A cross-network communication device based on QR codes, characterized in that, The cross-network communication device is a communication transmitting terminal, which has one or more interactive interfaces for displaying a QR code array. The communication transmitting terminal detects changes in communication data in real time and updates one or more QR codes in the QR code array in an asynchronous communication manner, further including: The communication data is acquired and then processed into packets to generate data packets. Specifically, the communication data is acquired through the subscription function of the message middleware at the communication sending end. The message middleware is used to transmit messages between different applications or services. If multiple receivers have subscribed to the same topic, the message middleware will send the messages evenly to all receivers through a load balancing mechanism. Detect the data volume of one or more QR codes. If the data volume does not exceed the data transmission limit of a single QR code, generate a QR code, or: If the amount of data exceeds the data transmission limit of a single QR code, the data is divided into multiple data blocks and multiple QR codes corresponding to the multiple data blocks are generated. In the QR code array, adjacent QR codes are divided into regions by a dividing marker, and an update counter is set in the QR code array, specifically: Determine whether it is in group working mode and whether it is the master node. If it is in group working mode, the master node starts the resource scheduler to perform resource computing and task allocation. If it is in single-machine mode, it performs data distribution. The scheduling agent receives tasks, wakes up idle channels, and updates resource information; After processing, the data is encoded into a QR code, and the QR code and number corresponding to each channel are updated asynchronously. The image is scanned and the QR code encoding is recognized. It is then determined whether the QR code is updated. If so, subsequent operations are performed, specifically: The QR code is decoded, the data is processed, and then output to the target location, specifically as follows: The number of channels is set during system initialization. Each channel has a serial number, and the QR code display area on the screen also has a corresponding serial number. When the QR code is generated, the channel notifies the corresponding display area to refresh the QR code. Each channel is equipped with a counter, and the counter code is also refreshed on the border of the display area every time the QR code is refreshed. The receiving end compares the counting code with the previous encoded data to determine whether the QR code has been updated and whether decoding is required. During the process of updating the QR code array, one or more QR codes in the QR code array are updated to new QR codes, while the remaining QR codes remain unchanged.

4. An electronic device, characterized in that, The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to cause the at least one processor to perform the method according to any one of claims 1 to 2.

5. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1 to 2.