A method and device for collecting data of an automatic guided transport vehicle

Through the combination of user datagram protocol and distributed message queue, the problem of network load and data real-time in automatic guided transport vehicle data collection is solved, high availability and high throughput data transmission is achieved, and the real-time and data real-time are ensured. stability.

CN110837423BActive Publication Date: 2024-09-20BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201810941820.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-08-17
Publication Date
2024-09-20
Estimated Expiration
2038-08-17

AI Technical Summary

Technical Problem

Automatic guided transport vehicle data collection is subject to high-frequency wireless data transmission, massive data transmission and centralized data storage requirements. Existing technologies lead to increased network load pressure and unstable data transmission, which may lead to data loss and duplication, affecting data availability and real-time.

Method used

It adopts batch data transmission based on the user datagram protocol, combines the distributed message queue for deduplication and classification processing, sends the data to the IDC in real time through the gateway service, and uses the distributed message queue cluster for management to achieve data streaming transmission and high throughput. amount of storage.

Benefits of technology

It reduces network load, improves high availability and real-time performance of data, saves processor resources, and ensures millisecond-level real-time performance of data and O(1) complexity writing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110837423B
    Figure CN110837423B
Patent Text Reader

Abstract

The present invention discloses a method and device for collecting data of an automated guided vehicle, and relates to the field of computer technology. A specific implementation of the method includes: based on the user datagram protocol, receiving data sent in batches by an automated guided vehicle; deduplicating the data according to the anti-duplicate code of the data; and sending the deduplicated data to a distributed message queue. The method can transmit the data of an automated guided vehicle in batches, thereby reducing the network load. Moreover, the high availability of data is improved through the deduplication mechanism. The distributed message queue has a very high throughput. In a streaming transmission environment, the message data can be directly sent back to the IDC without landing, saving processor resources. Moreover, the data can be collected to the IDC in real time in the form of a data stream, and managed by a distributed message queue cluster, so that the real-time performance of the data is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for collecting data of an automatic guided transport vehicle. Background Art

[0002] The logistics warehousing system deploys a large number of Automated Guided Vehicles (AGV) warehousing systems. Compared with traditional WMS and WCS software systems, there are huge differences in business scenarios. These differences are mainly reflected in: high-frequency wireless data transmission, massive transmission data, and centralized data storage requirements. These three major differences directly lead to greater challenges in real-time data collection of AGV equipment; how to ensure the reliability of data transmission, high availability of collected data, and massive data center back-end storage without affecting production business.

[0003] For the above problem, the existing technology is to realize local data transmission through the device heartbeat data and the console, and then the console writes the data into the MYSQL data table or log for storage. Finally, a unified extraction tool extracts the data in batches to the data center for integration.

[0004] In the process of implementing the above technology, the following problems were found: Frequent heartbeat interactions will significantly increase the number of concurrent communications between AGV equipment and the console, increase the pressure of network load and occupy network bandwidth. The increase in network load and processor load will increase the risk of business system operation and reduce system stability. In addition, network anomalies may cause sensor data loss and data duplication, affecting data availability. Traditional MYSQL business tables require pre-designed business table structures and indexes. The continuous and large-scale writing of massive (10,000 / second) sensor data to MYSQL will bring a lot of storage and query pressure to MYSQL and cause performance problems; this may cause data delays and data real-time performance is difficult to ensure. The way of writing logs will increase the storage pressure of local disks. It is necessary to pay attention to the size of disk space in time to prevent the disk from being full and causing program crashes. The difficulty of parsing log data is high, resulting in reduced data availability. Enterprise-level big data platforms are often deployed in IDC (data center) computer rooms, while storage servers are scattered throughout the country. Data centralized storage requires synchronizing MYSQL tables or logs stored in each warehouse to IDC. At present, there are mature extraction tools that synchronize data in a timed batch extraction manner. The centralized data synchronized by this method has lost its timeliness. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a method and device for collecting data of an automated guided vehicle, which can transmit data of an automated guided vehicle in batches, thereby reducing the network load. In addition, the high availability of data is improved. The distributed message queue has a very high throughput. In a streaming transmission environment, the message data can be sent directly back to the IDC without landing, saving processor resources. In addition, data can be collected to the IDC in real time in the form of a data stream and managed by a distributed message queue cluster, which greatly improves the real-time performance of the data.

[0006] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for collecting data of an automated guided vehicle is provided.

[0007] The method for collecting data of an automated guided transport vehicle in an embodiment of the present invention includes: receiving data sent in batches by an automated guided transport vehicle based on a user datagram protocol; deduplicating the data according to an anti-duplication code of the data; and sending the deduplicated data to a distributed message queue.

[0008] Optionally, the step of sending the deduplicated data to the distributed message queue includes: establishing a gateway service according to transmission requirements; and sending the deduplicated data to the distributed message queue based on the gateway service.

[0009] Optionally, the step of sending the deduplicated data to the distributed message queue includes: supplementing the deduplicated data with static dimension data; and sending the supplemented data to the distributed message queue.

[0010] Optionally, before sending the deduplicated data to the distributed message queue, the method further includes: classifying the data according to a preset classification rule; and adding identification information to the data according to a result of the classification.

[0011] Optionally, after sending the deduplicated data to the distributed message queue, it also includes: the distributed message queue receives data in a single-threaded manner; the distributed message queue classifies the received data according to identification information of the received data; the distributed message queue writes the classified data sequentially to the disk in a log format, and records the offset information of the data.

[0012] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for collecting data of an automated guided vehicle is provided.

[0013] The device for collecting data of an automatic guided transport vehicle in an embodiment of the present invention includes: a receiving module, which is used to receive data sent in batches by an automatic guided transport vehicle based on a user datagram protocol; a deduplication module, which is used to deduplicate the data according to an anti-duplicate code of the data; and a sending module, which is used to send the deduplicated data to a distributed message queue.

[0014] Optionally, the sending module is also used to establish a gateway service according to transmission requirements; based on the gateway service, the deduplicated data is sent to a distributed message queue.

[0015] Optionally, the sending module is further used to supplement the deduplicated data with static dimension data; and send the supplemented data to the distributed message queue.

[0016] Optionally, the device for collecting data of an automated guided vehicle of an embodiment of the present invention further includes an identification information adding module, which is used to classify the data according to preset classification rules; and, based on the classification result, add identification information to the data.

[0017] Optionally, the distributed message queue receives data in a single-threaded manner; the distributed message queue classifies the received data according to identification information of the data; the distributed message queue writes the classified data sequentially to the disk in a log format, and records the offset information of the data.

[0018] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.

[0019] The electronic device of an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement any of the above-mentioned methods for collecting data of an automated guided vehicle.

[0020] To achieve the above-mentioned purpose, according to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, any of the above-mentioned methods for collecting data of an automated guided vehicle is implemented.

[0021] An embodiment of the above invention has the following advantages or beneficial effects: based on the user datagram protocol, data sent in batches by automatic guided vehicles are received, and the collection mode can be flexibly adjusted according to the pressure of device communication through the frequency and mode of data reporting, so as to achieve the purpose of reducing network load; the deduplication mechanism can improve the high availability of data; the distributed message queue has a very high throughput, and in a streaming transmission environment, the message data can be sent directly back to the IDC without landing, so the message data does not need to be serialized during the reporting process, saving processor resources.

[0022] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0024] Figure 1 is a schematic diagram of the main process of the method for collecting data of an automated guided transport vehicle according to an embodiment of the present invention;

[0025] Figure 2 is a schematic diagram of the system structure of a method for collecting data of an automated guided transport vehicle according to an embodiment of the present invention;

[0026] Figure 3 is a schematic diagram of main modules of a device for collecting data of an automatic guided transport vehicle according to an embodiment of the present invention;

[0027] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0028] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0030] Figure 1 Schematic diagram of the main process of the method for collecting data of an automated guided vehicle according to an embodiment of the present invention. Figure 1 As shown, the method for collecting data of an automated guided vehicle according to an embodiment of the present invention mainly includes:

[0031] Step S101: Based on the user datagram protocol, receive the data sent in batches by the automated guided vehicles. The AGV equipment in the automated equipment warehouse reports to the distributed acquisition system in the form of data packets through the wireless network. In order to reduce the network load and interaction frequency, the data is reported in batch upload. In order to prevent data loss and data duplication in the event of a network interruption, data retransmission and data anti-duplicate coding technology should be used. The Exactly-Once feature of the data should be ensured as much as possible from the data generation end.

[0032] For the realization of the above process, a data reporting system can be deployed in the embedded platform of AGV, which is responsible for collecting the sensor data of AGV in one or several warehouses in real time. The collected data is reported regularly or triggered through the UDP (User Datagram Protocol) protocol. The full name of the UDP (User Datagram Protocol) protocol is the User Datagram Protocol, which is a connectionless protocol with the advantages of low resource consumption and fast processing speed. In addition to the traditional message communication mechanism, three mechanisms are also used to ensure the high availability of data, namely message constraints, data retransmission and data anti-duplicate mechanism.

[0033] Specifically, the message content requires the collection of key dynamic data that needs to be collected in real time, such as real-time speed, temperature, etc. At the same time, in order to reduce the processor load of the server and embedded devices, and to utilize the high throughput performance of the distributed message queue, the transmission is carried out in the form of strings. UDP transmission may cause data loss due to network instability. To avoid this problem, the reporting system needs to set up a retransmission mechanism. When it is detected that the network quality is poor and there may be data loss, the most recent data will be cached and sent again after the network quality improves. Define the business primary key (anti-duplicate code) in the message, which is used to identify duplicate data at the receiving end based on the primary key for deduplication.

[0034] Step S102: De-duplicate the data according to the anti-duplicate code of the data. After receiving the data transmitted in batches by the data reporting system, deduplicate the data. Also, under the premise that the data collected by the data reporting system is the dynamic dimension data of the AGV, the de-duplicated data can be supplemented with static dimension data, and the supplemented data can be sent to the distributed message queue. Among them, dynamic dimension data is data that can change in real time, such as real-time speed, temperature, etc.; static dimension data is attribute information, which generally does not change, such as warehouse number, IP address, etc.

[0035] Step S103: Send the deduplicated data to the distributed message queue. Specifically, a gateway service is established according to the transmission requirements; based on the gateway service, the deduplicated data is sent to the distributed message queue. Due to the geographically dispersed physical characteristics of storage warehouses, direct data transmission between different warehouses in different places has problems such as cross-regional, network authority restrictions, and unstable network quality. It is necessary to establish a special gateway service, and the establishment of a dedicated network line can ensure the transmission quality. Therefore, when sending data to the distributed message queue, a special gateway service is called to transmit the data to the distributed message queue cluster of the data center IDC. The distributed message queue cluster consists of multiple servers, and each server acts as a Broker (a server node in the cluster) to receive the sent data. During the sending process, the time in the transmitted data is used as the key to specify which Brokers are sent through a hash algorithm. After receiving the data, the Broker uses the disk paging mechanism to quickly write it to the local disk and record the offset of the data, thereby realizing the rapid caching of massive data. The real-time performance of the data stored in this way can reach the millisecond level, and the data can be written with a complexity of O(1), and accessed quickly with constant time complexity. Among them, the disk paging mechanism is different from the traditional disk writing method and has been optimized to a certain extent. It adopts the disk sequential writing method to add data sequentially to the end of the disk file, which not only reduces the addressing overhead caused by random disk writing, but also improves the writing efficiency. The data is written to the disk file sequentially, and the writing order of each data is recorded when it is written. The ID of this order is the data offset (offset). Moreover, the paging storage of the operating system and the operation of the operating system writing to the disk are not performed in real time, but the file and memory are mapped and managed, and the system's operations on the file will first be executed in the memory. The operation will be synchronized on the disk when the system is idle, which can make the reading and writing of files close to the reading and writing speed of the memory.

[0036] The collected data may have different uses, and each special-purpose data will have a specific identifier for that use, namely, a topic identifier. Since the collected data is not classified according to the purpose of the data, before sending the deduplicated data to the distributed message queue, the data is classified according to the preset classification rules, and identification information is added to the data based on the classification results. After receiving the data in a single-threaded manner, the distributed message queue can classify the data based on the identification information of the received data. In addition, the distributed message queue writes the classified data sequentially to the disk in the format of a log, and records the offset information of the data.

[0037] In the prior art, storage equipment control systems generally interact with automation equipment through heartbeat data and business instructions. The traditional solution is to add the data to be reported, such as equipment navigation data, battery data, etc., to the heartbeat message of the automation equipment. The new message format is serialized and transmitted to the console (the server-side control system used for communication with AGV and instruction interaction in the C / S architecture of the storage system), which is parsed by the console to obtain the collected data and write the data into the MYSQL data table or log for storage. The traditional MYSQL business table requires the business table structure and index to be designed in advance. After the massive (10,000 / second) sensor data is parsed by the console, it is continuously written into the MYSQL table by the worker for storage; or the console writes the data to the local server disk for caching in the form of log writing. In addition, using enterprise-level data synchronization tools, data or logs are synchronized from each storage server to the data center (IDC) in batches every day for processing to achieve centralized data storage. The existing problems mainly include: high network load caused by heartbeat collection; high processor load caused by message data serialization and deserialization; information loss and duplication caused by network anomalies; reduced disk life caused by frequent I / O of warehouse servers; low availability of log data; high latency of centralized storage, which improves the timeliness of T+1 to real-time (millisecond level).

[0038] In view of the above problems, the embodiment of the present invention separates data collection and device control. The frequency and mode of data reporting can be controlled through the data reporting system, and the collection mode can be flexibly adjusted according to the pressure of device communication, so as to achieve the purpose of reducing network load. In addition, since the distributed message queue has a very high throughput, in a streaming transmission environment, the message data can be directly sent back to the IDC without landing, so the message data can be reported without serialization, saving processor resources. Through a logically simple data retransmission and data deduplication mechanism, a certain data redundancy is exchanged for high data availability. A virtual data pipeline can be maintained, and high-frequency read and write operations are handled by the distributed message queue cluster. The I / O volume of the warehouse server is greatly reduced, and at the same time, through the offset service of the distributed message queue, the required data can be quickly located to ensure the real-time performance of the data. Warehouses across the country can collect data to the IDC in real time in the form of data streams, which are managed by the distributed message queue cluster. The real-time performance of the data has been greatly improved.

[0039] Figure 2 Schematic diagram of the system structure of the method for collecting data of an automated guided vehicle according to an embodiment of the present invention; Figure 2As shown, the system structure of the method for collecting data of an automated guided vehicle according to an embodiment of the present invention includes four parts: a data reporting system, a distributed data collection system, a gateway module, and a distributed message queue cluster.

[0040] The data reporting system is deployed in the embedded platform of AGV and is responsible for the real-time collection of sensor data during the operation of AGV equipment. The collected data is reported to the data receiving module of the distributed data acquisition system in a timed or triggered manner through the UDP protocol. In addition to the traditional message communication mechanism, three mechanisms (message constraint, data retransmission and data anti-duplicate) are also adopted to ensure the high availability of data.

[0041] The distributed data collection system is responsible for receiving the data reported by the data reporting system, deduplicating the reported data, and supplementing the static dimension data (such as warehouse number, IP address, etc.) used to distinguish the business based on the reported data. In addition, according to the data format supported by the distributed message queue, the Key and serialized Value of the data partition are supplemented. In order to ensure the consistency of the data (classify the data according to its purpose), it is necessary to add a topic identifier to the data, and finally call the gateway module to asynchronously send the data to the Broker server corresponding to the distributed message queue cluster according to the partitioning rules. In this case, the partitioning rule refers to the sender specifying which Brokers to send the message to through a hash algorithm based on the Key of the message. A type of data for a specific purpose has a topic identifier and can be sent to several Brokers when it is sent, and there are several partitions.

[0042] The device data receiving module of the distributed data acquisition system provides a receiving service for the device reported data and performs deduplication processing on the data. Due to the large number of AGV devices on site in the warehouse, this module maintains a thread pool to cache the data transmitted by concurrent receiving devices into the memory, and calls the data acquisition module at fixed time intervals or in a triggered manner to send the data out and clear the memory. The data acquisition module of the distributed data acquisition system is called by the device data receiving module. Whenever the device data receiving module is called, the module will use Avro (a data serialization system) to serialize the temporary data sent by the receiving module into a byte array and write it into the Value, and generate a Key based on the current system time, and send the encapsulated Key-value pair to the Broker server corresponding to the distributed message queue cluster according to the partitioning rules. Among them, the Key is the timestamp when the data is sent to the distributed message queue cluster, and its main function is to do data hashing and later data verification.

[0043] The gateway module is responsible for data forwarding services and data quality assurance services in the business network. In actual warehousing business scenarios, automated warehouses may be geographically dispersed. For example, warehousing businesses may exist simultaneously in the Northeast, North China, and Northwest regions. Different warehouses are located in different local area networks and at different distances from the data center, resulting in large differences in the quality of network transmission. In this case, gateway technology is needed to build a virtual dedicated line network, connect warehousing networks in different network segments, and provide high-quality services for network transmission.

[0044] The distributed message queue cluster is responsible for data reception, data caching, data offset management and other services. The distributed message queue cluster consists of several servers, each of which is responsible for receiving data sent by the distributed data acquisition system and writing it to the disk in the form of logs. Such a server is called a Broker. Figure 2 As shown in the figure, there are N brokers in total. Each broker receives the data sent by each sender in a single-threaded manner, so as to ensure that the received data is in a consistent order. Data from different data sources are distinguished by topic. The size of the received file is fixed using the page cache mechanism log file, and the corresponding index file is generated at the same time to record the offset information of the data, which is convenient for data reading. Metadata Server (metadata management service node) is responsible for managing the brokers in the distributed message queue cluster, mainly including monitoring the survival of the brokers and maintaining the metadata information in the brokers. Brokers report their status information to Metadata Server regularly through RPC heartbeats. Brokers maintain the status list of brokers in the cluster through heartbeat information. Once a new broker is found in the cluster or a broker exits the cluster, it will issue a command to the broker to update the data partition information to ensure the balance of data receiving load as much as possible. In addition, if it is found that the broker is terminated due to an abnormality, a restart command should also be issued to restart the broker service. The purpose of enhancing service stability and fault tolerance is achieved.

[0045] The AGV equipment in the automated equipment warehouse reports the collected data to the distributed collection system in the form of data packets through the wireless network. In order to reduce the network load and interaction frequency, the data is reported to the data receiving module in batch upload. In order to prevent data loss and data duplication in the event of network interruption, data retransmission and data anti-duplicate coding technology should be used to ensure the Exactly-Once characteristics of the data from the data generation end as much as possible. After the data receiving module receives the reported AGV equipment data, it is temporarily cached in the memory, and the data collection module's sending interface is asynchronously called to send the data to the distributed message queue cluster at a fixed time interval or when the trigger rule is reached. Among them, there are two main triggering rules. When the AGV is abnormal and the data volume reaches the storage limit of the cache area, the timing logic is no longer used, and all cached data is immediately sent to the distributed message queue cluster. Due to the geographically dispersed physical characteristics of storage warehouses, the direct data transmission of different warehouse receiving modules in different places has problems such as cross-regional, network permission restrictions, and unstable network quality. It is necessary to establish a dedicated gateway service and a dedicated network line to ensure transmission quality. Therefore, the acquisition module of the data acquisition system calls the transmission interface of the gateway module to transmit data to the distributed message queue cluster of the data center. The distributed message queue cluster consists of multiple servers, and each server acts as a Broker to receive the data sent by the acquisition module. The acquisition module uses the time in the transmission data as the key and sends it to those Brokers through a hash algorithm. After receiving the data, the Broker uses the disk paging mechanism to quickly write it to the local disk and record the offset of the data, thereby realizing the rapid caching of massive data. The real-time performance of data stored in this way can reach the millisecond level, and the data can be written with O(1) complexity and quickly accessed with constant time complexity. Finally, the data center IDC can pull data from the distributed message queue cluster for consumption according to business needs.

[0046] Figure 3 Schematic diagram of main modules of the device for collecting data of an automatic guided vehicle according to an embodiment of the present invention, such as Figure 3 As shown, the device 300 for collecting data of an automated guided vehicle according to an embodiment of the present invention includes a receiving module 301 , a deduplication module 302 and a sending module 303 .

[0047] The receiving module 301 is used to receive data sent in batches by the automatic guided transport vehicle based on the user datagram protocol.

[0048] The deduplication module 302 is used to perform deduplication processing on the data according to the anti-duplication code of the data.

[0049] The sending module 303 is used to send the deduplicated data to the distributed message queue. The sending module is also used to establish a gateway service according to the transmission requirements; based on the gateway service, the deduplicated data is sent to the distributed message queue. The sending module is also used to supplement the deduplicated data with static dimension data; and send the supplemented data to the distributed message queue.

[0050] The device for collecting data of an automated guided vehicle in an embodiment of the present invention further includes an identification information adding module, which is used to classify data according to a preset classification rule; and, according to the classification result, to add identification information to the data. The distributed message queue receives data in a single-threaded manner; the distributed message queue classifies the received data according to the identification information; the distributed message queue writes the classified data sequentially to the disk in a log format, and records the offset information of the data.

[0051] In view of the above problems, the embodiment of the present invention separates data collection and device control. The frequency and mode of data reporting can be controlled through the data reporting system, and the collection mode can be flexibly adjusted according to the pressure of device communication, so as to achieve the purpose of reducing network load. In addition, since the distributed message queue has a very high throughput, in a streaming transmission environment, the message data can be directly sent back to the IDC without landing, so the message data can be reported without serialization, saving processor resources. Through a logically simple data retransmission and data deduplication mechanism, a certain data redundancy is exchanged for high data availability. A virtual data pipeline can be maintained, and high-frequency read and write operations are handled by the distributed message queue cluster. The I / O volume of the warehouse server is greatly reduced, and at the same time, through the offset service of the distributed message queue, the required data can be quickly located to ensure the real-time performance of the data. Warehouses across the country can collect data to the IDC in real time in the form of data streams, which are managed by the distributed message queue cluster. The real-time performance of the data has been greatly improved.

[0052] Figure 4 An exemplary system architecture 400 is shown to which the method for collecting data from an automated guided transport vehicle or the apparatus for collecting data from an automated guided transport vehicle according to an embodiment of the present invention may be applied.

[0053] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0054] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0055] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0056] Server 405 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using terminal devices 401, 402, and 403. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results to the terminal device.

[0057] It should be noted that the method for collecting data of an automated guided vehicle provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the device for collecting data of an automated guided vehicle is generally disposed in the server 405 .

[0058] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0059] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device suitable for implementing an embodiment of the present invention. Figure 5 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0060] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0061] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.

[0062] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.

[0063] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0064] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0065] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be arranged in a processor, for example, they may be described as: a processor including an acquisition receiving module, a deduplication module and a sending module. The names of these modules do not constitute a limitation on the modules themselves in certain cases. For example, the data acquisition of an automated guided vehicle may also be described as a "module for receiving data sent in batches by an automated guided vehicle based on the user datagram protocol".

[0066] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: receiving data sent in batches by an automated guided transport vehicle based on a user datagram protocol; performing deduplication processing on the data according to an anti-duplicate code of the data; and sending the deduplication processed data to a distributed message queue.

[0067] In view of the above problems, the embodiment of the present invention separates data collection and device control. The frequency and mode of data reporting can be controlled through the data reporting system, and the collection mode can be flexibly adjusted according to the pressure of device communication, so as to achieve the purpose of reducing network load. In addition, since the distributed message queue has a very high throughput, in a streaming transmission environment, the message data can be directly sent back to the IDC without landing, so the message data can be reported without serialization, saving processor resources. Through a logically simple data retransmission and data deduplication mechanism, a certain data redundancy is exchanged for high data availability. A virtual data pipeline can be maintained, and high-frequency read and write operations are handled by the distributed message queue cluster. The I / O volume of the warehouse server is greatly reduced, and at the same time, through the offset service of the distributed message queue, the required data can be quickly located to ensure the real-time performance of the data. Warehouses across the country can collect data to the IDC in real time in the form of data streams, which are managed by the distributed message queue cluster. The real-time performance of the data has been greatly improved.

[0068] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for collecting data of an automated guided vehicle, characterized in that: include: Based on the User Datagram Protocol, receiving data sent in batches by automated guided vehicles; Deduplication processing is performed on the data according to the anti-duplication code of the data; The deduplicated data is sent to the distributed message queue, including: supplementing the deduplicated data with static dimension data; and sending the supplemented data to the distributed message queue.

2. The method according to claim 1, characterized in that The steps of sending the deduplicated data to the distributed message queue include: Gateway services established according to transmission requirements; Based on the gateway service, the deduplicated data is sent to a distributed message queue.

3. The method according to claim 1, characterized in that Before sending the deduplicated data to the distributed message queue, it also includes: Classifying the data according to preset classification rules; According to the classification result, identification information is added to the data.

4. The method according to claim 3, characterized in that After sending the deduplicated data to the distributed message queue, it also includes: The distributed message queue receives data in a single-threaded manner; The distributed message queue is classified according to identification information of received data; The distributed message queue writes the classified data sequentially to the disk in a log format and records the offset information of the data.

5. A device for collecting data of an automatic guided vehicle, characterized in that: include: A receiving module, for receiving data sent in batches by the automated guided transport vehicle based on the user datagram protocol; A deduplication module, used for performing deduplication processing on the data according to the anti-duplication code of the data; The sending module is used to send the deduplicated data to the distributed message queue, including: supplementing the deduplicated data with static dimension data; and sending the supplemented data to the distributed message queue.

6. The device according to claim 5, characterized in that The sending module is also used to establish a gateway service according to transmission requirements; based on the gateway service, the deduplicated data is sent to the distributed message queue.

7. The device according to claim 5, characterized in that It also includes an identification information adding module, which is used to classify the data according to a preset classification rule; and add identification information to the data according to the classification result.

8. The device according to claim 7, characterized in that The distributed message queue receives data in a single-threaded manner; the distributed message queue classifies the received data according to identification information; the distributed message queue writes the classified data sequentially to a disk in a log format, and records offset information of the data.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.

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