CN116400618A - An Intelligent Control Method Based on Time Synchronization Used in Logistics System - Google Patents

An Intelligent Control Method Based on Time Synchronization Used in Logistics System Download PDF

Info

Publication number
CN116400618A
CN116400618A CN202310210586.3A CN202310210586A CN116400618A CN 116400618 A CN116400618 A CN 116400618A CN 202310210586 A CN202310210586 A CN 202310210586A CN 116400618 A CN116400618 A CN 116400618A
Authority
CN
China
Prior art keywords
time
goods
upper computer
control
logistics system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310210586.3A
Other languages
Chinese (zh)
Inventor
殷明睿
刘劼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Institute of Technology Shenzhen
Original Assignee
Harbin Institute of Technology Shenzhen
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Institute of Technology Shenzhen filed Critical Harbin Institute of Technology Shenzhen
Priority to CN202310210586.3A priority Critical patent/CN116400618A/en
Publication of CN116400618A publication Critical patent/CN116400618A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Development Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Automation & Control Theory (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an intelligent control method based on time synchronization applied to a logistics system. The method realizes intelligent control by system initialization, path planning and control of the driving equipment, and can ensure that goods are transported to a designated destination according to the planned path under a control instruction preset by each node, so that the algorithm can effectively improve the working efficiency of the conveying system. The intelligent control method based on time synchronization provided by the invention has the advantages that in a logistics warehouse center with wide occupied area, large cargo quantity and high time efficiency and accuracy, the cargo can be transported to a designated place in a short time with extremely high accuracy, and the transport efficiency of the cargo is effectively improved.

Description

一种运用于物流系统的基于时间同步的智能控制方法An Intelligent Control Method Based on Time Synchronization Used in Logistics System

技术领域technical field

本发明属于人工智能技术领域,特别是涉及一种运用于物流系统的基于时间同步的智能控制方法。The invention belongs to the technical field of artificial intelligence, in particular to an intelligent control method based on time synchronization applied to a logistics system.

背景技术Background technique

目前现有的物流控制系统,主要采用传感器-服务器的方式进行物品的感知和定位,并且通过服务器-边缘设备--控制装置实现运动控制,各模块之间通过通信线缆或局域无线网进行连接,能够有效地控制物体进行运输。At present, the existing logistics control system mainly uses the sensor-server method to sense and locate items, and realizes motion control through the server-edge device-control device. Connected, able to efficiently control objects for transport.

但这种系统存在着通信延迟的缺点。这一问题主要存在于传感器和上位机通信,以及上位机和分布式边缘设备的通信中。由于时间延迟的存在,高速状态下多方向的物流控制存在巨大的不确定性,难以满足系统所需求的精准程度。But this system has the disadvantage of communication delay. This problem mainly exists in the communication between the sensor and the host computer, and the communication between the host computer and distributed edge devices. Due to the existence of time delay, there are huge uncertainties in the multi-directional logistics control at high speed, and it is difficult to meet the accuracy required by the system.

同时,当系统的控制装置拓展到一定程度时,通信中将会产生消息队列堵塞的情况:当所属指令未抵达指定的时间节点时,报文将堆积在传输队列中造成堵塞,但当系统抵达了指定的时间节点后,多个数据包又将在同一时刻传输出去,这将会产生数据覆盖或者排队时延等问题,会进一步加剧的时间延迟所带来的负面效果。At the same time, when the control device of the system expands to a certain extent, the message queue will be blocked in the communication: when the instruction does not arrive at the specified time node, the messages will accumulate in the transmission queue and cause congestion, but when the system arrives After the specified time node is specified, multiple data packets will be transmitted at the same time, which will cause problems such as data coverage or queuing delay, which will further aggravate the negative effects of time delay.

发明内容Contents of the invention

本发明目的是为了解决现有技术中的问题,提出了一种运用于物流系统的基于时间同步的智能控制方法。The purpose of the present invention is to solve the problems in the prior art, and propose an intelligent control method based on time synchronization applied to the logistics system.

本发明是通过以下技术方案实现的,本发明提出一种运用于物流系统的基于时间同步的智能控制方法,所述方法具体为:The present invention is achieved through the following technical solutions. The present invention proposes an intelligent control method based on time synchronization applied to a logistics system. The method is specifically:

以上位机的时间为基准,将分布式边缘设备与其进行同步,统一时间,以完成控制方法的初始化准备,分布式边缘设备之间需要定时重新进行时间同步,以确保高精度的准确性;Based on the time of the upper computer, synchronize the distributed edge devices with it and unify the time to complete the initialization preparation of the control method. Time synchronization between distributed edge devices needs to be re-synchronized at regular intervals to ensure high-precision accuracy;

预测货物进入物流系统的时间,并以该时间作为基准,调用A*算法对货物的运行路线进行路径规划,并根据线速度和驱动控制的反馈预测物体的运动轨迹,计算出货物抵达每一个节点所需的时间,以及该节点所需发出的控制指令;Predict the time when the goods enter the logistics system, and use this time as a reference, call the A* algorithm to plan the route of the goods, and predict the trajectory of the object according to the linear speed and the feedback of the drive control, and calculate the arrival of the goods at each node The time required, and the control commands that the node needs to issue;

设计一个存有优先级的消息队列,消息内容的格式为:优先级,运行时间,控制指令;该消息内容按照货物进入物流系统的时间进行下发,分布式边缘设备接收到数据后,对目前的所有指令按照设定优先级-运行时间排序,并在指定的运行时间对驱动设备进行控制指令的下发。Design a message queue with priority. The format of the message content is: priority, running time, and control instruction; the message content is sent according to the time when the goods enter the logistics system. After the distributed edge device receives the data, it All commands are sorted according to the set priority-running time, and control commands are issued to the drive equipment at the specified running time.

进一步地,当视觉传感器监测到货物碰撞时,上位机将调用RVO算法重新计算货物的运动轨迹,并且将当前指令的优先级提升为最高,插入队列最前端进行下发,分布式边缘设备收到优先级更高的、同一驱动装置或者同一时间的消息内容后,将覆盖已下达至本机的指令。Furthermore, when the visual sensor detects a cargo collision, the host computer will call the RVO algorithm to recalculate the trajectory of the cargo, and raise the priority of the current instruction to the highest, insert it into the front of the queue for delivery, and the distributed edge device receives After the content of the message with higher priority, the same drive device or the same time, it will overwrite the command that has been sent to the machine.

进一步地,选用PTPd获取网络驱动层时间,进行分布式边缘设备的时间同步。Furthermore, PTPd is selected to obtain the time of the network driver layer to synchronize the time of distributed edge devices.

进一步地,所述PTPd将时间戳的产生位置从物理层上移至网络驱动层,其计算时间偏差的公式为:Further, the PTPd moves the generation position of the time stamp from the physical layer to the network driver layer, and the formula for calculating the time deviation is:

Figure BDA0004112512060000021
Figure BDA0004112512060000021

进一步地,所述分布式边缘设备与上位机之间通过高速实时总线进行连接,传感器与上位机采用POWERLINK或EtherCAT实时工业以太网。Further, the distributed edge device and the upper computer are connected through a high-speed real-time bus, and the sensor and the upper computer use POWERLINK or EtherCAT real-time industrial Ethernet.

进一步地,在路径规划过程中:Further, in the path planning process:

运输开始时,将货物放置在物流系统的起始点,视觉或压力传感器在确认了货物的状况后,将通知上位机开始进行运算;When the transportation starts, the goods are placed at the starting point of the logistics system. After the visual or pressure sensor confirms the condition of the goods, it will notify the host computer to start calculation;

上位机采用A*算法进行路径规划,满足货物从任意起始点按照最优路径抵达任意终点的规划要求,完成路径的规划后,上位机将根据规划的路径及设定的货物运输速度计算出货物经过每个节点时驱动装置所需提供的加速度,以及货物经过该节点的预计时间;The upper computer uses the A* algorithm for path planning to meet the planning requirements for the goods to arrive at any destination from any starting point according to the optimal path. After completing the path planning, the upper computer will calculate the goods according to the planned path and the set cargo transportation speed. The acceleration required to be provided by the driving device when passing through each node, and the estimated time for the goods to pass through the node;

完成计算后,上位机将计算好的各个节点的控制指令与时间节点一起合成指定格式的报文,下发给各个节点所属的边缘设备,该边缘设备判断已有的控制指令与该下发的指令是否会产生冲突,若是,则将冲突回报给上位机,上位机调用RVO算法重新计算相应的数据;若不产生冲突,则边缘设备需要在抵达所记录的时间节点时,将控制指令下发给指定的驱动装置。After the calculation is completed, the upper computer will combine the calculated control commands of each node with the time node to synthesize a message in a specified format, and send it to the edge device to which each node belongs. The edge device judges the existing control command and the issued Whether the command will conflict, if so, report the conflict to the host computer, and the host computer calls the RVO algorithm to recalculate the corresponding data; if there is no conflict, the edge device needs to issue the control command when it reaches the recorded time node to the specified driver.

本发明提出一种运用于物流系统的基于时间同步的智能控制系统,所述系统具体为:The present invention proposes an intelligent control system based on time synchronization applied to a logistics system. The system is specifically:

初始化模块:用于以上位机的时间为基准,将分布式边缘设备与其进行同步,统一时间,以完成控制方法的初始化准备,分布式边缘设备之间需要定时重新进行时间同步,以确保高精度的准确性;Initialization module: It is used to synchronize the distributed edge devices with the time of the upper computer and unify the time to complete the initialization preparation of the control method. Time synchronization between distributed edge devices needs to be re-synchronized regularly to ensure high precision accuracy;

预测模块:用于预测货物进入物流系统的时间,并以该时间作为基准,调用A*算法对货物的运行路线进行路径规划,并根据线速度和驱动控制的反馈预测物体的运动轨迹,计算出货物抵达每一个节点所需的时间,以及该节点所需发出的控制指令;Prediction module: used to predict the time when the goods enter the logistics system, and use this time as a reference, call the A* algorithm to plan the route of the goods, and predict the trajectory of the object according to the linear speed and the feedback of the drive control, and calculate the The time it takes for the goods to arrive at each node, and the control instructions that need to be issued by the node;

控制模块:用于设计一个存有优先级的消息队列,消息内容的格式为:优先级,运行时间,控制指令;该消息内容按照货物进入物流系统的时间进行下发,分布式边缘设备接收到数据后,对目前的所有指令按照设定优先级-运行时间排序,并在指定的运行时间对驱动设备进行控制指令的下发。Control module: used to design a message queue with priority, the format of the message content is: priority, running time, control instruction; the message content is sent according to the time when the goods enter the logistics system, and the distributed edge device receives it After collecting the data, sort all current commands according to the set priority-running time, and issue control commands to the drive equipment at the specified running time.

进一步地,一旦有新的货物进入物流系统,或者视觉传感器检测到了存在碰撞的情况,将实时通知上位机运用RVO算法重新进行路径规划,上位机再次规划完成后,将合成更高优先级的报文并进行下发。Furthermore, once new goods enter the logistics system, or the visual sensor detects a collision, the upper computer will be notified in real time to re-plan the path using the RVO algorithm. After the upper computer re-plans, it will synthesize a higher priority report. document and distribute it.

本发明还提出一种电子设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现所述一种运用于物流系统的基于时间同步的智能控制方法的步骤。The present invention also proposes an electronic device, including a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the intelligent control method based on time synchronization applied to the logistics system is realized A step of.

本发明还提出一种计算机可读存储介质,用于存储计算机指令,所述计算机指令被处理器执行时实现所述一种运用于物流系统的基于时间同步的智能控制方法的步骤。The present invention also proposes a computer-readable storage medium for storing computer instructions, and when the computer instructions are executed by a processor, the steps of the intelligent control method based on time synchronization applied to the logistics system are realized.

本发明的有益效果:Beneficial effects of the present invention:

本发明提出了一种运用于物流系统的基于时间同步的智能控制方法,随着货物量的增多,物流运输系统正在逐渐提升传送速度,但目前的控制算法在此环境下存在一定的局限性,亟需一种有效的智能控制算法来确保传输的稳定。本发明提出的基于时间同步的智能控制方法,在占地面积广、货物数量大、对时效以及准确性均有较高要求的物流仓库中心,能够以极高的准确率将货物运输到指定地点,有效地提高货物的运输效率。特别的,该智能控制方法还可以运用至类似的需要预测控制的系统中,比如工厂的机械臂,以及智能小车等系统中。The present invention proposes an intelligent control method based on time synchronization applied to the logistics system. With the increase of the amount of goods, the logistics transportation system is gradually increasing the transmission speed, but the current control algorithm has certain limitations in this environment. An effective intelligent control algorithm is urgently needed to ensure the stability of transmission. The intelligent control method based on time synchronization proposed by the present invention can transport the goods to the designated place with a very high accuracy rate in the logistics warehouse center that covers a large area, has a large quantity of goods, and has high requirements for timeliness and accuracy. , Effectively improve the transportation efficiency of goods. In particular, the intelligent control method can also be applied to similar systems that require predictive control, such as factory robotic arms and smart cars.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为智能控制方法的基本流程图;Fig. 1 is the basic flowchart of intelligent control method;

图2为PTP算法的流程图;Fig. 2 is the flowchart of PTP algorithm;

图3为client选择eth0端口连接网线,且不进行时钟同步示意图;Figure 3 is a schematic diagram of the client selecting the eth0 port to connect to the network cable without clock synchronization;

图4为client选择eth0端口连接网线,且进行时钟同步示意图。Figure 4 is a schematic diagram of the client selecting the eth0 port to connect to the network cable and performing clock synchronization.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明基于时间同步和路径规划的技术提出了一种智能控制方法,能够直接应用于物流系统的货物运输。The invention proposes an intelligent control method based on the technology of time synchronization and path planning, which can be directly applied to the cargo transportation of the logistics system.

结合图1-图4,本发明提出一种运用于物流系统的基于时间同步的智能控制方法,所述方法具体为:In combination with Fig. 1-Fig. 4, the present invention proposes an intelligent control method based on time synchronization applied to the logistics system. The method is specifically:

以上位机的时间为基准,将分布式边缘设备与其进行同步,统一时间,以完成控制方法的初始化准备,分布式边缘设备之间需要定时重新进行时间同步,以确保高精度的准确性;Based on the time of the upper computer, synchronize the distributed edge devices with it and unify the time to complete the initialization preparation of the control method. Time synchronization between distributed edge devices needs to be re-synchronized at regular intervals to ensure high-precision accuracy;

预测货物进入物流系统的时间,并以该时间作为基准,调用A*算法对货物的运行路线进行路径规划,并根据线速度和驱动控制的反馈预测物体的运动轨迹,计算出货物抵达每一个节点所需的时间,以及该节点所需发出的控制指令;Predict the time when the goods enter the logistics system, and use this time as a reference, call the A* algorithm to plan the route of the goods, and predict the trajectory of the object according to the linear speed and the feedback of the drive control, and calculate the arrival of the goods at each node The time required, and the control commands that the node needs to issue;

设计一个存有优先级的消息队列,消息内容的格式为:优先级,运行时间,控制指令;其中,运行时间和控制指令为上文所计算出的数据,该消息内容按照货物进入物流系统的时间进行下发,分布式边缘设备接收到数据后,对目前的所有指令按照设定优先级-运行时间排序,并在指定的运行时间对驱动设备进行控制指令的下发。Design a message queue with priority, the format of the message content is: priority, running time, control instruction; among them, the running time and control instruction are the data calculated above, and the message content is according to the time when the goods enter the logistics system After the distributed edge device receives the data, it sorts all current commands according to the set priority-running time, and sends control commands to the drive device at the specified running time.

特别的,当视觉传感器监测到货物碰撞时,上位机将调用RVO算法重新计算货物的运动轨迹,并且将当前指令的优先级提升为最高,插入队列最前端进行下发,分布式边缘设备收到优先级更高的、同一驱动装置或者同一时间的消息内容后,将覆盖已下达至本机的指令。In particular, when the visual sensor detects a cargo collision, the host computer will call the RVO algorithm to recalculate the trajectory of the cargo, and raise the priority of the current instruction to the highest, insert it into the front of the queue for delivery, and the distributed edge device receives After the content of the message with higher priority, the same drive device or the same time, it will overwrite the command that has been sent to the machine.

1、分布式边缘设备的时间同步:1. Time synchronization of distributed edge devices:

选用PTPd获取网络驱动层时间,进行分布式边缘设备的时间同步。Use PTPd to obtain the time of the network driver layer to synchronize the time of distributed edge devices.

由于在不同的控制系统中,分布式边缘设备的选择存在较大的区别,考虑到并非所有的设备都支持硬件精度的PTP协议,为了提高控制算法的兼容性,在该发明中选择了能够获取网络驱动层的PTPd协议。In different control systems, there is a big difference in the selection of distributed edge devices. Considering that not all devices support the hardware-accurate PTP protocol, in order to improve the compatibility of the control algorithm, in this invention, the choice that can obtain The PTPd protocol of the network driver layer.

PTPd(Precision Time Protocol daemon)是基于IEEE1588标准定义的PTP协议的实现,它能够为以太网连接的计算机提供精确的时间协调。PTPd (Precision Time Protocol daemon) is based on the implementation of the PTP protocol defined by the IEEE1588 standard, which can provide precise time coordination for computers connected by Ethernet.

在该智能控制算法中,在设备启动的同时,以上位机的时间作为基准,将所有分布式边缘设备运用PTPd协议进行时间同步,以完成算法的初始化准备。且需要定时(1-2s)重新对边缘设备进行同步,以保证精度的准确性。In this intelligent control algorithm, when the device is started, the time of the upper computer is used as the reference, and all distributed edge devices are synchronized using the PTPd protocol to complete the initialization preparation of the algorithm. And it needs to re-synchronize the edge device regularly (1-2s) to ensure the accuracy of the accuracy.

PTPd是基于PTP协议的实现,PTP的实现过程如图2所示。PTPd is based on the implementation of the PTP protocol, and the implementation process of PTP is shown in Figure 2.

PTPd较PTP而言,区别主要在于将时间戳的产生位置从物理层上移至网络驱动层,其计算方法仍沿用PTP的公式,其计算时间偏差的公式为:Compared with PTP, the difference between PTPd and PTP is mainly that the generation position of the time stamp is moved from the physical layer to the network driver layer, and its calculation method still uses the formula of PTP. The formula for calculating the time deviation is:

Figure BDA0004112512060000051
Figure BDA0004112512060000051

2、时间同步下的网络通信:2. Network communication under time synchronization:

为了尽可能降低网络延时所带来的负面效果,分布式边缘设备与上位机之间通过高速实时总线进行连接,特别的,传感器与上位机可以考虑采用POWERLINK、或EtherCAT等实时工业以太网,以降低消息发送的延迟,确保系统的实时性。In order to reduce the negative effects caused by network delay as much as possible, the distributed edge devices and the host computer are connected through a high-speed real-time bus. In particular, real-time industrial Ethernet such as POWERLINK or EtherCAT can be considered for sensors and host computers. In order to reduce the delay of message sending and ensure the real-time performance of the system.

基于本发明所提出的智能控制方法,报文调度仅由完成系统时钟同步所需的报文以及必要的控制指令报文构成,并且所有报文的发送时间是可以提前配置的,这样可以有效避免消息队列的阻塞,提高总线的利用率,保证系统的实时性。Based on the intelligent control method proposed by the present invention, message scheduling is only composed of messages required to complete system clock synchronization and necessary control instruction messages, and the sending time of all messages can be configured in advance, which can effectively avoid The blocking of the message queue improves the utilization rate of the bus and ensures the real-time performance of the system.

3、基于路径规划的智能控制方法:3. Intelligent control method based on path planning:

在路径规划过程中:During path planning:

运输开始时,将货物放置在物流系统的起始点,视觉或压力传感器在确认了货物的状况后,将通知上位机开始进行运算;When the transportation starts, the goods are placed at the starting point of the logistics system. After the visual or pressure sensor confirms the condition of the goods, it will notify the host computer to start calculation;

上位机采用A*算法进行路径规划,可以满足货物从任意起始点按照最优路径抵达任意终点的规划要求,完成路径的规划后,上位机将根据规划的路径及设定的货物运输速度计算出货物经过每个节点时驱动装置所需提供的加速度,以及货物经过该节点的预计时间;The upper computer uses the A* algorithm for path planning, which can meet the planning requirements for goods to arrive at any destination according to the optimal path from any starting point. After completing the path planning, the upper computer will calculate according to the planned path and the set cargo transportation speed The acceleration required by the driving device when the goods pass through each node, and the estimated time for the goods to pass through the node;

完成计算后,上位机将计算好的各个节点的控制指令与时间节点一起合成指定格式的报文,下发给各个节点所属的边缘设备,该边缘设备判断已有的控制指令与该下发的指令是否会产生冲突,若是,则将冲突回报给上位机,上位机调用RVO算法重新计算相应的数据;若不产生冲突,则边缘设备需要在抵达所记录的时间节点时,将控制指令下发给指定的驱动装置。After the calculation is completed, the upper computer will combine the calculated control commands of each node with the time node to synthesize a message in a specified format, and send it to the edge device to which each node belongs. The edge device judges the existing control command and the issued Whether the command will conflict, if so, report the conflict to the host computer, and the host computer calls the RVO algorithm to recalculate the corresponding data; if there is no conflict, the edge device needs to issue the control command when it reaches the recorded time node to the specified driver.

本发明提出一种运用于物流系统的基于时间同步的智能控制系统,所述系统具体为:The present invention proposes an intelligent control system based on time synchronization applied to a logistics system. The system is specifically:

初始化模块:用于以上位机的时间为基准,将分布式边缘设备与其进行同步,统一时间,以完成控制方法的初始化准备,分布式边缘设备之间需要定时重新进行时间同步,以确保高精度的准确性;Initialization module: It is used to synchronize the distributed edge devices with the time of the upper computer and unify the time to complete the initialization preparation of the control method. Time synchronization between distributed edge devices needs to be re-synchronized regularly to ensure high precision accuracy;

预测模块:用于预测货物进入物流系统的时间,并以该时间作为基准,调用A*算法对货物的运行路线进行路径规划,并根据线速度和驱动控制的反馈预测物体的运动轨迹,计算出货物抵达每一个节点所需的时间,以及该节点所需发出的控制指令;Prediction module: used to predict the time when the goods enter the logistics system, and use this time as a reference, call the A* algorithm to plan the route of the goods, and predict the trajectory of the object according to the linear speed and the feedback of the drive control, and calculate the The time it takes for the goods to arrive at each node, and the control instructions that need to be issued by the node;

控制模块:用于设计一个存有优先级的消息队列,消息内容的格式为:优先级,运行时间,控制指令;该消息内容按照货物进入物流系统的时间进行下发,分布式边缘设备接收到数据后,对目前的所有指令按照设定优先级-运行时间排序,并在指定的运行时间对驱动设备进行控制指令的下发。Control module: used to design a message queue with priority, the format of the message content is: priority, running time, control instruction; the message content is sent according to the time when the goods enter the logistics system, and the distributed edge device receives it After collecting the data, sort all current commands according to the set priority-running time, and issue control commands to the drive equipment at the specified running time.

特别的,一旦有新的货物进入物流系统,或者视觉传感器检测到了存在碰撞的情况,将实时通知上位机运用RVO算法重新进行路径规划,上位机再次规划完成后,将合成更高优先级的报文并进行下发。In particular, once new goods enter the logistics system, or the visual sensor detects a collision, the upper computer will be notified in real time to re-plan the path using the RVO algorithm. After the upper computer re-plans, it will synthesize a higher priority report. document and distribute it.

本发明所述方法及系统能够保证货物在每个节点所预先设定的控制指令下,可以按照规划好的路径运输至指定终点,这样的算法能够有效提高传送系统的工作效率。The method and system of the present invention can ensure that the goods can be transported to the designated destination according to the planned route under the preset control instructions of each node, and such an algorithm can effectively improve the working efficiency of the transmission system.

本发明主要解决了物流运输系统中时间延迟所带来的一系列问题,特别的,对时间同步的必要性进行了实验验证。The invention mainly solves a series of problems caused by time delay in the logistics transportation system, and in particular, experiments verify the necessity of time synchronization.

实验中,选择服务器作为上位机,树莓派作为边缘设备,分别测试了有无时间同步、是否选择总线进行连接的情况下,服务端与客户端的传输延迟。图3以及图4证明了在时间同步的情况下,选择总线能够将延迟有效降低为毫秒级,符合本发明所需要的精度需求。In the experiment, the server was selected as the upper computer, and the Raspberry Pi was used as the edge device, and the transmission delay between the server and the client was tested with or without time synchronization and whether the bus was selected for connection. Figures 3 and 4 prove that in the case of time synchronization, selecting the bus can effectively reduce the delay to the millisecond level, which meets the precision requirement required by the present invention.

本发明还提出一种电子设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现所述一种运用于物流系统的基于时间同步的智能控制方法的步骤。The present invention also proposes an electronic device, including a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the intelligent control method based on time synchronization applied to the logistics system is realized A step of.

本发明还提出一种计算机可读存储介质,用于存储计算机指令,所述计算机指令被处理器执行时实现所述一种运用于物流系统的基于时间同步的智能控制方法的步骤。The present invention also proposes a computer-readable storage medium for storing computer instructions, and when the computer instructions are executed by a processor, the steps of the intelligent control method based on time synchronization applied to the logistics system are realized.

本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasablePROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronousDRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambusRAM,DRRAM)。应注意,本发明描述的方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。The memory in the embodiments of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the non-volatile memory can be read only memory (read only memory, ROM), programmable read only memory (programmable ROM, PROM), erasable programmable read only memory (erasable PROM, EPROM), electrically erasable Programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM ), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM) and Direct memory bus random access memory (direct rambusRAM, DRRAM). It should be noted that the memory of the methods described herein is intended to include, but not be limited to, these and any other suitable types of memory.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disc,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disc, SSD)) etc.

在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, no detailed description is given here.

应注意,本申请实施例中的处理器可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。It should be noted that the processor in the embodiment of the present application may be an integrated circuit chip, which has a signal processing capability. In the implementation process, each step of the above-mentioned method embodiments may be completed by an integrated logic circuit of hardware in a processor or instructions in the form of software. The above-mentioned processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components . Various methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.

以上对本发明所提出的一种运用于物流系统的基于时间同步的智能控制方法进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above is a detailed introduction of a time-synchronized intelligent control method applied to the logistics system proposed by the present invention. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used To help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this specification The content should not be construed as a limitation of the invention.

Claims (10)

1. An intelligent control method based on time synchronization applied to a logistics system is characterized by comprising the following steps of: the method specifically comprises the following steps:
synchronizing the distributed edge equipment with the distributed edge equipment by taking the time of the upper computer as a reference, unifying the time to finish initialization preparation of a control method, and carrying out time synchronization between the distributed edge equipment at regular time again to ensure high-precision accuracy;
predicting the time of goods entering a logistics system, calling an A-type algorithm to carry out path planning on the running route of the goods by taking the time as a reference, predicting the movement track of an object according to the linear speed and feedback of drive control, and calculating the time required by the goods to reach each node and the control instruction required by the node;
designing a message queue with priority, wherein the format of the message content is as follows: priority, run time, control instructions; the message content is issued according to the time when the goods enter the logistics system, after the distributed edge equipment receives the data, all the current instructions are ordered according to the set priority-running time, and the control instructions are issued to the driving equipment at the specified running time.
2. The method according to claim 1, characterized in that: when the visual sensor monitors the collision of goods, the upper computer calls the RVO algorithm to recalculate the motion trail of the goods, and the priority of the current instruction is raised to be the highest, the current instruction is inserted into the forefront end of the queue to be issued, and after the distributed edge equipment receives the message content of the same driving device or the same time with higher priority, the instruction issued to the upper computer is covered.
3. The method according to claim 1, characterized in that: and selecting PTPd to acquire network driving layer time, and performing time synchronization of distributed edge equipment.
4. A method according to claim 3, characterized in that: the PTPd moves the generation position of the timestamp from the physical layer to the network driving layer, and the formula for calculating the time offset is:
Figure FDA0004112512050000011
5. the method according to claim 2, characterized in that: the distributed edge equipment is connected with the upper computer through a high-speed real-time bus, and the sensor and the upper computer adopt POWERLINK or EtherCAT real-time industrial Ethernet.
6. The method according to claim 1, characterized in that: in the path planning process:
when the transportation starts, goods are placed at the starting point of the logistics system, and after the visual or pressure sensor confirms the condition of the goods, the upper computer is informed to start operation;
the upper computer adopts an A algorithm to carry out path planning, meets the planning requirement that goods reach any end point from any initial point according to an optimal path, and calculates the acceleration required by the driving device when the goods pass through each node and the estimated time when the goods pass through the node according to the planned path and the set goods transportation speed after the path planning is completed;
after the calculation is completed, the upper computer synthesizes the calculated control instructions of all the nodes and the time nodes into a message with a specified format, and transmits the message to the edge equipment to which all the nodes belong, the edge equipment judges whether the existing control instructions and the issued instructions conflict or not, if so, the conflict is reported to the upper computer, and the upper computer calls an RVO algorithm to recalculate corresponding data; if no conflict occurs, the edge device needs to issue a control instruction to the designated driving device when reaching the recorded time node.
7. An intelligent control system based on time synchronization applied to a logistics system is characterized in that: the system specifically comprises the following steps:
an initialization module: the method is used for synchronizing the distributed edge equipment with the distributed edge equipment by taking the time of the upper computer as a reference, unifying the time to finish initialization preparation of a control method, and the time synchronization is needed to be carried out between the distributed edge equipment again at fixed time so as to ensure high-precision accuracy;
and a prediction module: the method comprises the steps of predicting the time of goods entering a logistics system, calling an A algorithm to conduct path planning on the running route of the goods by taking the time as a reference, predicting the movement track of an object according to the linear speed and feedback of drive control, and calculating the time required by the goods to reach each node and the control instruction required by the node;
and the control module is used for: for designing a message queue with priority, the format of message content is as follows: priority, run time, control instructions; the message content is issued according to the time when the goods enter the logistics system, after the distributed edge equipment receives the data, all the current instructions are ordered according to the set priority-running time, and the control instructions are issued to the driving equipment at the specified running time.
8. The system according to claim 7, wherein: once new goods enter the logistics system or the visual sensor detects collision, the upper computer is informed to carry out path planning again by using the RVO algorithm in real time, and after the upper computer completes planning again, the messages with higher priority are synthesized and sent down.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1-6 when the computer program is executed.
10. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the method of any one of claims 1-6.
CN202310210586.3A 2023-03-07 2023-03-07 An Intelligent Control Method Based on Time Synchronization Used in Logistics System Pending CN116400618A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310210586.3A CN116400618A (en) 2023-03-07 2023-03-07 An Intelligent Control Method Based on Time Synchronization Used in Logistics System

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310210586.3A CN116400618A (en) 2023-03-07 2023-03-07 An Intelligent Control Method Based on Time Synchronization Used in Logistics System

Publications (1)

Publication Number Publication Date
CN116400618A true CN116400618A (en) 2023-07-07

Family

ID=87018719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310210586.3A Pending CN116400618A (en) 2023-03-07 2023-03-07 An Intelligent Control Method Based on Time Synchronization Used in Logistics System

Country Status (1)

Country Link
CN (1) CN116400618A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117611045A (en) * 2024-01-22 2024-02-27 湖南创亚信息科技有限公司 Cargo flow monitoring method and system based on cloud computing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603367A (en) * 2017-02-28 2017-04-26 北京艾利特科技有限公司 CAN bus communication method for time synchronization
WO2018025253A1 (en) * 2016-08-01 2018-02-08 B.T 9 Ltd. Systems and methods for monitoring of shipments
CN111143061A (en) * 2019-12-18 2020-05-12 海尔优家智能科技(北京)有限公司 Multi-device linkage control method and device and storage medium
CN115310690A (en) * 2022-08-02 2022-11-08 北自所(北京)科技发展股份有限公司 Digital twin four-way shuttle vehicle optimal scheduling method and device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018025253A1 (en) * 2016-08-01 2018-02-08 B.T 9 Ltd. Systems and methods for monitoring of shipments
CN106603367A (en) * 2017-02-28 2017-04-26 北京艾利特科技有限公司 CAN bus communication method for time synchronization
CN111143061A (en) * 2019-12-18 2020-05-12 海尔优家智能科技(北京)有限公司 Multi-device linkage control method and device and storage medium
CN115310690A (en) * 2022-08-02 2022-11-08 北自所(北京)科技发展股份有限公司 Digital twin four-way shuttle vehicle optimal scheduling method and device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117611045A (en) * 2024-01-22 2024-02-27 湖南创亚信息科技有限公司 Cargo flow monitoring method and system based on cloud computing
CN117611045B (en) * 2024-01-22 2024-04-19 湖南创亚信息科技有限公司 Cargo flow monitoring method and system based on cloud computing

Similar Documents

Publication Publication Date Title
US10397139B2 (en) Storage device in which forwarding-function-equipped memory nodes are mutually connected and data processing method
US9753656B2 (en) Data synchronization method, apparatus and system
US20220150176A1 (en) Packet transmission method and apparatus, and system
KR20010089577A (en) Distributed control system architecture and method for a material transport system
TWI850639B (en) Task allocation method, device, control terminal and warehousing system
CN116400618A (en) An Intelligent Control Method Based on Time Synchronization Used in Logistics System
CN101436998A (en) Method for obtaining message forwarding route and apparatus for forwarding message
EP3528471B1 (en) Control device, control system, control method, and control program
CN113253736B (en) Multi-robot scheduling method and equipment
CN103812589A (en) Time synchronization method based on double ring bus
US8363680B2 (en) Network control architecture and protocol for a distributed control, data acquisition and data distribution system and process
CN103580846A (en) Method and system for transmitting precision clock message by spanning non-1588 network
CN110658759A (en) Industrial intelligent controller capable of dynamically deploying AI model
KR100981461B1 (en) Method for controlling access to data in message memory of communication chip by communication chip and message manager
JP2019139631A (en) Control device, control system, control method, and control program
US11329747B2 (en) Scheduling deterministic flows in time synchronized networks
EP3048778B1 (en) Techniques for synchronized execution of a command at network fabric nodes
CN112640386A (en) Method and simulation system for simulating the handling of reservation requests for multicast data streams in a communication network
CN116074250B (en) Stream table processing method, system, device and storage medium
CN102694715A (en) Method and system for controlling authorization request state information
CN111614741A (en) A multi-robot communication method and device based on ROS system
CN119325698A (en) Dispatching messages using guaranteed or synchronized delivery times
CN102355370B (en) Method for Ethernet board-level protection, device and system
CN106292403A (en) A kind of CAN communication agreement of controlling system of medical equipments
CN114466081A (en) Node control method, system, equipment and storage medium of real-time channel group

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination