Information processing system, method, apparatus, electronic device, and computer storage medium

CN122711091APending Publication Date: 2026-09-08RAJAX NETWORK &TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610770682.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-29
Publication Date
2026-09-08

AI Technical Summary

Technical Problem

[0004]本申请提供一种信息处理系统,以解决云端与打印机之间的连接状态处于异常状态时如何高效地打印订单的问题,本申请还提供信息处理方法、信息处理装置、电子设备及计算机存储介质

Benefits of technology

本申请实施例提供的信息处理系统,包括:云端服务器、设置在商户内的终端设备、设置在商户内的打印设备;终端设备,用于获得云端服务器通过第一数据通道发送的包含目标订单的待打印数据的待打印指令;第一数据通道为云端服务器与打印设备之间的连接状态为异常状态时构建的终端设备与云端服务器之间的数据通道;将待打印指令发送给打印设备;获得打印设备发送的针对目标订单的打印完成结果信息,将打印完成结果信息通过第一数据通道发送给云端服务器;云端服务器,用于将待打印指令通过第一数据通道发送给终端设备;获得终端设备发送的打印完成结果信息;打印设备,用于获得终端设备发送的待打印指令,基于用于记录已完成打印订单的本地幂等缓存判断目标订单是否已被打印;如果否,则基于待打印数据对目标订单进行打印,获得打印完成结果信息并发送给终端设备;如果是,则直接获得打印完成结果信息并发送给终端设备。由于在该系统中,在云端服务器与打印设备之间的连接状态为异常状态时,云端服务器将包含目标订单的待打印数据的待打印指令通过第一数据通道发送给终端设备,而第一数据通道为云端服务器与打印设备之间的连接状态为异常状态时构建的终端设备与云端服务器之间的数据通道,进而便于后续终端设备将待打印指令发送给打印设备;而打印设备在获得待打印指令之后,基于用于记录已完成打印订单的本地幂等缓存判断目标订单是否已被打印;如果否,则基于待打印数据对目标订单进行打印,获得打印完成结果信息并发送给终端设备;如果是,则直接获得打印完成结果信息并发送给终端设备,进而后续便于终端设备将打印完成结果信息通过第一数据通道发送给云端服务器;由于在云端服务器与打印设备之间的连接状态为异常状态时,云端服务器能够通过第一数据通道将待打印指令发送给终端设备,终端设备再将待打印指令发送给打印设备,打印设备在接收到待打印指令后,为了避免对目标订单进行重复打印,利用本地幂等缓存判断是否针对目标订单已进行打印,进而只有在未打印情形时才打印,并且在获得打印完成结果信息之后发送给终端设备,以便于终端设备通过第一数据通道将打印完成结果信息发送给云端服务器;整个过程便于实现在云端服务器与打印设备之间的连接状态为异常状态时仍能够正常实现订单的打印,同时避免了订单被重复打印,提升了订单打印效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122711091A_ABST
    Figure CN122711091A_ABST
Patent Text Reader

Abstract

The application discloses an information processing system, method, device, electronic equipment and computer storage medium. In the system, when the connection state between the cloud server and the printing device is in an abnormal state, the cloud server can send a to-be-printed instruction to the terminal device through a first data channel, the terminal device sends the to-be-printed instruction to the printing device, the printing device judges whether printing has been performed for a target order by using a local idempotent cache after receiving the to-be-printed instruction, and then only prints in the case of not printing, and sends the printing completion result information to the terminal device after obtaining the printing completion result information, so that the terminal device sends the printing completion result information to the cloud server through the first data channel. The whole process facilitates normal printing of an order when the connection state between the cloud server and the printing device is in an abnormal state, avoids repeated printing of the order, and improves the order printing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, specifically to information processing systems, information processing methods, information processing devices, electronic devices, and computer storage media. Background Technology

[0002] With the continuous development of the food delivery industry, merchants are receiving more and more food delivery orders. Of course, merchants also have offline orders. Whether it is an online order or an offline order, the order needs to be printed to obtain an order receipt. Merchants set up some printers to print orders. In fact, these printers need to obtain the order data to be printed from the cloud and then print it. After printing, the order printing result information is sent to the cloud.

[0003] When data interacts between the cloud and the printer, such as the cloud sending data to be printed to the printer or the printer sending print completion information to the cloud, a normal connection between the cloud and the printer is required. However, if the connection between the two becomes abnormal, the cloud, unable to send the data to be printed to the printer or receive the print completion information from the printer, will continuously send print requests containing the data to be printed to the printer. Once the connection is restored, the printer will receive a large number of print requests, causing it to be unable to print normally. Even manual repair of the abnormal state is time-consuming and labor-intensive. Therefore, in order printing scenarios, how to efficiently print orders when the connection between the cloud and the printer is abnormal has become a pressing technical problem that needs to be solved. Summary of the Invention

[0004] This application provides an information processing system to solve the problem of how to efficiently print orders when the connection between the cloud and the printer is in an abnormal state. This application also provides an information processing method, an information processing device, an electronic device, and a computer storage medium.

[0005] In a first aspect, this application provides an information processing system, comprising: a cloud server, a terminal device installed in a merchant, and a printing device installed in the merchant; the terminal device is configured to receive a print instruction containing printable data of a target order sent by the cloud server through a first data channel; the first data channel is a data channel between the terminal device and the cloud server established when the connection between the cloud server and the printing device is in an abnormal state; send the print instruction to the printing device; receive print completion result information for the target order sent by the printing device, and send the print completion result information to the cloud server through the first data channel; the cloud server is configured to send the print instruction to the terminal device through the first data channel; receive the print completion result information sent by the terminal device; the printing device is configured to receive the print instruction sent by the terminal device, determine whether the target order has been printed based on a local idempotent cache used to record completed print orders; if not, print the target order based on the printable data, obtain the print completion result information and send it to the terminal device; if yes, directly obtain the print completion result information and send it to the terminal device.

[0006] Secondly, this application provides an information processing method applied to a terminal device installed in a merchant. The method includes: obtaining a print instruction containing printable data of a target order sent by a cloud server through a first data channel; the first data channel being a data channel between the terminal device and the cloud server established when the connection between the cloud server and the printing device installed in the merchant is in an abnormal state; sending the print instruction to the printing device so that the printing device receives the print instruction, determining whether the target order has been printed based on a local idempotent cache used to record completed print orders; if not, printing the target order based on the printable data to obtain print completion result information for the target order; if yes, directly obtaining the print completion result information; obtaining the print completion result information sent by the printing device, and sending the print completion result information to the cloud server through the first data channel.

[0007] Thirdly, this application provides an information processing method applied to a cloud server. The method includes: sending a print instruction containing printable data of a target order to a terminal device located within a merchant via a first data channel, so that the terminal device sends the print instruction to a printing device located within the merchant, and the printing device receives the print instruction; determining whether the target order has been printed based on a local idempotent cache used to record completed print orders; if not, printing the target order based on the printable data to obtain print completion result information for the target order; if yes, directly obtaining the print completion result information; obtaining the print completion result information sent by the printing device; the first data channel is a data channel between the terminal device and the cloud server established when the connection status between the cloud server and the printing device is abnormal; obtaining the print completion result information sent by the terminal device through the first data channel.

[0008] Fourthly, this application provides an information processing method applied to a printing device installed in a merchant. The method includes: obtaining a print instruction containing printable data of a target order sent by a terminal device installed in the merchant; the print instruction being sent by the terminal device after receiving the print instruction sent by a cloud server through a first data channel, wherein the first data channel is a data channel between the terminal device and the cloud server established when the connection status between the cloud server and the printing device is abnormal; in response to receiving the print instruction, determining whether the target order has been printed based on a local idempotent cache used to record completed print orders; if not, printing the target order based on the printable data to obtain print completion result information for the target order; if yes, directly obtaining the print completion result information; and sending the print completion result information to the terminal device so that the terminal device sends the print completion result information to the cloud server through the first data channel.

[0009] Fifthly, this application provides an information processing apparatus applied to a terminal device installed in a merchant. The apparatus includes: a first unit for obtaining a printable instruction, configured to obtain a printable instruction containing printable data of a target order sent by a cloud server through a first data channel; the first data channel is a data channel between the terminal device and the cloud server established when the connection between the cloud server and the printing device installed in the merchant is in an abnormal state; a first unit for sending a printable instruction, configured to send the printable instruction to the printing device so that the printing device obtains the printable instruction and determines whether the target order has been printed based on a local idempotent cache used to record completed print orders; if not, the target order is printed based on the printable data to obtain print completion result information for the target order; if yes, the print completion result information is directly obtained; and a first unit for sending print completion result information, configured to obtain the print completion result information sent by the printing device and send the print completion result information to the cloud server through the first data channel.

[0010] Sixthly, this application provides an information processing apparatus applied to a cloud server. The apparatus includes: a second unit for sending a print instruction, configured to send a print instruction containing print data of a target order to a terminal device located within a merchant via a first data channel, so that the terminal device sends the print instruction to a printing device located within the merchant, enabling the printing device to receive the print instruction and determine whether the target order has been printed based on a local idempotent cache used to record completed print orders; if not, then print the target order based on the print data to obtain print completion result information for the target order; if yes, then directly obtain the print completion result information; obtain the print completion result information sent by the printing device; the first data channel is a data channel between the terminal device and the cloud server established when the connection status between the cloud server and the printing device is abnormal; and a first unit for obtaining print completion result information, configured to obtain the print completion result information sent by the terminal device via the first data channel.

[0011] In a seventh aspect, this application provides an information processing apparatus applied to a printing device installed in a merchant. The apparatus includes: a second unit for obtaining a printable instruction, configured to obtain a printable instruction containing printable data of a target order sent by a terminal device installed in the merchant; the printable instruction is sent by the terminal device after obtaining the printable instruction sent by a cloud server through a first data channel, wherein the first data channel is a data channel between the terminal device and the cloud server established when the connection status between the cloud server and the printing device is abnormal; a judging unit, configured to, in response to receiving the printable instruction, judge whether the target order has been printed based on a local idempotent cache used to record completed printable orders; a second unit for obtaining printable completion result information, configured to, if not, print the target order based on the printable data to obtain printable completion result information for the target order; if yes, directly obtain the printable completion result information; and a second unit for sending printable completion result information, configured to send the printable completion result information to the terminal device, so that the terminal device sends the printable completion result information to the cloud server through the first data channel.

[0012] Eighthly, this application provides an electronic device comprising: a processor; and a memory for storing a computer program, wherein the electronic device, after being powered on and running the computer program through the processor, performs the aforementioned information processing method.

[0013] Ninthly, this application provides a computer storage medium storing computer execution instructions, which are executed by a processor to perform the above-described information processing method.

[0014] Compared with the prior art, this application has the following advantages: The information processing system provided in this application includes: a cloud server, a terminal device installed in a merchant, and a printing device installed in the merchant; the terminal device is used to receive a print instruction containing printable data of a target order sent by the cloud server through a first data channel; the first data channel is a data channel between the terminal device and the cloud server established when the connection between the cloud server and the printing device is in an abnormal state; send the print instruction to the printing device; receive print completion result information for the target order sent by the printing device, and send the print completion result information to the cloud server through the first data channel; the cloud server is used to send the print instruction to the terminal device through the first data channel; receive print completion result information sent by the terminal device; the printing device is used to receive the print instruction sent by the terminal device, determine whether the target order has been printed based on a local idempotent cache used to record completed print orders; if not, print the target order based on the printable data, obtain print completion result information and send it to the terminal device; if yes, directly obtain print completion result information and send it to the terminal device. In this system, when the connection between the cloud server and the printing device is abnormal, the cloud server sends a print command containing the target order's print data to the terminal device via a first data channel. This first data channel is established when the connection between the cloud server and the printing device is abnormal, facilitating the terminal device's subsequent transmission of the print command to the printing device. Upon receiving the print command, the printing device determines whether the target order has already been printed based on its local idempotent cache used to record completed print orders. If not, it prints the target order based on the print data, obtains the print completion result information, and sends it to the terminal device. If yes, it directly obtains the print completion result information and sends it to the terminal device, facilitating the terminal device's subsequent transmission of the print completion result information. The data is sent to the cloud server through the first data channel. When the connection between the cloud server and the printing device is abnormal, the cloud server can send the print command to the terminal device via the first data channel. The terminal device then sends the print command to the printing device. Upon receiving the print command, the printing device, to avoid duplicate printing of the target order, uses a local idempotent cache to determine whether the target order has already been printed. It only prints if the order has not been printed. After obtaining the print completion information, it sends it to the terminal device, which then sends the print completion information to the cloud server via the first data channel. This entire process ensures that order printing can still be performed normally even when the connection between the cloud server and the printing device is abnormal, while also preventing duplicate printing and improving order printing efficiency. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings.

[0016] Figure 1 This is a schematic diagram of the structure of the information processing system provided in the first embodiment of this application.

[0017] Figure 2 This is a schematic diagram of the interaction process of the information processing system provided in the first embodiment of this application.

[0018] Figure 3 A flowchart of the information processing method provided in the second embodiment of this application.

[0019] Figure 4 A flowchart of the information processing method provided in the third embodiment of this application.

[0020] Figure 5 A flowchart of the information processing method provided in the fourth embodiment of this application.

[0021] Figure 6 This is a schematic diagram of an information processing apparatus provided in the fifth embodiment of this application.

[0022] Figure 7 This is a schematic diagram of an information processing apparatus provided in the sixth embodiment of this application.

[0023] Figure 8 This is a schematic diagram of an information processing apparatus provided in the seventh embodiment of this application.

[0024] Figure 9 A schematic diagram of an electronic device provided in the eighth embodiment of this application. Detailed Implementation

[0025] To enable those skilled in the art to better understand the technical solutions of this application, the application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. However, this application can be implemented in many other ways different from those described below. Therefore, based on the embodiments provided in this application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.

[0026] It should be noted that the terms "first," "second," "third," etc., in the claims, specification, and drawings of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. Such data are interchangeable where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown or described in this application. Furthermore, the terms "comprising," "having," and their variations are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus 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 apparatuses.

[0027] It should be understood that in the embodiments of this application, "at least one" means one or more, and "more than one" means two or more. "And / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. The character " / " generally indicates that the related objects before and after it are in an "or" relationship. "Contains A, B and / or C" means containing any one, two, or three of A, B, and C.

[0028] It should be understood that in the embodiments of this application, "B corresponding to A", "B corresponding to A", "A corresponds to B" or "B corresponds to A" means that B is associated with A, and B can be determined based on A. Determining B based on A does not mean that B is determined solely based on A; B can also be determined based on A and / or other information.

[0029] This application provides an information processing system, an information processing method, an information processing apparatus, an electronic device, and a computer storage medium. The following specific embodiments describe the information processing system, the information processing method, the information processing apparatus, the electronic device, and the computer storage medium.

[0030] First Embodiment This embodiment provides an information processing system; please refer to the following for details. Figure 1 This is a schematic diagram of the information processing system provided in the first embodiment of this application. For specific examples or details regarding this embodiment, please refer to the above scenario embodiment.

[0031] The information processing system of this embodiment includes: a cloud server 101, a terminal device 102 installed in the merchant, and a printing device 103 installed in the merchant.

[0032] Generally, cloud servers communicate directly with printing devices (i.e. printers), specifically through long-distance communication modules; these modules can be mobile network communication modules or wireless network communication modules.

[0033] A cloud server is a server located in the cloud, primarily used to receive online orders generated by merchants, and can also receive offline orders. Users place orders on an online order processing platform, generating orders. The cloud server then obtains the order's print data and sends the print request containing this data to the printing device. The printing device then prints the order based on the print data and sends the print completion information back to the cloud server, thus informing the cloud server that the order has been printed. This is the data processing procedure when the connection between the printing device and the cloud server is normal.

[0034] The cloud server sends a print instruction containing the print data of the target order to the printing device. The printing device prints the target order, obtains the print completion result information for the target order as a print receipt, and sends it to the cloud server.

[0035] However, in some situations, the connection between the cloud server and the printing device may be abnormal. For example, the cloud server may not have sent a print command yet, and the connection between them may be abnormal, preventing the cloud server from sending the print command to the printing device. Alternatively, the connection may be abnormal after the cloud server has sent the print command, preventing the printing device from sending the print completion information to the cloud server. Either way, this will affect the order printing process.

[0036] To address this issue, the printing device incorporates a long-range communication module and a short-range communication module, and / or a wired communication module; the terminal device incorporates a long-range communication module and a short-range communication module, and / or a wired communication module; the printing device communicates with the cloud server via the long-range communication module; the terminal device communicates with the cloud server via the long-range communication module; and the terminal device communicates with the printing device via the short-range communication module, and / or a wired communication module. The short-range communication module can be a Bluetooth module; the wired communication module can be a USB module or an Ethernet module.

[0037] The cloud server and the printing device communicate via a long-distance communication module, establishing a second data channel. This channel is used for data exchange when the connection between the cloud server and the printing device is normal. The cloud server and the terminal device communicate via a long-distance communication module, establishing a first data channel. This channel is used when the connection between the cloud server and the printing device is abnormal. The terminal device then communicates with the printing device via a short-range communication module and / or a wired communication module. In practice, when the connection between the cloud server and the printing device is abnormal, the terminal device acts as an intermediary. The terminal device receives the print command from the cloud server and sends it to the printing device, or it receives the print completion information from the printing device and sends it to the cloud server.

[0038] In fact, through the above methods, the order can be printed normally regardless of whether the connection between the cloud server and the printing device is in a normal or abnormal state.

[0039] The following describes the data interaction methods between cloud server 101, terminal device 102, and printing device 103 when the connection status between the cloud server and the printing device is abnormal and normal, respectively.

[0040] The first data interaction method between cloud server 101, terminal device 102, and printing device 103 is that the connection status between cloud server and printing device is abnormal.

[0041] Terminal device 102 is used to obtain a print instruction containing printable data of a target order sent by a cloud server through a first data channel; the first data channel is a data channel between the terminal device and the cloud server established when the connection status between the cloud server and the printing device is abnormal; send the print instruction to the printing device; obtain print completion result information for the target order sent by the printing device; and send the print completion result information to the cloud server through the first data channel.

[0042] The cloud server 101 is used to send the printing instruction to the terminal device through the first data channel and to obtain the printing completion result information sent by the terminal device.

[0043] The printing device 103 is used to receive the print command sent by the terminal device, and determine whether the target order has been printed based on the local idempotent cache used to record completed print orders; if not, it prints the target order based on the print data, obtains the print completion result information and sends it to the terminal device; if so, it directly obtains the print completion result information and sends it to the terminal device.

[0044] In this embodiment, the terminal device is a device with a print management application or print management applet installed, such as a mobile terminal device, computer terminal device, tablet terminal device, or POS (Point of Sale) terminal device within the merchant's premises. Alternatively, it can be other devices within the merchant's premises with similar functions to the print management application or print management applet, such as scanning devices or printing devices. For example, when multiple printing devices are set up within the merchant's premises, if the connection status between one of the printing devices and the cloud server is abnormal, other printing devices with a normal connection to the cloud server can be used as the terminal device. The terminal device and the printing device are both located within the same merchant's premises to facilitate connection between them via a short-range communication module and / or a wired communication module.

[0045] In this embodiment, the terminal device is further configured to obtain real-time connection status information representing the real-time connection status between the cloud server and the printing device; based on the real-time connection status information, in response to detecting that the connection status between the cloud server and the printing device is abnormal, the terminal device sends a first request message to the cloud server requesting to establish a connection with the cloud server; the cloud server is further configured to establish a first data channel in response to the first request message.

[0046] To facilitate obtaining real-time connection status information, the terminal device also sends a second request message to the cloud server requesting real-time connection status information; it then receives the real-time connection status information from the cloud server in response to the second request message. The cloud server, in turn, responds to the second request message by sending real-time connection status information back to the terminal device. In practice, the terminal device uses its internally installed print management application or print management applet to send the second request message. In fact, all interactions between the terminal device and other terminals (including between the printing device and the cloud server) are conducted using the print management application or print management applet. The terminal device continuously monitors the network connectivity between the printing device and the cloud server, i.e., network status detection.

[0047] The second data interaction method between cloud server 101, terminal device 102, and printing device 103 is that the connection status between the cloud server and the printing device is normal.

[0048] When the connection between the cloud server and the printing device is in a normal state, the cloud server 101 is also used to send the printing instruction to the printing device through the second data channel; and to obtain the printing completion result information sent by the printing device through the second data channel; the second data channel is the data channel between the printing device and the cloud server built when the connection between the cloud server and the printing device is in a normal state.

[0049] Correspondingly, the printing device 103 is used to obtain the print instruction sent by the cloud server, determine whether the target order has been printed based on the local idempotent cache; if not, it prints the target order based on the print data, obtains the print completion result information and sends it to the cloud server through the second data channel; if so, it directly obtains the print completion result information and sends it to the cloud server through the second data channel.

[0050] In fact, in the second data interaction method, the terminal device 102 can detect the connection status between the cloud server and the printing device in real time.

[0051] Regardless of whether the connection between the printing device and the cloud server is normal or abnormal, after receiving the print command, the printing device determines whether the target order has been printed based on the local idempotent cache. If not, it prints the target order based on the print data and obtains the print completion result information. If so, it directly obtains the print completion result information.

[0052] A local idempotent cache is a cache set up on the printing device side. This cache records completed print orders, and the printing device can use order idempotency to determine whether a target order has been printed. Order idempotency means that the same order (uniquely identified) will only be successfully printed once, no matter how many times it is requested to be printed. Therefore, if the local idempotent cache determines that the target order has been printed, the print completion result information for the target order is directly obtained (in fact, the printing device has already obtained the print completion result information before determining that the target order has been printed). If the local idempotent cache determines that the target order has not been printed, the target order is printed based on the data to be printed, and the print completion result information is obtained.

[0053] In fact, the local idempotent cache is used to record the cache of completed printing orders. The local idempotent cache stores the order identifiers that the printing device has completed printing and the printing completion information of the printed orders. Therefore, based on the local idempotent cache, it can be determined whether the target order has been printed. For example, assuming that the printing device has printed order 1, order 2 and order 3, if the target order is order 2, it is determined that it has been printed; if the target order is order 4, it is determined that it has not been printed.

[0054] To further prevent the same order from being printed multiple times, a local idempotent cache is set up on the printing device side, and a cloud idempotent cache is also set up on the cloud server to record orders that have been printed by the printing device; that is, in this application, a double idempotent cache is set up to ensure that the same order will not be printed repeatedly.

[0055] Therefore, before sending the print command (whether to the terminal device or the printing device), the cloud server determines whether the print command meets the preset sending conditions based on the order identifier of the target order and the order identifier of the completed print orders in the cloud idempotent cache. If the print command meets the preset sending conditions, it is sent to the terminal device through the first data channel or to the printing device through the second data channel. If the print command does not meet the preset sending conditions, it is discarded.

[0056] In this embodiment, the cloud server is further configured to store the order identifier of the target order and the sending record information of the sending of the printing instruction in the cloud idempotent cache after sending the printing instruction to the terminal device through the first data channel, or after sending the printing instruction to the printing device through the second data channel.

[0057] For example, on a cloud server, a cursor is maintained for each printing device to identify the last successfully printed order, or a sending channel (i.e., sending record information) is used to send the print instruction to each order record. Both the cursor and the sending channel are cached in an idempotent cache in the cloud. The sending channel can be used to record the print instruction sent to the terminal device through a first data channel, or it can be used to record the print instruction sent to the printing device through a second data channel.

[0058] When the cloud server is about to issue a print command for a target order, it first checks if the order identifier of the target order is greater than the cursor corresponding to the printing device. If the order identifier of the target order is less than or equal to the cursor, it means that the target order is a historical order that has already been processed, i.e., the target order has been successfully printed, and the cloud server has obtained the printing completion information and successfully updated the cursor to the order identifier of the target order in the cloud idempotent cache. The cloud server then discards this print request (which contains the print command). This method can reduce invalid print requests and save network bandwidth and server resources.

[0059] If the order identifier of the target order is larger than the cursor, the print order is allowed to be sent, and the sending channel of this print order action is recorded. For example, it may be marked that the print order instruction for the target order has been sent to the terminal device through the first data channel, or that the print order instruction for the target order has been sent to the printing device through the second data channel. The actual sending channel recorded is determined based on the actual print order situation. When the order identifier of the target order is larger than the cursor, it may be that the cloud server has not yet sent the print order instruction to the terminal device or the printing device; it may also be that the cloud server has sent the print order instruction to the printing device or the terminal device, but the cloud server has not yet received the print completion result information.

[0060] In this embodiment, the cloud server is further configured to, after obtaining the print completion result information, store the order identifier of the target order and the print completion result information correspondingly in a cloud idempotent cache. That is, regardless of whether the cloud server receives print completion result information directly from the printing device or directly from the terminal device, it stores the order identifier of the target order and the print completion result information correspondingly in the cloud idempotent cache. This facilitates updating the target order's successfully printed status in the cloud idempotent cache, such as updating the cursor to the target order's order identifier.

[0061] In this embodiment, regardless of whether the printing device receives a print command from a terminal device or a cloud server, the printing device further stores the target order in a local idempotent cache order queue using the target order's order identifier after printing the target order based on the print data. That is, after completing printing, the printing device stores the printed order identifier in the local idempotent cache.

[0062] Because the number of orders cached in the local idempotent cache is limited, the printing device also checks whether the number of completed print orders stored in the order queue exceeds a preset limit before storing the target order in the local idempotent cache order queue using the target order's order identifier. If the number of completed print orders stored in the order queue exceeds the preset limit, the order that was printed first in the order queue is deleted. For example, if the target order is order 11, and assuming the local idempotent cache order queue can only store ten orders, then after printing the target order, order 1 can be deleted from the order queue.

[0063] To better understand the data or information interaction process between the cloud server 101, terminal device 102, and printing device 103, please refer to... Figure 2 This is a schematic diagram of the interaction process of the information processing system provided in the first embodiment of this application.

[0064] First, the terminal device 102 executes step S201: sending a second request message to the cloud server to obtain real-time connection status information; step S202: obtaining the real-time connection status information sent by the cloud server in response to the second request message; step S203: based on the real-time connection status information, in response to detecting that the connection status between the cloud server and the printing device is abnormal, sending a first request message to the cloud server to establish a connection with the cloud server.

[0065] Cloud server 101 executes step S204: In response to the first request message, establishes a first data channel; step S205: Sends a print instruction containing printable data of the target order to the terminal device through the first data channel.

[0066] Terminal device 102 executes step S206: Sends the print command to the printing device.

[0067] Printing device 103 executes step S207: Based on the local idempotent cache used to record completed printing orders, it determines whether the target order has been printed; if not, it prints the target order based on the data to be printed, obtains the printing completion result information and sends it to the terminal device; if yes, it directly obtains the printing completion result information and sends it to the terminal device.

[0068] Terminal device 102 executes step S208: Send the printing completion result information to the cloud server.

[0069] Terminal device 102 executes step S209: Based on real-time connection status information, in response to detecting that the connection status between the cloud server and the printing device is normal, it sends a third request message to the cloud server to request the printing device to send a printing instruction.

[0070] Cloud server 101 executes step S210: sends the print command to the printing device through the second data channel; Printing device 103 executes step S211: Based on the local idempotent cache, it determines whether the target order has been printed; if not, it prints the target order based on the data to be printed, obtains the printing completion result information, and sends it to the cloud server through the second data channel; if yes, it directly obtains the printing completion result information and sends it to the cloud server through the second data channel.

[0071] It should be noted that the above steps are not strictly in the order of precedence. For example, steps S207 and S211 are not in any particular order; steps S203 and S209 are not in any particular order.

[0072] Of course, this is understandable. Figure 2 The information interaction between the cloud server 101, terminal device 102, and printing device 103 still involves some steps that are not shown. For example, after obtaining the printing completion result information, the cloud server 101 stores the order identifier of the target order and the printing completion result information in the cloud idempotent cache. This information is still within the scope of protection of this application.

[0073] In this system, when the connection between the cloud server and the printing device is abnormal, the cloud server sends a print command containing the target order's print data to the terminal device via a first data channel. This first data channel is established when the connection between the cloud server and the printing device is abnormal, facilitating the terminal device's subsequent transmission of the print command to the printing device. Upon receiving the print command, the printing device determines whether the target order has already been printed based on its local idempotent cache used to record completed print orders. If not, it prints the target order based on the print data, obtains the print completion result information, and sends it to the terminal device. If yes, it directly obtains the print completion result information and sends it to the terminal device, facilitating the terminal device's subsequent transmission of the print completion result information. The data is sent to the cloud server through the first data channel. When the connection between the cloud server and the printing device is abnormal, the cloud server can send the print command to the terminal device via the first data channel. The terminal device then sends the print command to the printing device. Upon receiving the print command, the printing device, to avoid duplicate printing of the target order, uses a local idempotent cache to determine whether the target order has already been printed. It only prints if the order has not been printed. After obtaining the print completion information, it sends it to the terminal device, which then sends the print completion information to the cloud server via the first data channel. This entire process ensures that order printing can still be performed normally even when the connection between the cloud server and the printing device is abnormal, while also preventing duplicate printing and improving order printing efficiency.

[0074] Second Embodiment Corresponding to the first embodiment, the second embodiment of this application provides an information processing method. The executing entity of this embodiment is a terminal device installed within a merchant. The parts in the second embodiment that are the same as those in the scenario embodiment and the first embodiment will not be described again; please refer to the relevant parts of the scenario embodiment and the first embodiment for details.

[0075] Please refer to Figure 3 This is a flowchart of the information processing method provided in the second embodiment of this application.

[0076] The information processing method of this application includes the following steps.

[0077] Step S301: Obtain the print instruction containing the printable data of the target order sent by the cloud server through the first data channel.

[0078] The first data channel is the data channel between the terminal device and the cloud server established when the connection status between the cloud server and the printing device set up in the merchant is abnormal.

[0079] Step S302: Send the print command to the printing device.

[0080] The print command is sent to the printing device so that the printing device receives the print command. Based on the local idempotent cache used to record completed print orders, it is determined whether the target order has been printed. If not, the target order is printed based on the print data to obtain the print completion result information for the target order. If yes, the print completion result information is obtained directly.

[0081] Step S303: Obtain the printing completion result information sent by the printing device, and send the printing completion result information to the cloud server through the first data channel.

[0082] In this embodiment, the method further includes: obtaining real-time connection status information representing the real-time connection status between the cloud server and the printing device; and, in response to detecting that the connection status between the cloud server and the printing device is abnormal, sending a first request message to the cloud server to establish a connection, so that the cloud server responds to the first request message and establishes a first data channel.

[0083] In this embodiment, it further includes: sending a second request message to the cloud server to request real-time connection status information, so that the cloud server responds to the second request message to obtain real-time connection status information; as a way to obtain real-time connection status information representing the real-time connection status between the cloud server and the printing device: obtaining the real-time connection status information sent by the cloud server in response to the second request message.

[0084] In this embodiment, the printing device is provided with a long-distance communication module and a short-distance communication module, and / or a wired communication module; the terminal device is provided with a long-distance communication module and a short-distance communication module, and / or a wired communication module.

[0085] The printing device communicates with the cloud server via a long-distance communication module; the terminal device communicates with the cloud server via a long-distance communication module; and the terminal device communicates with the printing device via a short-distance communication module and / or a wired communication module.

[0086] Third Embodiment Corresponding to the first embodiment, the third embodiment of this application provides an information processing method. The executing entity of this embodiment is a cloud server. The parts of the third embodiment that are the same as those in the scenario embodiment and the first embodiment will not be described again; please refer to the relevant parts of the scenario embodiment and the first embodiment for details.

[0087] Please refer to Figure 4 This is a flowchart of the information processing method provided in the third embodiment of this application.

[0088] The information processing method of this application includes the following steps.

[0089] Step S401: Send the print instruction containing the print data of the target order to the terminal device set up in the merchant through the first data channel.

[0090] The print command is sent to the terminal device located within the merchant via the first data channel. This allows the terminal device to forward the print command to the printing device located within the merchant. The printing device receives the print command and, based on its local idempotent cache used to record completed print orders, determines whether the target order has already been printed. If not, it prints the target order based on the print data and obtains the print completion result information for the target order. If yes, it directly obtains the print completion result information. The first data channel is a data channel between the terminal device and the cloud server established when the connection between the cloud server and the printing device is in an abnormal state.

[0091] Step S402: Obtain the printing completion result information sent by the terminal device through the first data channel.

[0092] In this embodiment, it further includes: obtaining a first request message sent by the terminal device to establish a connection with the cloud server; the first request message is sent by the terminal device after obtaining real-time connection status information indicating the real-time connection status between the cloud server and the printing device, in response to detecting that the connection status between the cloud server and the printing device is abnormal; and establishing a first data channel in response to the first request message.

[0093] In this embodiment, it further includes: obtaining a second request message sent by the terminal device requesting to obtain real-time connection status information; and in response to the second request message, sending real-time connection status information to the terminal device.

[0094] In this embodiment, the method further includes: sending the print instruction to the printing device through the second data channel so that the printing device receives the print instruction and determines whether the target order has been printed based on the local idempotent cache; if not, printing the target order based on the print data to obtain print completion result information; if yes, directly obtaining print completion result information; the second data channel is a data channel between the printing device and the cloud server established when the connection between the cloud server and the printing device is in a normal state; and obtaining the print completion result information sent by the printing device through the second data channel.

[0095] In this embodiment, the method further includes: determining whether the print instruction meets the preset sending conditions based on the order identifier of the target order and the order identifier of the completed print orders in the cloud idempotent cache used to record the print orders completed by the printing device; therefore, sending the print instruction containing the print data of the target order to the terminal device set up in the merchant through the first data channel can mean: if the print instruction meets the preset sending conditions, then the print instruction is sent to the terminal device through the first data channel; as a way to send the print instruction to the printing device through the second data channel: send the print instruction to the printing device through the second data channel; if the print instruction does not meet the preset sending conditions, then the print instruction is discarded.

[0096] In this embodiment, the method further includes: after obtaining the printing completion result information, storing the order identifier of the target order and the printing completion result information in a cloud idempotent cache.

[0097] In this embodiment, the method further includes: after sending the print instruction to the terminal device through the first data channel, or after sending the print instruction to the printing device through the second data channel, storing the order identifier of the target order and the sending record information of the print instruction in the cloud idempotent cache.

[0098] Fourth embodiment Corresponding to the first embodiment, the fourth embodiment of this application provides an information processing method. The executing entity of this embodiment is a printing device installed in a merchant. The parts of the fourth embodiment that are the same as those in the scenario embodiment and the first embodiment will not be described again. Please refer to the relevant parts of the scenario embodiment and the first embodiment for details.

[0099] Please refer to Figure 5 This is a flowchart of the information processing method provided in the fourth embodiment of this application.

[0100] Step S501: Obtain a print instruction containing the print data of the target order sent by the terminal device set in the merchant.

[0101] The print command is sent by the terminal device after receiving the print command from the cloud server through the first data channel. The first data channel is the data channel between the terminal device and the cloud server established when the connection status between the cloud server and the printing device is abnormal.

[0102] Step S502: In response to receiving the print instruction, determine whether the target order has been printed based on the local idempotent cache used to record completed print orders.

[0103] Step S503: If no, print the target order based on the data to be printed and obtain the printing completion result information for the target order; if yes, directly obtain the printing completion result information.

[0104] Step S504: Send the printing completion result information to the terminal device so that the terminal device can send the printing completion result information to the cloud server through the first data channel.

[0105] In this embodiment, the method further includes: obtaining a print command sent by the cloud server through a second data channel; the second data channel is a data channel between the printing device and the cloud server established when the connection between the cloud server and the printing device is in a normal state; in response to receiving the print command, determining whether the target order has been printed based on a local idempotent cache; if not, printing the target order based on the print data to be printed, and obtaining print completion result information; if yes, directly obtaining the print completion result information; and sending the print completion result information to the cloud server through the second data channel.

[0106] In this embodiment, the method further includes: after printing the target order based on the data to be printed, storing the target order in the local idempotent cache order queue using the order identifier of the target order.

[0107] In this embodiment, the method further includes: before storing the target order in the local idempotent cache order queue using the target order's order identifier, determining whether the number of completed printing orders stored in the order queue exceeds a preset number; if the number of completed printing orders stored in the order queue exceeds the preset number, deleting the order that was printed first among the completed printing orders stored in the order queue.

[0108] Fifth embodiment Corresponding to the information processing method provided in the second embodiment of this application, the fifth embodiment of this application also provides an information processing apparatus. Since the apparatus embodiment is basically similar to the second embodiment, the description is relatively simple; relevant details can be found in the description of the second embodiment. The apparatus embodiments described below are merely illustrative.

[0109] Please refer to Figure 6 This is a schematic diagram of the information processing device provided in the fifth embodiment of this application.

[0110] The information processing device 600 is applied to a terminal device installed in a merchant. The device includes: a first unit 601 for obtaining a print instruction, used to obtain a print instruction containing print data of a target order sent by a cloud server through a first data channel; the first data channel is a data channel between the terminal device and the cloud server established when the connection between the cloud server and the printing device installed in the merchant is in an abnormal state; a first unit 602 for sending a print instruction, used to send the print instruction to the printing device so that the printing device obtains the print instruction and determines whether the target order has been printed based on a local idempotent cache used to record completed print orders; if not, the target order is printed based on the print data to obtain print completion result information for the target order; if yes, the print completion result information is obtained directly; and a first unit 603 for sending print completion result information, used to obtain the print completion result information sent by the printing device and send the print completion result information to the cloud server through the first data channel.

[0111] Sixth Embodiment Corresponding to the information processing method provided in the third embodiment of this application, the sixth embodiment of this application also provides an information processing apparatus. Since the apparatus embodiment is basically similar to the third embodiment, the description is relatively simple; relevant details can be found in the description of the third embodiment. The apparatus embodiments described below are merely illustrative.

[0112] Please refer to Figure 7 This is a schematic diagram of the information processing device provided in the sixth embodiment of this application.

[0113] The information processing device 700, applied to a cloud server, includes: a second printing instruction sending unit 701, used to send a printing instruction containing printing data of a target order to a terminal device located in a merchant via a first data channel, so that the terminal device sends the printing instruction to a printing device located in the merchant, and the printing device receives the printing instruction and determines whether the target order has been printed based on a local idempotent cache used to record completed printing orders; if not, it prints the target order based on the printing data to obtain printing completion result information for the target order; if yes, it directly obtains the printing completion result information; and obtains the printing completion result information sent by the printing device; the first data channel is a data channel between the terminal device and the cloud server established when the connection status between the cloud server and the printing device is abnormal; and a first printing completion result information obtaining unit 702, used to obtain the printing completion result information sent by the terminal device through the first data channel.

[0114] Seventh Embodiment Corresponding to the information processing method provided in the fourth embodiment of this application, the seventh embodiment of this application also provides an information processing apparatus. Since the apparatus embodiment is basically similar to the fourth embodiment, the description is relatively simple; relevant details can be found in the description of the seventh embodiment. The apparatus embodiments described below are merely illustrative.

[0115] Please refer to Figure 8 This is a schematic diagram of the information processing device provided in the seventh embodiment of this application.

[0116] The information processing device 800 is applied to a printing device installed in a merchant. The device includes: a second unit 801 for obtaining a print instruction, used to obtain a print instruction containing print data of a target order sent by a terminal device installed in the merchant; the print instruction is sent by the terminal device after obtaining the print instruction sent by the cloud server through a first data channel, the first data channel being a data channel between the terminal device and the cloud server established when the connection status between the cloud server and the printing device is abnormal; a judging unit 802, used to judge whether the target order has been printed based on a local idempotent cache used to record completed print orders in response to receiving the print instruction; a second unit 803 for obtaining print completion result information, used to print the target order based on the print data if no, and to obtain print completion result information for the target order if yes; and a second unit 804 for sending the print completion result information to the terminal device, so that the terminal device sends the print completion result information to the cloud server through the first data channel.

[0117] Eighth embodiment Corresponding to the methods of the second to fourth embodiments of this application, the eighth embodiment of this application also provides an electronic device.

[0118] The electronic device includes: a processor; and a memory for storing a computer program. After the electronic device is powered on and runs the computer program through the processor, it executes the methods of the second to fourth embodiments. Figure 9 As shown, Figure 9This is a schematic diagram of an electronic device provided in the eighth embodiment of this application. The electronic device specifically includes: at least one processor 901, at least one communication interface 902, at least one memory 903, and at least one communication bus 904. Optionally, the communication interface 902 can be an interface for a communication module, such as the interface for a GSM module. The processor 901 may be a CPU, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application. The memory 903 may include high-speed RAM and may also include non-volatile memory, such as at least one disk storage device. The memory 903 stores a program, and the processor 901 calls the program stored in the memory 903 to execute the methods of the second to fourth embodiments.

[0119] Ninth Embodiment Corresponding to the methods of the second to fourth embodiments of this application, the ninth embodiment of this application also provides a computer storage medium storing computer execution instructions, which are executed by a processor to perform the methods of the second to fourth embodiments of this application.

[0120] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0121] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0122] 1. Computer-readable media includes both permanent and non-permanent, removable and non-removable media, which can store information by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined in this application, computer-readable media does not include non-transitory computer-readable media, such as modulated data signals and carrier waves.

[0123] 2. Those skilled in the art will understand that embodiments of this application can provide methods, systems, or computer program products. Therefore, embodiments of this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0124] 3. This application embodiment may involve the use of user data. In practical applications, user-specific personal data may be used within the scope permitted by applicable laws and regulations of the country in which the application is located (e.g., with the user's explicit consent and effective notification to the user, etc.). Furthermore, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. The collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0125] Although this application discloses preferred embodiments as described above, it is not intended to limit this application. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of this application. Therefore, the scope of protection of this application should be determined by the scope defined in the claims of this application.

Claims

1. An information processing system, characterized in that, include: Cloud servers, terminal devices installed in merchants, and printing devices installed in merchants; The terminal device is used to obtain a print instruction containing printable data of a target order sent by the cloud server through a first data channel; the first data channel is a data channel between the terminal device and the cloud server established when the connection status between the cloud server and the printing device is abnormal. Send the print command to the printing device; Obtain the printing completion result information for the target order sent by the printing device, and send the printing completion result information to the cloud server through the first data channel; The cloud server is used to send the print command to the terminal device through the first data channel; Obtain the printing completion result information sent by the terminal device; The printing device is used to obtain the print command sent by the terminal device and determine whether the target order has been printed based on the local idempotent cache used to record completed print orders; If not, the target order is printed based on the data to be printed, the printing completion result information is obtained and sent to the terminal device; If so, the printing completion result information is obtained directly and sent to the terminal device.

2. The system according to claim 1, characterized in that, The terminal device is further configured to obtain real-time connection status information representing the real-time connection status between the cloud server and the printing device; and, in response to detecting that the connection status between the cloud server and the printing device is abnormal, send a first request message to the cloud server requesting to establish a connection with the cloud server based on the real-time connection status information. The cloud server is also used to establish the first data channel in response to the first request message.

3. The system according to claim 2, characterized in that, The terminal device is further configured to send a second request message to the cloud server requesting to obtain the real-time connection status information; and obtain the real-time connection status information sent by the cloud server in response to the second request message; The cloud server is also used to send the real-time connection status information to the terminal device in response to the second request message.

4. The system according to claim 1, characterized in that, The cloud server is also used to send the print command to the printing device through the second data channel; and to obtain the print completion result information sent by the printing device through the second data channel; the second data channel is a data channel between the printing device and the cloud server established when the connection between the cloud server and the printing device is in a normal state; The printing device is used to obtain the print command sent by the cloud server and determine whether the target order has been printed based on the local idempotent cache; If not, the target order is printed based on the data to be printed, the printing completion result information is obtained and sent to the cloud server through the second data channel; If so, the printing completion result information is obtained directly and sent to the cloud server through the second data channel.

5. The system according to claim 4, characterized in that, The cloud server is equipped with a cloud-based idempotent cache for recording printing orders that have been completed by the printing device; The cloud server is also used to determine whether the print instruction meets the preset sending conditions based on the order identifier of the target order and the order identifier of the completed print orders in the cloud idempotent cache. If the print command meets the preset sending conditions, the print command is sent to the terminal device through the first data channel, or the print command is sent to the printing device through the second data channel. If the instruction to be printed does not meet the preset sending conditions, the instruction to be printed will be discarded.

6. An information processing method, characterized in that, The method, applied to terminal devices installed within a merchant, includes: The system receives a print instruction containing the print data of the target order sent by the cloud server through a first data channel; the first data channel is a data channel between the terminal device and the cloud server established when the connection status between the cloud server and the printing device set in the merchant is abnormal. The print instruction is sent to the printing device so that the printing device receives the print instruction and determines whether the target order has been printed based on the local idempotent cache used to record completed print orders. If not, the target order is printed based on the print instruction to obtain the print completion result information for the target order. If yes, the print completion result information is obtained directly. The system obtains the printing completion result information sent by the printing device and sends the printing completion result information to the cloud server through the first data channel.

7. An information processing method, characterized in that, Applied to a cloud server, the method includes: A print command containing printable data of a target order is sent to a terminal device located within the merchant via a first data channel. The terminal device then forwards the print command to a printing device located within the merchant. The printing device receives the print command and, based on a local idempotent cache used to record completed print orders, determines whether the target order has already been printed. If not, it prints the target order based on the printable data, obtaining print completion result information for the target order. If yes, it directly obtains the print completion result information. The first data channel is a data channel between the terminal device and the cloud server established when the connection between the cloud server and the printing device is in an abnormal state. The printing completion result information sent by the terminal device through the first data channel is obtained.

8. An information processing method, characterized in that, The method, applied to a printing device installed within a merchant, includes: The terminal device located within the merchant receives a print instruction containing printable data of a target order. The print instruction is sent by the terminal device after receiving the print instruction from the cloud server via a first data channel. The first data channel is a data channel between the terminal device and the cloud server established when the connection between the cloud server and the printing device is in an abnormal state. In response to receiving the print instruction, determine whether the target order has been printed based on the local idempotent cache used to record completed print orders; If not, then print the target order based on the data to be printed to obtain the printing completion result information for the target order; if yes, then directly obtain the printing completion result information. The printing completion result information is sent to the terminal device, so that the terminal device sends the printing completion result information to the cloud server through the first data channel.

9. An electronic device, characterized in that, include: processor; And a memory for storing a computer program, wherein after the electronic device is powered on and the computer program is run by the processor, it performs the method described in any one of claims 6-8.

10. A computer storage medium, characterized in that, The computer storage medium stores computer execution instructions, which are executed by a processor to perform the method described in any one of claims 6-8.