Data processing system and method for self-service vending
By isolating the interaction between storage equipment and business systems in the unmanned vending data processing system, and dynamically adapting the Internet of Things protocol and product identification, the problem of low development efficiency of the unmanned vending system is solved, and efficient system development and operations.
Patent Information
- Application Number
- CN202410777705.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-24
AI Technical Summary
When developing unmanned vending systems, changes in IoT manufacturers and suppliers have led to inefficiencies in communication and product identification between storage devices and unmanned vending systems, requiring frequent modifications to the business system to adapt to new IoT protocols and products. Logo increases development difficulty and time.
By introducing the equipment service module, identification service module and product service module into the unmanned vending data processing system, the interaction between the storage equipment and the business system is isolated, as well as the interaction between the supplier's identification equipment and the business system, dynamic integration and switching of objects Networking protocols and product identification enable simple configuration modifications and avoid business system changes.
It greatly improves the development efficiency of unmanned vending systems, reduces the need for business system modifications caused by changes in IoT manufacturers and suppliers, and reduces development difficulty and time.
Smart Images

Figure CN118692181A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of intelligent device technology, and in particular, relates to a data processing system and method for unmanned vending. Background Art
[0002] Storage devices equipped with image acquisition devices, such as smart image freezers, can work with unmanned vending systems to achieve unmanned vending. During the unmanned vending process, the storage device communicates with the unmanned vending system through the IoT communication module produced by the IoT manufacturer. The unmanned vending system identifies what products the customer has purchased based on the data provided by the supplier of the storage device.
[0003] At present, in the process of developing unmanned vending systems, it is necessary to select appropriate IoT manufacturers and suppliers to achieve communication between storage equipment and unmanned vending systems and identification of goods by unmanned vending systems. In the event that the IoT manufacturers or suppliers do not meet actual needs, the unmanned vending system needs to be redeveloped, which is inefficient. Summary of the invention
[0004] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a data processing system and method for unmanned vending, which can greatly improve the development efficiency of the unmanned vending system.
[0005] In a first aspect, the present application provides a data processing system for unmanned vending, the system comprising:
[0006] The device service module is used to receive the first identifier of the target transaction issued by the transaction system; based on the adapted Internet of Things protocol, issue the first identifier and the door opening instruction to the target storage device, and receive the target image corresponding to the first identifier sent by the target storage device; determine the target identification device corresponding to the target storage device; the target identification device is the identification device corresponding to the supplier of the target storage device;
[0007] an identification service module, configured to send the target image to the target identification device, and obtain a second identifier of the target commodity included in the target transaction returned by the target identification device based on the target image;
[0008] A commodity service module, used to convert the second identifier of the target commodity into the third identifier of the target commodity, generate a target transaction message of the target transaction, for processing by a target business system; the target transaction message carries the first identifier and the third identifier of the target commodity; the target business system includes the transaction system.
[0009] According to the data processing system for unmanned vending machines of the present application, the data processing system for unmanned vending machines interacts with storage devices and identification devices corresponding to suppliers to isolate the interaction between the storage devices and the business system and the interaction between the identification devices corresponding to suppliers and the business system. The data processing system for unmanned vending machines can dynamically integrate and switch existing Internet of Things protocols and suppliers. When the Internet of Things manufacturers and / or suppliers change, a simple configuration modification is made in the data processing system for unmanned vending machines to achieve the adaptation of the new Internet of Things protocol and the corresponding changes in the identification conversion of the goods without changing the business system. Therefore, it is possible to avoid the defects in the related technology that when the Internet of Things manufacturers and / or suppliers change, the business system needs to be modified to adapt to the new Internet of Things protocol and the corresponding changes in the identification conversion of the goods, which greatly increases the time and difficulty of business system development, thereby greatly improving the development efficiency of the unmanned vending system.
[0010] According to one embodiment of the present application, the data processing system for unmanned vending further includes:
[0011] The distribution application module is used to determine the target business system corresponding to the target transaction, and distribute the target transaction message to the target message queue corresponding to each target business system.
[0012] According to one embodiment of the present application, the device service module includes:
[0013] An IoT docking unit, used to communicate with the storage device; the IoT docking unit has been adapted to multiple IoT protocols;
[0014] Internet of Things control unit, used to register and control storage devices.
[0015] According to one embodiment of the present application, the IoT control unit is further used to determine the target identification device based on a list of storage devices.
[0016] According to one embodiment of the present application, the commodity service module includes:
[0017] The association unit is used to obtain the third identifier of the target product based on the corresponding relationship between the second identifier and the third identifier of the stored product.
[0018] According to one embodiment of the present application, the association unit is specifically used to obtain the fourth identification of the target product based on the correspondence between the second identification and the fourth identification of the stored product; and to obtain the third identification of the target product based on the correspondence between the fourth identification and the third identification of the stored product.
[0019] According to one embodiment of the present application, the data processing system for unmanned vending further includes:
[0020] The supervision module is used to monitor the information of the IoT manufacturers, the information of the suppliers, the information of the storage devices, the information of the commodities and the information of the business systems corresponding to the adapted IoT protocols.
[0021] In a second aspect, the present application provides a data processing method for unmanned vending, the method comprising:
[0022] Receive a first identifier of a target transaction issued by a transaction system;
[0023] Based on the adapted Internet of Things protocol, the first identification and the door opening instruction are sent to the target storage device;
[0024] Receiving a target image corresponding to the first identification sent by the target storage device, and determining a target identification device corresponding to the target storage device; the target identification device is an identification device corresponding to a supplier of the target storage device;
[0025] Sending the target image to the target recognition device, and obtaining a second identifier of the target commodity included in the target transaction returned by the target recognition device based on the target image;
[0026] The second identifier of the target commodity is converted into the third identifier of the target commodity, and a target transaction message of the target transaction is generated for processing by a target business system; the target transaction message carries the first identifier and the third identifier of the target commodity; the target business system includes the transaction system.
[0027] According to the data processing method for unmanned vending machines of the present application, the data processing system for unmanned vending machines interacts with storage devices and identification devices corresponding to suppliers, isolates the interaction between the storage devices and the business system, and the interaction between the identification devices corresponding to suppliers and the business system. The data processing system for unmanned vending machines can dynamically integrate and switch existing Internet of Things protocols and suppliers. When the Internet of Things manufacturers and / or suppliers change, a simple configuration modification is made in the data processing system for unmanned vending machines to adapt to the new Internet of Things protocol and make corresponding changes to the identification conversion of goods without changing the business system. Therefore, it is possible to avoid the defects of the related technology that, when the Internet of Things manufacturers and / or suppliers change, the business system needs to be modified to adapt to the new Internet of Things protocol and make corresponding changes to the identification conversion of goods, which greatly increases the time and difficulty of business system development, thereby greatly improving the development efficiency of the unmanned vending system.
[0028] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the data processing method for unmanned vending as described in the first aspect above is implemented.
[0029] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the data processing method for unmanned vending as described in the first aspect above.
[0030] In a fifth aspect, the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the data processing method for unmanned vending as described in the first aspect.
[0031] In a sixth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the data processing method for unmanned vending as described in the first aspect above.
[0032] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0034] Figure 1 It is one of the structural schematic diagrams of the data processing system for unmanned vending provided in the embodiment of the present application;
[0035] Figure 2 This is the second structural diagram of the data processing system for unmanned vending provided in the embodiment of the present application;
[0036] Figure 3 It is a schematic diagram of the overall architecture of a data processing system for unmanned vending provided in an embodiment of the present application;
[0037] Figure 4 is a schematic diagram of the workflow of a data processing system for unmanned vending provided in an embodiment of the present application;
[0038] Figure 5 is a flow chart of a data processing method for unmanned vending provided in an embodiment of the present application;
[0039] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0041] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0042] The data processing system and method for unmanned vending provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0043] like Figure 1 As shown, the data processing system 100 for unmanned vending includes: an equipment service module 110 , an identification service module 120 and a commodity service module 130 .
[0044] In actual implementation, the data processing system 100 for unmanned vending can be located between each business system and the storage equipment and the identification devices corresponding to the suppliers of the storage equipment, so as to isolate the interaction between the storage equipment and the business system and the interaction between the identification devices corresponding to the suppliers and the business system, so that the business system does not directly interact with the storage equipment and the identification devices corresponding to the suppliers. Therefore, the business system does not need to worry about how to control the storage equipment and how to identify the goods included in the transaction, which can greatly reduce the time and difficulty of business system development, and allow staff to devote more energy to considering how to operate the unmanned vending project.
[0045] The business system may be a business system for unmanned vending. The business system is generally a platform that needs to be developed, which can be used to manage storage equipment and view information such as users, goods and transaction orders. The business system may include at least a transaction system. In addition to the transaction system, the business system may also include at least one of a warehousing system, a logistics system, a price management system and a statistical system. Therefore, the business system may be a subsystem of an unmanned vending system.
[0046] The storage device may be a storage device for unmanned vending. The storage device may be used to store various commodities. In the embodiment of the present application, the storage device is provided with an image acquisition device, such as any camera or any camera. The image acquisition device may be used to acquire images of the internal storage space of the storage device before and after the user takes out the commodity, as the image of this transaction. The storage device is also provided with an Internet of Things communication module using at least one Internet of Things protocol.
[0047] In some embodiments, the storage device may also be provided with an audio collection device, such as any type of microphone.
[0048] After the user takes out the goods from the internal storage space of the storage device, the corresponding identification device of the supplier is required to identify the image of this transaction to identify which goods the user has purchased.
[0049] In the related art, a transaction in unmanned vending machines can generally include the following process: the transaction system controls the storage device to open the door; after the door is opened, the user can take out the goods from the internal storage space of the storage device; the storage device collects the image of this transaction, and after the user closes the door, the storage device sends the image of this transaction to the transaction system; the transaction system sends the image of this transaction to the corresponding identification device of the supplier of the storage device; after the identification device identifies the image of this transaction, it returns the identification result to the transaction system; the transaction system generates a bill based on the identification result, and after the payment is deducted according to the bill, the transaction is completed.
[0050] It should be noted that in the relevant technology, the transaction system needs to connect with at least one IoT manufacturer and adapt to the IoT protocol used by the above IoT manufacturers to achieve communication between itself and the storage device.
[0051] The data processing system 100 for unmanned vending may mainly include a device service module 110, an identification service module 120, and a commodity service module 130. In addition to the device service module 110, the identification service module 120, and the commodity service module 130, the data processing system 100 for unmanned vending may also include at least one of functional modules such as a module for storing data, a module for controlling communication, and a module for display.
[0052] The device service module 110 is used to receive the first identifier of the target transaction issued by the transaction system; based on the adapted Internet of Things protocol, send the first identifier and the door opening instruction to the target storage device, and receive the target image corresponding to the first identifier sent by the target storage device; determine the target identification device corresponding to the target storage device; the target identification device is the identification device corresponding to the supplier of the target storage device.
[0053] In actual execution, the user can trigger the transaction system to send the identification of this transaction to the device service module 110 by scanning the QR code corresponding to the target storage device or using the client corresponding to the transaction system. The target storage device can be any storage device. This transaction is the target transaction, and the identification of this transaction is used as the first identification.
[0054] The first identifier may be an ID (Identity Document) or a code of this transaction, which may be a unique identifier used to indicate this transaction. Therefore, the first identifiers of any two transactions are different.
[0055] In some embodiments, business systems such as transaction systems and the device service module 110 can communicate based on mobile communication networks such as Ethernet or 5G.
[0056] After receiving the first identifier of the target transaction, the device service module 110 may send a door opening instruction and the first identifier of the target transaction to the target storage device.
[0057] It should be noted that the storage device and the device service module 110 communicate based on the Internet of Things protocol. The device service module 110 can be pre-adapted to a variety of Internet of Things protocols. In the case where the device service module 110 has adapted the Internet of Things protocol used by the Internet of Things communication module of the target storage device, the target storage device and the device service module 110 can communicate based on the Internet of Things protocol. The embodiments of the present application do not specifically limit the Internet of Things protocol. For example, the Internet of Things protocol can be any general Internet of Things protocol such as the Zigbee protocol or any proprietary Internet of Things protocol of any Internet of Things manufacturer.
[0058] It should be noted that when the transaction system issues the first identifier of the target transaction, the information of the storage device corresponding to the target transaction will also be issued. The storage device corresponding to the target transaction is the target storage device. The target storage device is a registered storage device. The registration information of the registered storage device can be stored in the list of storage devices. The list of storage devices can be queried based on the information of the storage device corresponding to the target transaction to determine the target storage device.
[0059] The door opening instruction may be used to trigger unlocking of the door of the internal storage space of the target storage device. After the user closes the door of the internal storage space of the target storage device, the target storage device may return the target image corresponding to the first identifier to the device service module 110 .
[0060] In some embodiments, the target image may include at least two pictures, or the target image may include at least one video. The two pictures may include pictures of the internal storage space of the target storage device before and after the user takes out the target commodity. The at least one video may include a video of the internal storage space of the target storage device before and after the user takes out the target commodity.
[0061] In some embodiments, the target storage device returns the target image corresponding to the first identifier to the device service module 110. The method may be to return both the first identifier and the target image corresponding to the first identifier to the device service module 110, or the method may be to return both the target image and the information indicating the first identifier to the device service module 110, etc., so that the device service module 110 can determine the identifier of which transaction the image returned by the target storage device corresponds to, that is, the image of which transaction.
[0062] After receiving the target image corresponding to the first identification sent by the target storage device, the device service module 110 may determine the identification device corresponding to the supplier of the target storage device, that is, determine the target identification device corresponding to the target storage device.
[0063] In some embodiments, the device service module 110 may first determine the supplier of the target storage device based on the stored data, and then determine the identification device corresponding to the supplier as the target identification device. Alternatively, the device service module 110 may also directly determine the target identification device corresponding to the target storage device based on the stored correspondence between the storage device and the identification device.
[0064] The identification service module 120 is used to send the target image to the target identification device, and obtain the second identifier of the target commodity included in the target transaction returned by the target identification device based on the target image.
[0065] In actual execution, after determining the target recognition device, the recognition service module 120 can send the target image to the target recognition device. The target recognition device can recognize the target image and determine the target product. The target product is the product purchased by the user in this transaction, that is, the product included in the target transaction. The number of target products can be one or more. After determining the target product, the target recognition device can return the recognition result to the recognition service module 120. The recognition result includes at least the identification of the target product.
[0066] The second identification may be an ID (Identity Document) or a code of each commodity on the supplier side, which may be a unique identifier for indicating the commodity. Therefore, for the same supplier, the second identifications of any two commodities are different.
[0067] In some embodiments, the target identification device may return the second identifier of the target commodity included in the target transaction to the identification service module 120 by returning both the first identifier and the second identifier of the target commodity to the device service module 110, or may return both the second identifier of the target commodity and the information indicating the first identifier to the device service module 110, etc., so that the device service module 110 can determine which transaction includes the second identifier of the target commodity returned by the target identification device.
[0068] The commodity service module 130 is used to convert the second identifier of the target commodity into the third identifier of the target commodity, generate a target transaction message of the target transaction, and provide it for processing by the target business system; the target transaction message carries the first identifier and the third identifier of the target commodity; the target business system includes a transaction system.
[0069] In actual execution, after obtaining the second identifier of the target product, the product service module 130 may convert the second identifier of each target product into the third identifier of the target product based on the stored mapping relationship.
[0070] The third identifier is an ID (Identity Document) or code of each commodity on the business system side, which can be unique and used to identify the commodity. Therefore, the third identifiers of any two commodities are different, and the second identifiers of the same commodity may be different but have the same third identifier.
[0071] After obtaining the third identifiers of all target commodities included in the target transaction, the commodity service module 130 may generate a message carrying the first identifier of the target transaction and the third identifiers of all target commodities included in the target transaction. The message may be called a target transaction message of the target transaction.
[0072] After generating the target transaction message, the data processing system 100 for unmanned vending can send the target transaction message to each target business system in any feasible data sending method, so that each target business system can process the target transaction message and realize the corresponding function.
[0073] In some embodiments, the above feasible data transmission methods may include but are not limited to any one of direct transmission and placing in a message queue, etc. The specific data transmission method is not limited in the embodiments of the present application.
[0074] The target business system at least includes a transaction system. The transaction system processes the target transaction message, deducts the payment, and completes the transaction. It is understandable that, in addition to the transaction system, the target business system may not include or include at least one other business system, such as the aforementioned warehousing system, logistics system, price management system, or statistical system.
[0075] It can be understood that, through the above process, the data processing system 100 for unmanned vending can serve as an intermediary between each business system and storage equipment, as well as an intermediary between each business system and the identification equipment corresponding to the supplier, to complete a complete transaction process including opening the storage device door, image acquisition, image recognition, and deduction of payment, and successfully complete a transaction.
[0076] According to the data processing system for unmanned vending provided in the embodiment of the present application, the data processing system for unmanned vending interacts with storage devices and identification devices corresponding to suppliers to isolate the interaction between the storage devices and the business system, and the interaction between the identification devices corresponding to suppliers and the business system. The data processing system for unmanned vending can dynamically integrate and switch existing Internet of Things protocols and suppliers. When the Internet of Things manufacturer and / or supplier changes, a simple configuration modification is made in the data processing system for unmanned vending to achieve the adaptation of the new Internet of Things protocol and the corresponding change of the commodity identification conversion without changing the business system. Therefore, it is possible to avoid the defects in the related technology that when the Internet of Things manufacturer and / or supplier changes, the business system needs to be modified to adapt to the new Internet of Things protocol and the corresponding change of the commodity identification conversion, which greatly increases the time and difficulty of business system development, thereby greatly improving the development efficiency of the unmanned vending system.
[0077] In some embodiments, Figure 2 As shown, the data processing system 100 for unmanned vending further includes: a distribution application module 140 for determining a target business system corresponding to a target transaction, and distributing the target transaction message to a target message queue corresponding to each target business system.
[0078] In actual implementation, the data processing system 100 for unmanned vending may also include a distribution application module 140 .
[0079] The distribution application module 140 may determine, according to business requirements, the transaction system in all business systems and N other business systems except the transaction system as target business systems corresponding to the target transaction.
[0080] It should be noted that each business system has a corresponding message queue, and the message queue corresponding to the target business system can be called the target message queue. Any two business systems can correspond to the same message queue or different message queues.
[0081] After determining the target business system, the distribution application module 140 may distribute the target transaction message to the target message queue corresponding to each target business system, so that each target business system can take out the target transaction message from its corresponding target message queue and process it.
[0082] Message Queue (MQ) is a communication mechanism between applications, which allows applications to asynchronously transmit messages between different processes or machines. The core concepts of MQ include: Producer, Broker and Consumer.
[0083] The producer is responsible for creating and sending messages to the message queue. The producer in the embodiment of the present application may be the commodity service module 130. The agent is the message queue server, which, as a middleware, is responsible for storing and forwarding messages. The message queue server in the embodiment of the present application may be the distribution application module 140. The consumer is responsible for obtaining and processing messages from the message queue. The producer in the embodiment of the present application may be each target business system.
[0084] The main advantages of using message queues include: decoupling, asynchronous communication, and peak-shaving and valley-filling. Decoupling refers to reducing the dependencies between applications and improving the stability and scalability of the entire data processing system 100 for unmanned vending and the business system. Asynchronous communication refers to allowing applications to communicate asynchronously, thereby improving response speed and throughput. Peak-shaving and valley-filling means that in the case of burst traffic, buffering can be performed instead of real-time processing, thereby reducing the pressure on the system.
[0085] According to the data processing system for unmanned vending provided in the embodiment of the present application, the target transaction message is distributed to the target message queue corresponding to each target business system through the distribution application module, which can realize system decoupling, asynchronous communication and peak shaving, thereby improving the stability and scalability of the system.
[0086] In some embodiments, Figure 2 As shown, the device service module 110 includes: an Internet of Things docking unit 111 and an Internet of Things control unit 112.
[0087] In actual implementation, the device service module 110 may include components such as an IoT docking unit 111 and an IoT control unit 112 .
[0088] The IoT docking unit 111 is used to communicate with the storage device; the IoT docking unit 111 has been adapted to multiple IoT protocols.
[0089] In actual implementation, the IoT docking unit 111 can be used to adapt to the IoT protocols of various IoT manufacturers.
[0090] In some embodiments, IoT manufacturers typically use the MQTT (Message Queuing Telemetry Transport) protocol to establish a link between the business system and IoT devices, providing a stable network environment for device control and data upload.
[0091] The MQTT protocol is a lightweight, publish / subscribe-based communication protocol. The MQTT protocol is built on top of the TCP / IP protocol and is designed for resource-constrained devices and low-bandwidth, high-latency, or unreliable networks. The MQTT protocol can be applied to remote devices with low hardware performance and environments with poor network conditions. It is widely used in Internet of Things (IoT) applications and can provide efficient communication between sensors, actuators, and other devices.
[0092] The main features of the MQTT protocol include: lightweight, simple and easy to implement, one-to-many message distribution, ordered and lossless two-way connection, support for multiple message service qualities, and client-server architecture.
[0093] The MQTT protocol is designed to occupy a small bandwidth and is suitable for low-bandwidth and low-power remote device communications, so it has the characteristics of being lightweight. The MQTT protocol is simple, open, and easy to implement, so it can be widely used in the fields of the Internet of Things, small devices, mobile applications, etc. The MQTT protocol provides a one-to-many message publishing mode, which helps to decouple applications and improve the flexibility of the system. The MQTT protocol provides an ordered and lossless two-way connection to ensure the reliable transmission of messages. The MQTT protocol supports different message service qualities (QoS), including at most once, at least once, and only once, to meet the needs of different applications. The MQTT protocol includes three roles: publisher, broker (Broker, server) and subscriber, among which Broker is responsible for the distribution of messages.
[0094] It is understandable that, in addition to the MQTT protocol, the IoT protocols of various IoT manufacturers may also be other IoT protocols. In some embodiments, the IoT protocols of the IoT manufacturers may also use a protocol for data transmission through a message queue.
[0095] The IoT control unit 112 is used to register and control storage devices.
[0096] In actual execution, the IoT control unit 112 may store the registration information of the registered storage device, and issue a control instruction to the registered storage device to control the registered storage device.
[0097] In some embodiments, for any storage device, the IoT control unit 112 may update the registration information of the storage device to the list of storage devices for storage, thereby completing the registration of the storage device.
[0098] In some embodiments, the registration information of the storage device may include the name, identity, network address, supplier (or corresponding identification device) and the Internet of Things protocol used of the storage device.
[0099] In some embodiments, the registration information of the storage device may be carried in a registration request sent by the storage device to the IoT control unit 112 , or may be pre-stored in a list of storage devices.
[0100] In some embodiments, for any registered storage device, the IoT control unit 112 can issue various control instructions to the storage device according to the registration information of the storage device, and send the control instructions to the storage device via the IoT docking unit 111 to control the storage device.
[0101] According to the data processing system for unmanned vending provided in the embodiment of the present application, communication is performed with the storage device through the IoT docking unit that has been adapted to a variety of IoT protocols, and the storage device is registered and controlled through the IoT control unit, which can avoid the business system from directly docking with the IoT manufacturer. In the event of a change in the IoT manufacturer, a simple configuration modification is made in the data processing system for unmanned vending to achieve adaptation to the new IoT protocol without changing the business system. Therefore, it is possible to avoid the defects of the related technology that, in the event of a change in the IoT manufacturer, the business system needs to be modified to adapt to the new IoT protocol and other functions, which greatly increases the time and difficulty of business system development, thereby greatly improving the development efficiency of the unmanned vending system.
[0102] In some embodiments, the IoT control unit 112 is further configured to determine a target identification device based on a list of storage devices.
[0103] In actual execution, the IoT control unit 112 can also query the list of storage devices based on the information of the target storage device to determine the supplier of the target storage device; after determining the supplier of the target storage device, the identification device corresponding to the supplier is determined as the target identification device. Alternatively, in the case where the registration information of the storage device includes the identification device corresponding to the supplier of the storage device, the IoT control unit 112 can also query the list of storage devices based on the information of the target storage device to directly determine the target identification device.
[0104] According to the data processing system for unmanned vending provided in the embodiment of the present application, by querying the list of storage devices to determine the target identification device, the target identification device can be determined conveniently, accurately and quickly without the need for the business system to be connected to the supplier. In the event of a change in the supplier, a simple update of the registration information of the storage device in the data processing system for unmanned vending can be performed to achieve connection with the new supplier without changing the business system. Therefore, it is possible to avoid the defects of the related technology that, in the event of a change in the supplier, the business system needs to be modified to connect with the new supplier, which greatly increases the time and difficulty of business system development, thereby greatly improving the development efficiency of the unmanned vending system.
[0105] In some embodiments, Figure 2 As shown, the commodity service module 130 includes: an association unit 131, which is used to obtain the third identifier of the target commodity based on the correspondence between the second identifier and the third identifier of the stored commodity.
[0106] In actual implementation, the commodity service module 130 may include an association unit 131. The association unit 131 may pre-store the correspondence between the second identifier and the third identifier of each commodity.
[0107] In some embodiments, the above correspondence relationship may be stored in a database or in a document in a form such as a spreadsheet.
[0108] For each target product, based on the correspondence between the second identifier and the third identifier of the product, the third identifier corresponding to the second identifier of the target product can be determined, thereby obtaining the third identifier of the target product.
[0109] According to the data processing system for unmanned vending provided in the embodiment of the present application, the third identification of the target product is obtained through the association unit based on the correspondence between the second identification and the third identification of the stored product, which can avoid the business system from converting the second identification and the third identification of the product. There is no need for the business system to connect with the supplier. In the event of a change in the supplier, a simple configuration modification is made in the data processing system for unmanned vending to achieve the corresponding change in the conversion of the product identification without changing the business system. Therefore, it can avoid the defects of the related technology that, in the event of a change in the supplier, the business system needs to be modified to perform the corresponding change in the conversion of the product identification, etc., which greatly increases the time and difficulty of business system development, thereby greatly improving the development efficiency of the unmanned vending system.
[0110] In some embodiments, the association unit 131 is specifically used to obtain the fourth identifier of the target product based on the correspondence between the second identifier and the fourth identifier of the stored product; and to obtain the third identifier of the target product based on the correspondence between the fourth identifier and the third identifier of the stored product.
[0111] In actual implementation, the correspondence between the second identifier and the third identifier of the commodity may include a first correspondence and a second correspondence. The first correspondence is the correspondence between the second identifier and the fourth identifier of the commodity. The second correspondence is the correspondence between the fourth identifier and the third identifier of the commodity.
[0112] The fourth identifier may be an ID (Identity Document) or a code of each commodity on the data processing system for unmanned vending, which may be a unique identifier for indicating the commodity. Therefore, for the same data processing system for unmanned vending, the second identifiers of any two commodities are different.
[0113] For each target product, the association unit 131 can first determine the fourth identifier corresponding to the second identifier of the target product based on the first corresponding relationship, thereby obtaining the fourth identifier of the target product; after obtaining the fourth identifier of the target product, the association unit 131 can determine the third identifier corresponding to the fourth identifier of the target product based on the second corresponding relationship, thereby obtaining the second identifier of the target product.
[0114] It is understandable that for the same commodity, the identifiers on the business system side, the supplier side, and the data processing system side for unmanned vending can be different, so the business system side and the supplier side can only meet the realization of their own functions without knowing the identifier of each commodity on the other side. Since the data processing system side for unmanned vending acts as an intermediary, it needs to know the identifier of each commodity on the business system side and the supplier side in order to meet its own function realization, so as to convert the identifier and ensure the normal realization of the functions on the business system side and the supplier side.
[0115] According to the data processing system for unmanned vending provided in the embodiment of the present application, the fourth identification of the target commodity is obtained based on the correspondence between the second identification and the fourth identification of the stored commodity by the association unit, and then the third identification of the target commodity is obtained based on the correspondence between the fourth identification and the third identification of the stored commodity. This can avoid the business system from converting the second identification and the third identification of the commodity, and there is no need for the business system to connect with the supplier. In the event of a change in the supplier, a simple configuration modification is made in the data processing system for unmanned vending to achieve the corresponding change in the conversion of the commodity identification without changing the business system. Therefore, it can avoid the defects of the related technology that, in the event of a change in the supplier, the business system needs to be modified to perform the corresponding change in the conversion of the commodity identification, etc., which greatly increases the time and difficulty of business system development, thereby greatly improving the development efficiency of the unmanned vending system.
[0116] In some embodiments, Figure 2 As shown, the data processing system 100 for unmanned vending also includes: a supervision module 150, which is used to monitor the information of IoT manufacturers corresponding to each adapted IoT protocol, the information of each supplier, the information of each storage device, the information of each commodity and the information of each business system.
[0117] In actual implementation, the data processing system 100 for unmanned vending may also include a supervision module 150 .
[0118] The main functions of the supervision module 150 include monitoring the information of business systems, IoT manufacturers, suppliers, commodities, storage devices, etc. in the data processing system 100 for unmanned vending. The information of suppliers may include the information of the identification device corresponding to the supplier.
[0119] According to the data processing system for unmanned vending provided in the embodiment of the present application, the information of IoT manufacturers, supply manufacturers, storage devices, commodities and business systems is monitored through the supervision module, which can effectively ensure the normal operation of the entire system.
[0120] In order to facilitate the understanding of the above embodiments of the present application, Figure 3 The overall architecture of the data processing system 100 for unmanned vending is described.
[0121] like Figure 3 As shown, Figure 3 The left part of the figure is N business systems. One of the various business systems may be a transaction system, and the others may be any system, such as a warehousing system, a logistics system, a price management system, and a statistical system. Any of the systems may be a backend system or an external system. Figure 3The middle part is a data processing system 100 for unmanned vending. Figure 3 The right part of is a storage device and an identification device. The number of storage devices and identification devices can be M and K respectively. Wherein, N, M and K are integers greater than or equal to 1.
[0122] In the device linking and control part, the storage device is linked to the business system through the data processing system 100 for unmanned vending, and the business system sends control instructions to the storage device through the data processing system 100 for unmanned vending. The data processing system 100 for unmanned vending has been internally connected to various IoT manufacturers and adapted to the IoT protocols of the above-mentioned IoT manufacturers. Different IoT manufacturers can be switched at any time for different storage devices and / or different business systems.
[0123] In the device data uploading part, the data uploaded by the storage device can be placed in the message queue by the data processing system 100 for unmanned vending. Figure 3 L message queues are shown, where L is an integer greater than or equal to 1. The business system can consume the data uploaded by its corresponding storage device as needed, which can avoid system crashes caused by large amounts of data upload.
[0124] In the product data synchronization and product identification part, the data processing system 100 for unmanned vending is provided with a basic product database. After being associated with the products in the business system, the correspondence between the products in the business system and the products of any supplier can be configured, thereby realizing imperceptible switching of suppliers.
[0125] In the supervision platform part, the data processing system 100 for unmanned vending can monitor the information such as business systems, IoT manufacturers, suppliers, commodities and storage equipment in the system through the supervision module 150.
[0126] like Figure 3 As shown, the overall architecture of the data processing system 100 for unmanned vending may include a presentation layer 310 , a gateway layer 320 , a service layer 330 , and a storage layer 340 .
[0127] The display layer 310 can display different interfaces to facilitate users to perform operations such as storage device management, storage device grouping, product management, supplier management, message management, and system settings.
[0128] The gateway layer 320 can be used to implement load balancing and various gateway functions. The various gateway functions mentioned above may include but are not limited to gateway authentication, routing, current limiting, downgrade, blacklist and whitelist, and https, etc. A RESTful architecture can be used between the gateway layer 320 and the service layer 330.
[0129] The service layer 330 is mainly used for access services, authentication and other services. The message link of the service layer 330 mainly involves the device service module 110 and the distribution application module 140. In addition to the device service module 110 and the distribution application module 140, the service layer 330 may also include an identification service module 120 and a commodity service module 130. The identification service module 120 may perform video recognition, image recognition and voice recognition, etc. through identification devices. The commodity service module 130 may identify commodity associations (referring to association with the second identifier of the commodity) and business commodity associations (referring to association with the third identifier of the commodity) based on the basic commodity library. The commodity data conversion between the identification service module 120 and the commodity service module 130 is to convert the second identifier of the target commodity into the third identifier of the target commodity.
[0130] The business system can also control the device, that is, control the storage device, through the service layer 330. The business system can also add new products and / or query products through the service layer 330.
[0131] The storage layer 340 is used to store data and may include at least one database, such as MySQL.
[0132] Combine the following Figure 4 , the operation process of the data processing system 100 for unmanned vending is explained.
[0133] The business system (specifically, the transaction system) sends a transaction request through the data processing system 100 for unmanned vending. The transaction request may carry information such as the ID of the target transaction and the ID of the target storage device. The data processing system 100 for unmanned vending may control the target storage device to open the door based on the IoT protocol of the IoT manufacturer that has been adapted.
[0134] After the user closes the door of the target storage device, the target storage device may return the target image and the ID of the target transaction to the data processing system 100 for unmanned vending. The target image may be a video or a picture.
[0135] The data processing system 100 for unmanned vending can query the list of storage devices based on the ID of the target storage device, etc., determine the target identification device, and then send the above target image and the ID of the target transaction to the target identification device for identification.
[0136] After the target recognition device recognizes the target image, the recognition result and the ID of the target transaction can be returned to the data processing system 100 for unmanned vending. The data processing system 100 for unmanned vending can determine which business systems to distribute the recognition result to through query. The above-mentioned business systems are the target business systems.
[0137] The data processing system 100 for unmanned vending machines can convert the second identifier of the target commodity contained in the identification result into the third identifier of the target commodity based on the correspondence between the second identifier and the third identifier of the commodity, generate a target transaction message for the target transaction and put the target transaction message into MQ, waiting for consumption by the target business system.
[0138] The embodiment of the present application also provides a data processing method for unmanned vending based on any of the above-mentioned data processing systems 100 for unmanned vending.
[0139] Among them, the data processing method for unmanned vending can be applied to a terminal, and can be specifically executed by hardware or software in the terminal.
[0140] The terminal includes, but is not limited to, a portable communication device such as a mobile phone or tablet computer with a touch-sensitive surface (e.g., a touch screen display and / or a touch pad). It should also be understood that in some embodiments, the terminal may not be a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., a touch screen display and / or a touch pad).
[0141] In the following various embodiments, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse and a joystick.
[0142] The data processing method for unmanned vending provided in the embodiments of the present application may be executed by an electronic device or a functional module or functional entity in the electronic device that can implement the data processing method for unmanned vending. The electronic devices mentioned in the embodiments of the present application include but are not limited to mobile phones, tablet computers, computers, cameras, and wearable devices. The data processing method for unmanned vending provided in the embodiments of the present application is described below using an electronic device as an example of the execution subject.
[0143] like Figure 5 As shown, the data processing method for unmanned vending includes: step 510, step 520, step 530, step 540 and step 550.
[0144] Step 510: Receive a first identifier of a target transaction issued by a transaction system;
[0145] Step 520: Based on the adapted Internet of Things protocol, a first identifier and a door opening instruction are sent to the target storage device;
[0146] Step 530: receiving a target image corresponding to the first identifier sent by the target storage device, and determining a target identification device corresponding to the target storage device; the target identification device is an identification device corresponding to the supplier of the target storage device;
[0147] Step 540: Send the target image to the target recognition device, and obtain the second identifier of the target commodity included in the target transaction returned by the target recognition device based on the target image;
[0148] Step 550: convert the second identifier of the target commodity into the third identifier of the target commodity, generate a target transaction message of the target transaction, and provide it to the target business system for processing; the target transaction message carries the first identifier and the third identifier of the target commodity; the target business system includes a transaction system.
[0149] In actual implementation, the implementation process of the above-mentioned data processing method for unmanned vending can refer to any of the aforementioned embodiments of the data processing system 100 for unmanned vending, and will not be repeated here.
[0150] According to the data processing method for unmanned vending provided in the embodiment of the present application, the data processing system for unmanned vending interacts with the storage device and the identification device corresponding to the supplier, isolates the interaction between the storage device and the business system, and the interaction between the identification device corresponding to the supplier and the business system. The data processing system for unmanned vending can dynamically integrate and switch existing Internet of Things protocols and suppliers. When the Internet of Things manufacturer and / or supplier changes, a simple configuration modification is made in the data processing system for unmanned vending to achieve the adaptation of the new Internet of Things protocol and the corresponding change of the commodity identification conversion without changing the business system. Therefore, it can avoid the defects of the related technology that when the Internet of Things manufacturer and / or supplier changes, the business system needs to be modified to adapt to the new Internet of Things protocol and the corresponding change of the commodity identification conversion, which greatly increases the time and difficulty of business system development, thereby greatly improving the development efficiency of the unmanned vending system.
[0151] The storage device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0152] The storage device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0153] The storage device provided in the embodiment of the present application can achieve Figure 5 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0154] In some embodiments, Figure 6 As shown, an embodiment of the present application further provides an electronic device 600, including a processor 610, a memory 620, and a computer program stored in the memory 620 and executable on the processor 610. When the program is executed by the processor 610, each process of the above-mentioned data processing method embodiment for unmanned vending is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0155] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0156] An embodiment of the present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned data processing method embodiment for unmanned vending are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0157] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0158] An embodiment of the present application also provides a computer program product, including a computer program, which implements the above-mentioned data processing method for unmanned vending when executed by a processor.
[0159] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0160] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned data processing method embodiment for unmanned vending, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0161] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0162] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0163] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0164] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0165] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0166] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. A data processing system for unmanned vending machines, characterized in that, include: The device service module is used to receive the first identifier of the target transaction issued by the transaction system; Based on the adapted IoT protocol, the first identifier and door opening command are sent to the target storage device, and the target image corresponding to the first identifier sent by the target storage device is received. Identify the target identification device corresponding to the target storage device; the target identification device is the identification device corresponding to the supplier of the target storage device; The identification service module is used to send the target image to the target identification device and obtain the second identifier of the target product contained in the target transaction returned by the target identification device based on the target image; The product service module is used to convert the second identifier of the target product into the third identifier of the target product, generate the target transaction message of the target transaction, and provide it to the target business system for processing. The target transaction message carries the first identifier and the third identifier of the target product; the target business system includes the transaction system.
2. The data processing system for unmanned vending machines according to claim 1, characterized in that, Also includes: The application distribution module is used to determine the target business system corresponding to the target transaction and distribute the target transaction message to the target message queue corresponding to each target business system.
3. The data processing system for unmanned vending machines according to claim 1, characterized in that, The device service module includes: The IoT docking unit is used to communicate with storage devices; the IoT docking unit is compatible with multiple IoT protocols. The IoT control unit is used for the registration and control of storage devices.
4. The data processing system for unmanned vending machines according to claim 3, characterized in that, The IoT control unit is also used to determine the target identification device based on the list of storage devices.
5. The data processing system for unmanned vending machines according to claim 1, characterized in that, The product service module includes: The association unit is used to obtain the third identifier of the target product based on the correspondence between the second identifier and the third identifier of the stored product.
6. The data processing system for unmanned vending machines according to claim 5, characterized in that, The association unit is specifically used to obtain the fourth identifier of the target product based on the correspondence between the second identifier and the fourth identifier of the stored product; and to obtain the third identifier of the target product based on the correspondence between the fourth identifier and the third identifier of the stored product.
7. The data processing system for unmanned vending machines according to any one of claims 1 to 6, characterized in that, Also includes: The monitoring module is used to monitor information on IoT vendors, suppliers, storage devices, products, and business systems corresponding to the adapted IoT protocols.
8. A data processing method for unmanned vending machines, characterized in that, include: Receive the first identifier of the target transaction issued by the trading system; Based on the adapted IoT protocol, the first identifier and door opening command are sent to the target storage device; The system receives a target image corresponding to the first identifier sent by the target storage device, and determines the target identification device corresponding to the target storage device; the target identification device is the identification device corresponding to the supplier of the target storage device. Send the target image to the target recognition device, and obtain the second identifier of the target product contained in the target transaction returned by the target recognition device based on the target image; The second identifier of the target product is converted into the third identifier of the target product, and a target transaction message for the target transaction is generated for processing by the target business system; The target transaction message carries the first identifier and the third identifier of the target product; the target business system includes the transaction system.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the data processing method for unmanned vending machines as described in claim 8.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the data processing method for unmanned vending machines as described in claim 8.
11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the data processing method for unmanned vending machines as described in claim 8.
