Method for establishing real-time information service through two-dimensional code

A real-time information service is established through QR codes. The server receives and processes the client's connection request, establishes the connection in seconds, and performs information display and noise reduction. This solves the real-time and consistency issues of multi-terminal synchronous communication and improves user experience and communication efficiency.

CN120658699APending Publication Date: 2025-09-16SHENZHEN FULIANXIN MICRO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511123716.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-12
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

How to achieve real-time and efficient communication across multiple terminals simultaneously, especially maintaining real-time and consistency of communication between different devices, and improving the user's communication experience.

Method used

A method for establishing real-time information services through QR codes. The server receives connection requests from the client, establishes connections in seconds, processes requests through threads, sends QR code annotation information and reply information, and combines noise reduction processing and various forms of information feedback to achieve visual display and real-time transmission of information.

Benefits of technology

It realizes real-time and efficient communication of multiple terminals simultaneously, improves the convenience of connection and user experience, ensures the real-time transmission and synchronization of information, and reduces operating costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120658699A_ABST
    Figure CN120658699A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, in particular to a method for establishing a real-time information service through a two-dimensional code, and the method comprises the steps that a server side receives connection requests sent by a plurality of clients, the connection requests are sent after code scanning assemblies integrated by the clients recognize two-dimensional code information, and the clients do not need to install code scanning software; distributing a thread for each client to process a connection request, and establishing second-level connection with the client; after the connection is successful, two-dimensional code labeling information is sent to the client, so that the client visually displays the two-dimensional code labeling information, and the two-dimensional code labeling information comprises voice, characters, pictures, videos and position related information; receiving a communication request sent by a client, performing noise reduction processing on a communication signal carried in the communication request, and generating reply information by retrieving the database according to the communication signal after noise reduction; and feeding back the reply information to the client through the corresponding thread. According to the invention, real-time efficient communication of multi-terminal synchronization can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method for establishing a real-time information service through a QR code. Background Art

[0002] With the rapid development of mobile Internet, users' demand for multi-terminal communication is increasing. Users not only want to seamlessly switch between multiple devices such as mobile phones, tablets, and computers, but also want to maintain real-time and consistent communication between different devices.

[0003] Multi-terminal synchronization is an essential feature of instant messaging systems. Through technological innovation and optimization, it can provide seamless switching and a consistent experience. Despite challenges, as technology advances, multi-terminal synchronization will become more intelligent, efficient, and secure, providing users with a more convenient and effective communication experience. Therefore, achieving real-time and efficient communication with multi-terminal synchronization has become a key research topic in current communications technology. Summary of the Invention

[0004] Based on this, it is necessary to provide a method for establishing a real-time information service through a QR code that can achieve real-time and efficient communication in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for establishing a real-time information service through a QR code, the method comprising: The server receives connection requests sent by multiple clients, wherein the connection requests are sent after the code scanning component integrated in the client recognizes the QR code information; Allocate a thread to each client to process the connection request and establish a connection with the client in seconds; After the connection is successful, the QR code annotation information is sent to the client, so that the client can visually display the QR code annotation information. The QR code annotation information refers to the content carried and displayed by the QR code, and the QR code annotation information includes voice, text, pictures, videos and location-related information; receiving a communication request sent by the client, performing noise reduction processing on a communication signal carried in the communication request, and automatically generating a reply message or manually generating a reply message by searching a database based on the noise-reduced communication signal; The reply information is fed back to the client through the corresponding thread.

[0006] In one embodiment, after receiving the communication request sent by the client and performing noise reduction processing on the communication signal carried in the communication request, the method further includes: Analyze the noise-reduced communication signal to obtain the communication content; Sending the communication content to a customer service staff terminal in multiple forms, where there are multiple customer service staff terminals; Acquire reply information corresponding to the communication content from the customer service personnel terminal.

[0007] In one embodiment, sending the communication content to the customer service personnel terminal in multiple forms further includes: According to the preset task allocation mode, the communication content is sent to the corresponding customer service personnel terminal in various forms. The task allocation mode includes grabbing orders, rotating orders and forced dispatch.

[0008] In one embodiment, before obtaining the reply information corresponding to the communication content from the customer service personnel terminal, the method further includes: Get the device information for scanning the QR code; The device information is sent to the customer service terminal to provide the client with a faster communication service.

[0009] In one embodiment, allocating a thread to each client to process the connection request and establishing a connection with the client in seconds includes: Allocate a corresponding thread to each client through a scheduling algorithm, including round-robin, weighted round-robin, and minimum number of connections; Processing the connection request through the thread and establishing a connection with the client in seconds; A communication directory is generated, wherein the communication directory is used to record communication data.

[0010] In one embodiment, processing the connection request by the thread and establishing a connection with the client in seconds includes: The connection request is processed by the thread, the server generates an asymmetric user public and private key pair, and sends the user public key to the client through the thread in the form of a certificate; Obtaining an encrypted symmetric key sent by the client through the thread, where the encrypted symmetric key is obtained by randomly generating a symmetric key by the client and encrypting the random symmetric key with the user public key; The symmetric key is decrypted using the user's private key, and the authentication information is encrypted using the symmetric key and then sent to the client through the thread, so that the client decrypts the authentication information to establish a connection.

[0011] In one embodiment, the receiving the communication request sent by the client and performing noise reduction processing on the communication signal carried in the communication request includes: receiving a communication request sent by the client; A convolution operation is performed on the communication signal carried in the communication request by using a convolution sliding average filtering algorithm to calculate a moving average of the communication signal, thereby smoothing the communication signal to reduce noise.

[0012] In a second aspect, the present application also provides a device for establishing a real-time information service through a QR code. The device comprises: A connection request module is used for receiving connection requests from multiple clients on the server side, wherein the connection requests are sent after the code scanning component integrated in the client recognizes the QR code information; A connection establishment module is used to assign a thread to each client to process the connection request and establish a connection with the client in seconds; The annotation information display module is used to send the QR code annotation information to the client after the connection is successful, so that the client can visually display the QR code annotation information. The QR code annotation information refers to the content carried and displayed by the QR code; An information reply module is configured to receive a communication request sent by the client, perform noise reduction processing on the communication signal carried in the communication request, and generate a reply message by searching a database based on the noise-reduced communication signal; The information feedback module is used to feed back the reply information to the client through the corresponding thread.

[0013] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are performed: The server receives connection requests sent by multiple clients, wherein the connection requests are sent after the code scanning component integrated in the client recognizes the QR code information; Allocate a thread to each client to process the connection request and establish a connection with the client in seconds; After the connection is successful, the QR code annotation information is sent to the client, so that the client can visually display the QR code annotation information. The QR code annotation information refers to the content carried and displayed by the QR code; receiving a communication request sent by the client, performing noise reduction processing on a communication signal carried in the communication request, and generating a reply message by searching a database based on the noise-reduced communication signal; The reply information is fed back to the client through the corresponding thread.

[0014] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following steps: The server receives connection requests sent by multiple clients, wherein the connection requests are sent after the code scanning component integrated in the client recognizes the QR code information; Allocate a thread to each client to process the connection request and establish a connection with the client in seconds; After the connection is successful, the QR code annotation information is sent to the client, so that the client can visually display the QR code annotation information. The QR code annotation information refers to the content carried and displayed by the QR code; receiving a communication request sent by the client, performing noise reduction processing on a communication signal carried in the communication request, and generating a reply message by searching a database based on the noise-reduced communication signal; The reply information is fed back to the client through the corresponding thread.

[0015] In summary, this application has the following beneficial technical effects: It adopts a client-server architecture. The server receives connection requests from multiple clients and allocates threads to each client, so that the server supports simultaneous request sending by multiple users and multiple terminals, realizes one-to-many and many-to-many instant services, never busy lines, and replies in seconds, thereby improving efficiency and reducing operating costs. After a successful connection, the QR code annotation information is sent to the client to realize the visual display of information, improve the convenience of connection, and enhance the user experience. After receiving the communication request sent by the client, the reply information is fed back to the client through the corresponding thread, ensuring the real-time transmission and synchronization of information, thereby realizing real-time and efficient communication of multiple terminals. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A flowchart of a method for establishing a real-time information service through a QR code in one embodiment; Figure 2 This is a schematic diagram of the communication security management process between the client and the server; Figure 3 A structural block diagram of an apparatus for establishing a real-time information service through a QR code in one embodiment; Figure 4 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0017] An embodiment of the present invention provides a method for establishing a real-time information service through a QR code.

[0018] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0019] In the description of the embodiments disclosed herein, the term "including" and similar terms should be understood as open inclusion, i.e., "including but not limited to." The term "based on" should be understood as "based, at least in part, on." The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment." The terms "first," "second," etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0020] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 In one embodiment of the present invention, a method for establishing a real-time information service through a QR code includes: S100: The server receives connection requests sent by multiple clients.

[0021] Specifically, a system centered around a "QR Code Service Center" will be constructed. The QR Code Service Center manages QR code-related information and coordinates interactions between the client and server. The client will provide diverse access points and integrate a code scanning component that can quickly and accurately identify QR code information. The client can scan QR codes based on H5 communication pages, mini-program pages, and APP pages. After identifying the QR code, the client sends a connection request to the server, which then receives the connection request from the client. The server can receive connection requests from multiple clients. Furthermore, the system will have backend management capabilities for QR codes, including setting the placement of the QR code and entering device information, product information, geographic information, character profiles, and other content to enrich the information resources associated with the QR code. Optionally, the code scanning component integrated into the client can identify the QR code information through the YOLO model. Specifically, the bounding box of the QR code is first detected to locate the position of the QR code. After YOLO detects the bounding box of the QR code, the four corner points of the QR code are detected. The method for detecting the corner points is to determine the optimal position of the fourth corner of the QR code by analyzing the direction of the horizontal and vertical edges and maximizing the standard deviation of the horizontal and vertical projections of these edges. The corner points can also be determined based on the YOLO corner regression loss function. After detecting the four corner points, the QR code is perspective transformed and mapped to a standard coordinate system to obtain a corrected QR code. The corrected image is used for decoding the QR code to improve the recognition accuracy. The core idea of ​​perspective transformation is to map the tilted QR code image into a square binary matrix to restore its original shape. Perspective transformation can not only correct the tilt of the QR code, but also correct other geometric distortions in the image, such as rotation and scaling.

[0022] S200: Allocate a thread to each client to process the connection request, and establish a connection with the client in seconds.

[0023] Specifically, the server first needs to create a listening port. While listening on the port, the server receives connection requests from clients. Upon receiving a connection request from a client, the server allocates a thread to handle it. The thread is responsible for communicating with the client, including receiving and sending data. After processing the connection request, the thread establishes a connection with the client in seconds. Furthermore, after processing the connection request from the client, the thread closes the connection to free up resources. Furthermore, if the number of connection requests received by the server exceeds the number of server threads, a new thread is created to handle the connection requests.

[0024] In this embodiment, multithreading can significantly improve the concurrent processing capability and response speed of the server, enabling the server to process requests from multiple clients simultaneously.

[0025] S300: After the connection is successful, the QR code annotation information is sent to the client, so that the client can visually display the QR code annotation information.

[0026] Among them, QR code marked information refers to the content carried and displayed by the QR code, including access location information, device information, product information, geographic information, etc.

[0027] Specifically, after a successful connection is established between the server and client, the information contained in the QR code is sent to the client. For example, during a data download, after a user scans a QR code through the client, a download request is sent to the server. This request includes the unique serial number contained in the QR code. The server then searches for the corresponding download data based on the unique serial number and sends the download data to the client through the client's corresponding thread. After receiving the QR code annotation information, the client needs to visualize it. Furthermore, users can access product introductions, attraction introductions, and personal introductions in text, images, videos, and audio formats through the client's information viewing function. Furthermore, the client can scan QR codes without installing any software, allowing the server to quickly and easily (in seconds) send images, text, audio, video, and location-related information to the client. For example, the QR code can be scanned through a mobile phone's native entry point (such as the scan function) to quickly display the QR code annotation information on the phone.

[0028] In this embodiment, after receiving the QR code annotation information, the client displays it visually, which allows the user to intuitively see the information in the QR code, and the user can confirm and operate more conveniently, thereby improving the overall user experience.

[0029] S400, receiving a communication request sent by a client, performing noise reduction processing on a communication signal carried in the communication request, and automatically generating a reply message or manually generating a reply message by searching a database based on the noise-reduced communication signal.

[0030] Specifically, when a client needs to communicate with a server, it sends a communication request to the server. However, the communication signal may be affected by environmental noise, electromagnetic interference, and other factors, resulting in a decrease in signal quality. Therefore, upon receiving the client's communication request, the server first performs noise reduction on the communication signal carried in the request to improve signal quality and reliability. The server then performs further processing on the noise-reduced signal, extracting key features such as frequency, amplitude, and phase for subsequent recognition or analysis. Digital signal processing techniques (such as wavelet transform and spectral subtraction) are then used to further enhance the signal's clarity and stability. The processed signal is then matched against records in a database to determine the specific content of the user's request and generate a response message, which can take the form of a file, image, video, voice, or text.

[0031] S500: Feedback the reply information to the client through the corresponding thread.

[0032] In one embodiment, after receiving a communication request sent by a client and performing noise reduction processing on a communication signal carried in the communication request, the method further includes: The noise-reduced communication signal is parsed to obtain the communication content; the communication content is sent to the customer service personnel terminal in various forms, and there are multiple customer service personnel terminals; and the reply information corresponding to the communication content is obtained from the customer service personnel terminal.

[0033] Specifically, a client sends a communication request to a server. Multiple clients can send communication requests to the server simultaneously. After receiving the communication signal, the server first performs noise reduction on it and then analyzes and identifies the noise-reduced signal to obtain the communication content, which can be questions sent by the user through the client. The server then transmits the communication content to one or more customer service terminals in various formats. These terminals can be PCs, mobile devices (mobile phones, landlines, intercoms, dedicated communication devices, etc.), and the communication content can be sent in the form of voice or text. The customer service terminal can also receive communication content even when the screen is black, enabling instant communication with the client. For example, if the screen of the customer service terminal is black, a user can send a voice message through the terminal, and the customer service terminal will also receive and play the voice message in real time. Finally, the customer service representative responds to the communication content through any terminal and sends the response to the server. The server then feeds the response back to the client, enabling one-to-many, many-to-one, or many-to-many interaction. For example, when an abnormality occurs in the equipment, if the customer service phone is busy or the problem cannot be explained clearly, the client can scan the QR code on the device to establish a connection with the after-sales server, input voice in the client, and send the problem to the technician terminal. After the technician receives the problem at the terminal, he can remotely guide the user to eliminate the abnormality through the terminal, and solve the after-sales problem with one code. For example, when the license plate number cannot be identified when a vehicle is traveling in the parking lot, and there is no one at the booth and no property phone, you can scan the QR code of the parking lot and send the problem to the property staff terminal through the client voice. The property staff terminal will automatically broadcast the report, and the property staff will respond to the user in time and notify the relevant personnel through the terminal to release the vehicle. For example, if a user wants to know product information, he can scan the QR code on the official website through the client and send the product he wants to know to the staff backend through voice or pictures. The staff will send the product-related information and function introduction to the client through the backend.

[0034] In this embodiment, the communication content is sent to multiple customer service personnel terminals in various forms, which can ensure that customer service personnel can receive the latest messages on any device, thereby improving the continuity and response speed of the service, while avoiding the trouble of customer service personnel switching between different terminals, and improving the coherence and consistency of communication.

[0035] In one embodiment, sending the communication content to the customer service personnel terminal in multiple forms further includes: According to the preset task allocation mode, the communication content is sent to the corresponding customer service personnel terminal in various forms. The task allocation mode includes grabbing orders, rotating orders and forced dispatch.

[0036] Specifically, the system supports task allocation modes such as grabbing orders, rotating orders, and forced dispatch. According to the task allocation mode, communication requests are assigned to customer service personnel terminals. Customer service personnel can reply to users in various forms such as voice, text, pictures, and videos through PCs and mobile terminals (mobile phones, tablets, dedicated communication equipment, etc.) based on the communication content analyzed after noise reduction of the communication signal.

[0037] In one embodiment, before obtaining the reply information corresponding to the communication content from the customer service personnel terminal, the method further includes: Obtain product information scanned by the QR code; send the product information to the customer service terminal so that the customer service terminal can visually display the product information to provide the client with faster communication services.

[0038] Specifically, after a user scans the QR code on a product, the server queries the corresponding product information based on the QR code information. This product information includes the product name, model, and so on. When a user sends a communication request through the client, the server sends the communication content to the customer service terminal along with the product information. The customer service terminal then visually displays the product information. Customer service personnel can view the product information and reply to messages as needed, quickly responding to user inquiries and providing more efficient service. For example, after a user scans the QR code on a product called "Amulet," when the user sends a message through the client asking "How to use this product," the name and model of the "Amulet" will be displayed on the customer service terminal. The customer service representative will then quickly reply to the user with instructions on how to use the product based on the product information.

[0039] In this embodiment, product information is sent to a customer service staff terminal and visualized, so that the customer service staff can communicate with the user in real time through the terminal, quickly respond to the user's query, and improve service efficiency.

[0040] In one embodiment, each client is assigned a thread to process a connection request, and establishing a connection with the client in seconds includes: A corresponding thread is assigned to each client through a scheduling algorithm, including polling, weighted polling, and minimum number of connections. Connection requests are processed through threads, and connections are established with clients in seconds. A communication directory is generated, which is used to record communication data.

[0041] Specifically, the scheduling algorithm is primarily responsible for properly allocating requests to different threads. Scheduling algorithms include round-robin, weighted round-robin, and minimum connections. The round-robin algorithm assigns requests to each thread sequentially; the weighted round-robin algorithm distributes requests based on thread weight, with threads with higher weights taking on more tasks; and the minimum connection algorithm allocates tasks based on the thread's current number of connections, assigning tasks to the thread with the fewest connections to achieve load balancing. After receiving a connection request, the server uses the user-selected scheduling algorithm to assign a corresponding thread to each client to handle the connection request. Connections between the threads and the client are established in seconds. Once a connection is established, a communication directory is generated to record communication data.

[0042] In this embodiment, the scheduling algorithm can improve the response speed, stability and utilization of the server, providing a more efficient and reliable load balancing solution for different business scenarios.

[0043] In one embodiment, processing a connection request through a thread and establishing a connection with a client in seconds includes: The connection request is processed through a thread. The server generates an asymmetric user public-private key pair and sends the user public key to the client through the thread in the form of a certificate. The encrypted symmetric key sent by the client through the thread is obtained. The encrypted symmetric key is a symmetric key randomly generated by the client and encrypted with the user's public key. The symmetric key is decrypted using the user's private key, and the authentication information is encrypted with the symmetric key and sent to the client through the thread, so that the client can decrypt the authentication information to establish a connection.

[0044] Specifically, when the server establishes a connection with the client, the transmitted data needs to be encrypted to ensure data security. Figure 2 As shown, the client requests a connection from the server, the server generates an asymmetric user public-private key pair, and sends the user public key to the client in the form of a certificate through a thread; after the client obtains the user public key certificate, it randomly generates a symmetric key for data encryption in subsequent transmission; the client uses the user public key provided in the user public key certificate to encrypt the random symmetric key; the client sends the encrypted symmetric key to the server through a thread, and after receiving the ciphertext sent by the client, the server uses the user private key to decrypt and obtain the symmetric key, and uses the symmetric key to encrypt the authentication information and send it to the client through a thread; the client decrypts the authentication information and establishes a connection with the server.

[0045] In this embodiment, asymmetric encryption and symmetric encryption are combined to achieve secure and efficient data transmission.

[0046] In one embodiment, receiving a communication request sent by a client and performing noise reduction processing on a communication signal carried in the communication request includes: Receive the communication request sent by the client; perform convolution operation on the communication signal carried in the communication request through the convolution sliding average filtering algorithm, calculate the moving average of the communication signal, and thus smooth the communication signal to reduce noise.

[0047] Specifically, a convolution sliding average filtering algorithm is used to reduce noise in the communication signal carried in the communication request. Its core concept is to use convolution to calculate the moving average of the signal, thereby smoothing the signal and removing noise. This method defines a sliding window (i.e., the filter window) and a corresponding convolution kernel, and then performs a convolution operation on the signal to preserve the overall trend of the signal and effectively suppress noise. Specifically, the size of the filter window must be determined, specifically by selecting a fixed-length queue to store the most recent sampled data. The convolution kernel is the weighting coefficient used to calculate the filtering result. For a sliding average filter, an all-ones kernel with the same length as the filter window is typically used. The communication signal is then convolved with the defined convolution kernel. The convolution operation slides the convolution kernel to each position in the communication signal and calculates the weighted sum of the data at that position and within the surrounding window. After each convolution operation, the filter window is moved forward one position, and the above steps are repeated until all sample points have been processed.

[0048] In this embodiment, a convolutional moving average filtering algorithm is used to smooth the communication signal, effectively removing periodic and high-frequency noise, thereby improving the signal-to-noise ratio. While reducing noise, this algorithm also effectively preserves the overall trend of the signal. Furthermore, the computational process of the moving average filtering algorithm is relatively simple, requiring less computation and achieving faster computation speed than other real-time signal processing methods.

[0049] In one embodiment, Figure 3 As shown, a device for establishing a real-time information service through a QR code is provided, comprising: a connection request module 10, a connection establishment module 20, a marked information display module 30, an information reply module 40 and an information feedback module 50, wherein: The connection request module 10 is used for receiving connection requests from multiple clients on the server side. The connection request is sent after the QR code information is recognized by the code scanning component integrated in the client; The connection establishment module 20 is used to allocate a thread to each client to process the connection request and establish a connection with the client in seconds; The annotation information display module 30 is used to send the QR code annotation information to the client after the connection is successful, so that the client can visually display the QR code annotation information. The QR code annotation information refers to the content carried and displayed by the QR code; The information reply module 40 is used to receive the communication request sent by the client, perform noise reduction processing on the communication signal carried in the communication request, and generate a reply message by searching the database based on the noise-reduced communication signal; The information feedback module 50 is used to feed back the reply information to the client through the corresponding thread.

[0050] In one embodiment, the device for establishing a real-time information service through a QR code also includes a communication content sending module, which is used to parse the noise-reduced communication signal to obtain the communication content; send the communication content to the customer service personnel terminal in multiple forms, and there are multiple customer service personnel terminals; obtain reply information corresponding to the communication content from the customer service personnel terminal.

[0051] In one embodiment, the device for establishing a real-time information service through a QR code also includes a task allocation module, which is used to send the communication content to the corresponding customer service personnel terminal in various forms according to a preset task allocation mode. The task allocation mode includes grabbing orders, rotating orders, and forced dispatch.

[0052] In one embodiment, the device for establishing a real-time information service through a QR code also includes a product information push module for obtaining product information scanned by the QR code; sending the product information to the customer service personnel terminal so that the customer service personnel terminal can visually display the product information to provide the client with a faster communication service.

[0053] In one embodiment, the connection establishment module 20 is also used to allocate a corresponding thread to each client through a scheduling algorithm, the scheduling algorithm including polling, weighted polling and minimum number of connections; process connection requests through threads and establish connections with the client in seconds; generate a communication directory, which is used to record communication data.

[0054] In one embodiment, the connection establishment module 20 is also used to process connection requests through a thread, the server generates an asymmetric user public-private key pair, and sends the user public key to the client through a thread in the form of a certificate; obtains the encrypted symmetric key sent by the client through the thread, the encrypted symmetric key is a symmetric key randomly generated by the client, and is obtained by encrypting the random symmetric key with the user public key; uses the user private key to decrypt and obtain the symmetric key, and uses the symmetric key to encrypt authentication information and send it to the client through a thread, so that the client decrypts the authentication information to establish a connection.

[0055] In one embodiment, the information reply module 40 is also used to receive a communication request sent by the client; through the convolution sliding average filtering algorithm, a convolution operation is performed on the communication signal carried in the communication request, and the moving average of the communication signal is calculated, thereby smoothing the communication signal to reduce noise.

[0056] Each module in the apparatus for establishing a real-time information service via a QR code may be implemented in whole or in part via software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0057] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store infrared image data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for establishing a real-time information service through a QR code is implemented.

[0058] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0059] The above are all preferred embodiments of the present application, and are not intended to limit the scope of protection of the present application. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A method for establishing a real-time information service through a QR code, characterized in that: include: The server receives connection requests sent by multiple clients. The connection requests are sent after the code scanning component integrated in the client recognizes the QR code information. The client does not need to install code scanning software. Allocate a thread to each client to process the connection request and establish a connection with the client in seconds; After the connection is successful, the QR code annotation information is sent to the client, so that the client can visually display the QR code annotation information. The QR code annotation information refers to the content carried and displayed by the QR code, and the QR code annotation information includes voice, text, pictures, videos and location-related information; receiving a communication request sent by the client, performing noise reduction processing on a communication signal carried in the communication request, and automatically generating a reply message or manually generating a reply message by searching a database based on the noise-reduced communication signal; The reply information is fed back to the client through the corresponding thread.

2. A method for establishing a real-time information service through a QR code according to claim 1, characterized in that: After receiving the communication request sent by the client and performing noise reduction processing on the communication signal carried in the communication request, the method further includes: Analyze the noise-reduced communication signal to obtain the communication content; Sending the communication content to a customer service staff terminal in multiple forms, where there are multiple customer service staff terminals; Acquire reply information corresponding to the communication content from the customer service personnel terminal.

3. A method for establishing a real-time information service through a QR code according to claim 2, characterized in that: The sending of the communication content to the customer service personnel terminal in various forms also includes: According to the preset task allocation mode, the communication content is sent to the corresponding customer service personnel terminal in various forms. The task allocation mode includes grabbing orders, rotating orders and forced dispatch.

4. The method for establishing a real-time information service through a QR code according to claim 2, characterized in that: Before obtaining the reply information corresponding to the communication content from the customer service personnel terminal, the method further includes: Get product information by scanning the QR code; The product information is sent to the customer service terminal, so that the customer service terminal can visually display the product information, thereby providing the client with a faster communication service.

5. The method for establishing a real-time information service through a QR code according to claim 1, characterized in that: The method of allocating a thread to each client to process the connection request and establishing a connection with the client in seconds includes: Allocate a corresponding thread to each client through a scheduling algorithm, including round-robin, weighted round-robin, and minimum number of connections; Processing the connection request through the thread and establishing a connection with the client in seconds; A communication directory is generated, wherein the communication directory is used to record communication data.

6. The method for establishing a real-time information service through a QR code according to claim 4, characterized in that: Processing the connection request by the thread and establishing a connection with the client in seconds includes: The connection request is processed by the thread, the server generates an asymmetric user public and private key pair, and sends the user public key to the client through the thread in the form of a certificate; Obtaining an encrypted symmetric key sent by the client through the thread, where the encrypted symmetric key is obtained by randomly generating a symmetric key by the client and encrypting the random symmetric key with the user public key; The symmetric key is decrypted using the user's private key, and the authentication information is encrypted using the symmetric key and then sent to the client through the thread, so that the client decrypts the authentication information to establish a connection.

7. The method for establishing a real-time information service through a QR code according to claim 1, characterized in that: The receiving the communication request sent by the client and performing noise reduction processing on the communication signal carried in the communication request includes: receiving a communication request sent by the client; A convolution operation is performed on the communication signal carried in the communication request by using a convolution sliding average filtering algorithm to calculate a moving average of the communication signal, thereby smoothing the communication signal to reduce noise.

8. A device for establishing a real-time information service through a QR code, characterized in that: include: A connection request module is used for receiving connection requests from multiple clients on the server side, wherein the connection requests are sent after the code scanning component integrated in the client recognizes the QR code information; A connection establishment module is used to assign a thread to each client to process the connection request and establish a connection with the client in seconds; The annotation information display module is used to send the QR code annotation information to the client after the connection is successful, so that the client can visually display the QR code annotation information. The QR code annotation information refers to the content carried and displayed by the QR code; An information reply module is configured to receive a communication request sent by the client, perform noise reduction processing on the communication signal carried in the communication request, and generate a reply message by searching a database based on the noise-reduced communication signal; The information feedback module is used to feed back the reply information to the client through the corresponding thread.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.