CN114331092A - Equipment shadow, remote scheduling management method, device and system for engineering mechanical equipment - Google Patents
Equipment shadow, remote scheduling management method, device and system for engineering mechanical equipment Download PDFInfo
- Publication number
- CN114331092A CN114331092A CN202111598234.7A CN202111598234A CN114331092A CN 114331092 A CN114331092 A CN 114331092A CN 202111598234 A CN202111598234 A CN 202111598234A CN 114331092 A CN114331092 A CN 114331092A
- Authority
- CN
- China
- Prior art keywords
- construction machinery
- equipment
- state information
- information
- shadow
- 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
Links
Images
Landscapes
- Selective Calling Equipment (AREA)
Abstract
本发明公开了一种设备影子、工程机械设备远程调度管理方法、装置及系统,其中工程机械设备远程调度管理方法,应用于设备影子,包括以下步骤:接收预设的服务器下发的工程机械设备的预期状态信息;接收所述工程机械设备上报的当前状态信息;当所述当前状态信息与所述预期状态信息不同时,将所述预期状态信息下发至所述工程机械设备。利用设备影子概念、消息队列进行实现的,异步状态下发以及数据上报通信模式,基于这种模式处理上下行数据的工程机械设备监控系统可以有效解决由于工程机械设备端与云服务平台之间数据上传与下发可靠度不高导致的远程调度管理效果不佳的问题。
The invention discloses an equipment shadow, a method, a device and a system for remote dispatching and management of construction machinery and equipment, wherein the method for remote dispatching and management of construction machinery and equipment, applied to the equipment shadow, includes the following steps: receiving the construction machinery equipment delivered by a preset server Receive the current state information reported by the construction machinery equipment; when the current status information is different from the expected status information, deliver the expected status information to the construction machinery equipment. Implemented by using the concept of equipment shadow and message queue, asynchronous state delivery and data reporting communication mode, the construction machinery equipment monitoring system based on this mode to process upstream and downstream data can effectively solve the problem of data between the construction machinery equipment end and the cloud service platform. The problem of poor remote scheduling management effect caused by low upload and delivery reliability.
Description
技术领域technical field
本发明涉及工程机械设备控制技术领域,具体涉及一种设备影子、工程机械设备远程调度管理方法、装置及系统。The invention relates to the technical field of construction machinery equipment control, in particular to an equipment shadow, a method, device and system for remote scheduling and management of construction machinery equipment.
背景技术Background technique
工业互联网的浪潮下,工程机械设备接入云服务器、受云服务器的统一调度管理成为产业发展的必然趋势。在现有的工程机械云服务平台中,一般的调度管理流程为:工程机械设备向云服务平台报告状态信息;云服务平台分析状态数据后得出控制决策结果,并将控制指令返回给工程机械设备,工程机械设备执行该指令。受现实工况中种种条件限制,工程机械设备与云服务平台之间的数据上传与下发可靠度没有那么高,导致工程机械设备的远程调度管理效果不佳。Under the wave of the Industrial Internet, it has become an inevitable trend of industrial development for construction machinery and equipment to access cloud servers and be managed by cloud servers in a unified manner. In the existing construction machinery cloud service platform, the general scheduling management process is: construction machinery equipment reports status information to the cloud service platform; the cloud service platform analyzes the status data to obtain control decision results, and returns control instructions to construction machinery Equipment, construction machinery and equipment implement this directive. Restricted by various conditions in real working conditions, the reliability of data upload and delivery between construction machinery and cloud service platforms is not so high, resulting in poor remote dispatch management of construction machinery and equipment.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例提供了一种设备影子、工程机械设备远程调度管理方法、装置及系统,以解决由于工程机械设备端与云服务平台之间数据上传与下发可靠度不高导致的远程调度管理效果不佳的问题。In view of this, the embodiments of the present invention provide an equipment shadow, a method, device and system for remote scheduling and management of construction machinery equipment, so as to solve the problems caused by the low reliability of data upload and delivery between the construction machinery equipment terminal and the cloud service platform. The problem of ineffective remote scheduling management.
根据第一方面,本发明实施例提供了一种工程机械设备远程调度管理方法,应用于设备影子,包括以下步骤:接收预设的服务器下发的工程机械设备的预期状态信息;接收所述工程机械设备上报的当前状态信息;当所述当前状态信息与所述预期状态信息不同时,将所述预期状态信息下发至所述工程机械设备。According to a first aspect, an embodiment of the present invention provides a method for remote scheduling and management of construction machinery and equipment, which is applied to equipment shadowing and includes the following steps: receiving expected state information of construction machinery and equipment issued by a preset server; receiving the project Current status information reported by mechanical equipment; when the current status information is different from the expected status information, the expected status information is delivered to the construction machinery equipment.
本发明实施例提供的工程机械设备远程调度管理方法,是利用设备影子概念、消息队列进行实现的异步状态下发以及数据上报通信模式,基于这种模式处理上下行数据的工程机械设备监控系统可以有效解决由于工程机械设备端与云服务平台之间数据上传与下发可靠度不高导致的远程调度管理效果不佳的问题。同时,基于消息队列实现的异步通信特性,可以使得网络具有抗干扰性,不易受到工程机械复杂的作业环境导致的网络波动影响。The method for remote scheduling and management of construction machinery equipment provided by the embodiments of the present invention is an asynchronous state delivery and data reporting communication mode realized by using the concept of equipment shadow and message queue. The construction machinery equipment monitoring system processing uplink and downlink data based on this mode can Effectively solve the problem of poor remote scheduling management effect due to the low reliability of data upload and delivery between the construction machinery equipment terminal and the cloud service platform. At the same time, the asynchronous communication feature based on the message queue can make the network anti-interference and not easily affected by the network fluctuation caused by the complex working environment of construction machinery.
结合第一方面,在第一方面第一实施方式中,工程机械设备远程调度管理方法还包括:接收所述工程机械设备上报的当前状态信息,并将所述当前状态信息发送至所述服务器。With reference to the first aspect, in the first embodiment of the first aspect, the method for remote dispatch management of construction machinery equipment further includes: receiving current status information reported by the construction machinery equipment, and sending the current status information to the server.
结合第一方面,在第一方面第二实施方式中,所述预期状态信息中携带有第一时间信息,所述当前状态信息中携带有第二时间信息,所述判断当前状态信息与所述预期状态信息是否相同包括:判断所述第一时间信息与所述第二时间信息是否相同。With reference to the first aspect, in the second embodiment of the first aspect, the expected state information carries first time information, the current state information carries second time information, and the judging current state information is the same as the Whether the expected state information is the same includes: judging whether the first time information and the second time information are the same.
结合第一方面第一实施方式,在第一方面第三实施方式中,所述预期状态信息中携带有第一验证信息,所述当前状态信息中携带有第二验证信息,在将所述当前状态信息发送至所述服务器之前,还包括:判断所述第一验证信息与所述第二验证信息是否相同;当所述第一验证信息与所述第二验证信息相同时,将所述当前状态信息发送至所述服务器;当所述第一验证信息与所述第二验证信息不同时,发送报警消息。In combination with the first embodiment of the first aspect, in the third embodiment of the first aspect, the expected state information carries first verification information, and the current state information carries second verification information. Before sending the status information to the server, the method further includes: judging whether the first verification information and the second verification information are the same; when the first verification information is the same as the second verification information, converting the current The status information is sent to the server; when the first verification information is different from the second verification information, an alarm message is sent.
结合第一方面,在第一方面第四实施方式中,在接收所述工程机械设备上报的当前状态信息之前,还包括:发送鉴权信息至所述服务器,以使所述工程机械设备通过所述鉴权信息接入所述设备影子。With reference to the first aspect, in a fourth implementation manner of the first aspect, before receiving the current state information reported by the construction machinery equipment, the method further includes: sending authentication information to the server, so that the construction machinery equipment can pass the The authentication information is accessed to the device shadow.
结合第一方面,在第一方面第五实施方式中,所述接收所述工程机械设备上报的当前状态信息包括:接收所述工程机械设备按预设的第一周期上报的当前状态信息;和/或,接收所述工程机械设备接入所述设备影子时上报的当前状态信息。With reference to the first aspect, in a fifth embodiment of the first aspect, the receiving the current state information reported by the construction machinery equipment includes: receiving the current status information reported by the construction machinery equipment according to a preset first cycle; and /or, receiving the current state information reported when the construction machinery equipment accesses the equipment shadow.
结合第一方面,在第一方面第六实施方式中,所述接收所述工程机械设备上报的当前状态信息,包括:接收所述工程机械设备按预设的第二周期上报的当前状态信息。With reference to the first aspect, in a sixth implementation manner of the first aspect, the receiving the current state information reported by the construction machinery equipment includes: receiving the current status information reported by the construction machinery equipment according to a preset second cycle.
根据第二方面,本发明实施例提供了一种工程机械设备远程调度管理装置,应用于设备影子,包括第一接收模块、第二接收模块和处理模块;所述第一接收模块用于接收预设的服务器下发的工程机械设备的预期状态信息;所述第二接收模块用于接收所述工程机械设备上报的当前状态信息;所述处理模块用于当所述当前状态信息与所述预期状态信息不同时,将所述预期状态信息下发至所述工程机械设备。According to a second aspect, an embodiment of the present invention provides an apparatus for remote scheduling and management of construction machinery equipment, which is applied to equipment shadows, and includes a first receiving module, a second receiving module, and a processing module; the first receiving module is used for receiving pre-received The expected state information of the construction machinery equipment issued by the designated server; the second receiving module is used for receiving the current status information reported by the construction machinery equipment; the processing module is used for when the current status information and the expected status information When the status information is different, the expected status information is sent to the construction machinery equipment.
根据第三方面,本发明实施例还提供了一种设备影子,包括存储器和处理器,所述存储器和所述处理器之间互相通信连接,所述存储器中存储有计算机指令,所述处理器通过执行所述计算机指令,从而执行第一方面或者第一方面的任意一种实施方式中所述的工程机械设备远程调度管理方法。According to a third aspect, an embodiment of the present invention further provides a device shadow, including a memory and a processor, the memory and the processor are connected in communication with each other, and computer instructions are stored in the memory, and the processor By executing the computer instructions, the first aspect or the method for remote dispatching and management of construction machinery and equipment described in any embodiment of the first aspect is executed.
根据第四方面,本发明实施例还提供了一种工程机械设备远程调度管理系统,包括服务器、工程机械设备及第三方面所述的设备影子,所述设备影子与所述服务器和所述工程机械设备连接。According to a fourth aspect, an embodiment of the present invention further provides a remote dispatch management system for construction machinery equipment, including a server, construction machinery equipment, and the equipment shadow described in the third aspect, the equipment shadow being connected to the server and the engineering equipment. Mechanical equipment connection.
附图说明Description of drawings
通过参考附图会更加清楚的理解本发明的特征和优点,附图是示意性的而不应理解为对本发明进行任何限制,在附图中:The features and advantages of the present invention will be more clearly understood by reference to the accompanying drawings, which are schematic and should not be construed as limiting the invention in any way, in which:
图1为本发明实施例1中工程机械设备远程调度管理方法的流程示意图;1 is a schematic flowchart of a method for remote dispatching and management of construction machinery and equipment in Embodiment 1 of the present invention;
图2为本发明实施例1中工程机械设备远程调度管理方法一示例的流程示意图;2 is a schematic flowchart of an example of a remote dispatch management method for construction machinery and equipment in Embodiment 1 of the present invention;
图3为本发明实施例2中工程机械设备远程调度管理装置的结构示意图。3 is a schematic structural diagram of a remote dispatch management device for construction machinery and equipment in Embodiment 2 of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.
实施例1Example 1
为了解决工程机械设备端与云服务平台之间,数据上传与下发可靠度不高导致的远程调度管理效果不佳的问题,经过分析发现,工程机械设备接入云端以后,由于作业环境复杂,网络波动性可能导致工程机械设备的预期状态不能被正确下发到车辆中。另一方面,云服务器有可能收集不正确状态的工程机械状态数据,导致将未察觉的错误数据送入数据分析模块,影响最终分析结果,基于错误分析结果做出的调度管理指令又会影响对工程机械调度管理的效果,进一步会导致基于数据挖掘的故障预测性分析等智能网联功能发生偏差乃至失效。In order to solve the problem of poor remote scheduling management effect caused by the low reliability of data upload and delivery between the construction machinery equipment terminal and the cloud service platform, it is found through analysis that after the construction machinery equipment is connected to the cloud, due to the complex operating environment, Network volatility may cause the expected state of construction machinery and equipment to not be correctly delivered to the vehicle. On the other hand, the cloud server may collect the state data of construction machinery in an incorrect state, resulting in the sending of unaware error data to the data analysis module, which affects the final analysis result. The effect of construction machinery scheduling management will further lead to deviations or even failures of intelligent networked functions such as fault predictive analysis based on data mining.
经过进一步研究发现,一般工程机械采用蜂窝网络技术进行接入,与云服务器保持网络通信畅通需要良好的通信条件,当网络环境较差、网络波动较大时,按传统方式采用同步接口进行状态数据交互可能会失败,失败后重试会进一步占用网络带宽,进一步恶化网络条件。如果要保证状态数据交互畅通,需要采用QoS=1或者QoS=2的模式进行通信,也会进一步占用网络资源。若采用5G通信技术,为了解决网络资源问题、可以尝试加大基站部署密度,但会引入成本问题。After further research, it is found that general construction machinery uses cellular network technology for access, and good communication conditions are required to maintain smooth network communication with cloud servers. Interactions may fail, and retrying after failure will further consume network bandwidth and further deteriorate network conditions. To ensure smooth interaction of status data, the mode of QoS=1 or QoS=2 needs to be used for communication, which will further occupy network resources. If 5G communication technology is adopted, in order to solve the problem of network resources, it is possible to try to increase the density of base station deployment, but it will introduce cost problems.
基于此,本发明实施例1提供了一种工程机械设备远程调度管理远程调度管理方法,应用了设备影子。图1为本发明实施例1中工程机械设备远程调度管理方法的流程示意图,如图1所示,本发明实施例1的工程机械设备远程调度管理方法包括以下步骤:Based on this, Embodiment 1 of the present invention provides a remote scheduling management method for remote scheduling and management of construction machinery equipment, which applies equipment shadowing. 1 is a schematic flowchart of a method for remote scheduling and management of construction machinery and equipment in Embodiment 1 of the present invention. As shown in FIG. 1 , the method for remote scheduling and management of construction machinery and equipment in Embodiment 1 of the present invention includes the following steps:
S101:接收预设的服务器下发的工程机械设备的预期状态信息。S101: Receive expected state information of construction machinery equipment delivered by a preset server.
具体的,在接收服务器下发的工程机械设备的预期状态信息之前还包括:创建设备影子。Specifically, before receiving the expected state information of the construction machinery equipment sent by the server, the method further includes: creating a device shadow.
示例的,预设的服务器为云端服务器(也可称为中心服务器)可以向desired部分写入数据来更新预期状态信息。For example, the preset server is a cloud server (also referred to as a central server), which can write data to the desired part to update the expected state information.
S102:接收所述工程机械设备上报的当前状态信息。S102: Receive current state information reported by the construction machinery equipment.
具体的,所述接收所述工程机械设备上报的当前状态信息可以采用如下三种方案:第一个方案为:接收所述工程机械设备按预设的第一周期上报的当前状态信息;第二个方案为:接收所述工程机械设备接入所述设备影子时上报的当前状态信息;第三个方案为:接收所述工程机械设备按预设的第一周期上报的当前状态信息,且接收所述工程机械设备接入所述设备影子时上报的当前状态信息。也就是说,工程机械设备按周期发送消息通过Reported字段触发状态同步。当网络出现波动,车辆重新上线时,也可以设定立刻发送一个状态消息,其中Reported字段如果与影子存储的预期状态信息不一致则会自动触发状态下发以及状态检查。Specifically, the following three schemes may be adopted for receiving the current status information reported by the construction machinery equipment: the first scheme is: receiving the current status information reported by the construction machinery equipment according to the preset first cycle; the second scheme is: The first solution is: receiving the current state information reported when the construction machinery equipment accesses the device shadow; the third solution is: receiving the current state information reported by the construction machinery equipment according to the preset first cycle, and receiving Current status information reported by the construction machinery equipment when it accesses the equipment shadow. That is to say, the construction machinery equipment periodically sends messages to trigger status synchronization through the Reported field. When the network fluctuates and the vehicle is back online, it can also be set to send a status message immediately. If the Reported field is inconsistent with the expected status information stored in the shadow, it will automatically trigger status delivery and status check.
进一步的,在接收所述工程机械设备上报的当前状态信息之前,还包括:发送鉴权信息至所述服务器,鉴权信息与工程机械设备身份验证信息相关,一种工程机械设备在一个云服务平台上拥有唯一的鉴权信息,鉴权信息是设备影子创建时,设备影子返回给云服务器的。以使所述工程机械设备通过所述鉴权信息接入所述服务器。也就是说,工程机械设备通过服务器的身份信息认证,安全地连接入服务器。需要说明的是,预期状态信息下发到设备影子与工程机械设备是否接入云服务器没有必然顺序。工程机械设备可以先于影子设备创建接入,也可以后于影子设备创建接入。工程机械设备通过鉴权信息接入后预先状态信息会自动同步到工程机械设备上。Further, before receiving the current state information reported by the construction machinery equipment, it also includes: sending authentication information to the server, the authentication information is related to the identity verification information of the construction machinery equipment, and a kind of construction machinery equipment in a cloud service. The platform has unique authentication information. The authentication information is returned to the cloud server when the device shadow is created. so that the construction machinery device can access the server through the authentication information. That is to say, the construction machinery and equipment are securely connected to the server through the authentication of the server's identity information. It should be noted that there is no certain order in which the expected status information is sent to the device shadow and whether the construction machinery equipment is connected to the cloud server. The construction machinery equipment can create access before the shadow device, or can create the access after the shadow device. After the construction machinery equipment is accessed through the authentication information, the pre-status information will be automatically synchronized to the construction machinery equipment.
示例的,工程机械设备可以向reported部分写入当前状态信息。For example, the construction machinery equipment can write the current status information to the reported part.
S103:判断所述当前状态信息与所述预期状态信息是否相同。S103: Determine whether the current state information is the same as the expected state information.
具体的,所述预期状态信息中携带有第一时间信息,所述当前状态信息中携带有第二时间信息,所述判断当前状态信息与所述预期状态信息是否相同可以采用如下方案:判断所述第一时间信息与所述第二时间信息是否相同。也就是说,Desired字段中携带etag字段,用于标示某个时间点需要下发的数据,Reported字段中也携带etag字段。当影子中Desired数据和上报的Reported数据中etag字段值一致时,不需单独对比其他业务字段,直接认为一致。Specifically, the expected state information carries first time information, and the current state information carries second time information, and the judging whether the current state information and the expected state information are the same may adopt the following scheme: whether the first time information and the second time information are the same. That is to say, the Desired field carries the etag field, which is used to indicate the data to be delivered at a certain point in time, and the Reported field also carries the etag field. When the value of the etag field in the Desired data in the shadow is the same as that in the Reported data in the report, it is not necessary to compare other business fields separately, and it is directly considered to be the same.
S104:当所述当前状态信息与所述预期状态信息不同时,将所述预期状态信息下发至所述工程机械设备。S104: When the current state information is different from the expected state information, deliver the expected state information to the construction machinery device.
所述预期状态信息中携带有第一验证信息,所述当前状态信息中携带有第二验证信息,作为进一步的实施方式,在将所述当前状态信息发送至所述服务器之前,还包括:判断所述第一验证信息与所述第二验证信息是否相同;当所述第一验证信息与所述第二验证信息相同时,将所述当前状态信息发送至所述服务器,所述服务器分析上报的工程机械当前状态信息,重新写入下发的预期状态信息。当所述第一验证信息与所述第二验证信息不同时,发送报警消息。示例的,工程机械设备运行时状态监控字段AlertStatus应为False,如果上报数据中该字段为True,则在此处进行拦截,并推送告警和数据分析字段,此处的数据分析字段和和监控字段类似,指出现异常的某一具体机械设备状态,比如电量、网络强度等。The expected state information carries first verification information, and the current state information carries second verification information. As a further implementation manner, before sending the current state information to the server, the method further includes: judging Whether the first verification information is the same as the second verification information; when the first verification information is the same as the second verification information, send the current state information to the server, and the server analyzes and reports The current state information of the construction machinery is rewritten into the expected state information issued. When the first verification information is different from the second verification information, an alarm message is sent. For example, the status monitoring field AlertStatus of construction machinery equipment should be False. If the field in the reported data is True, it will be intercepted here, and the alarm and data analysis fields will be pushed. The data analysis fields and monitoring fields here Similarly, it refers to the abnormal state of a specific mechanical device, such as power, network strength, etc.
也就是说,本发明实施例1是利用设备影子概念、消息队列进行实现的异步状态下发以及数据上报通信模式,基于这种模式处理上下行数据的工程机械设备监控系统可以有效解决由于工程机械设备端与云服务平台之间数据上传与下发可靠度不高导致的远程调度管理效果不佳的问题。同时,基于消息队列实现的异步通信特性,可以使得网络具有抗干扰性,不易受到工程机械复杂的作业环境导致的网络波动影响。That is to say, Embodiment 1 of the present invention uses the concept of device shadow and message queue to realize the asynchronous state sending and data reporting communication mode. The construction machinery equipment monitoring system processing uplink and downlink data based on this mode can effectively solve the problems caused by construction machinery. The problem of poor remote scheduling management effect caused by the low reliability of data upload and delivery between the device and the cloud service platform. At the same time, the asynchronous communication feature based on the message queue can make the network anti-interference and not easily affected by the network fluctuation caused by the complex working environment of construction machinery.
作为进一步的实施方式,设备影子中的工程机械设备远程调度管理方法还包括:接收所述工程机械设备上报的当前状态信息,并将所述当前状态信息发送至所述服务器。As a further embodiment, the method for remote scheduling and management of construction machinery equipment in the equipment shadow further includes: receiving current status information reported by the construction machinery equipment, and sending the current status information to the server.
具体的,所述接收所述工程机械设备上报的当前状态信息可以采用如下方案:接收所述工程机械设备按预设的第二周期上报的当前状态信息。Specifically, the receiving the current state information reported by the construction machinery equipment may adopt the following scheme: receiving the current status information reported by the construction machinery equipment according to a preset second cycle.
为了更加详细的说明本发明实施例1的工程机械设备远程调度管理方法,给出一个更加详细的示例,如图2所示,工程机械设备远程调度管理方法包括以下步骤:In order to describe in more detail the method for remote dispatching and management of construction machinery and equipment according to Embodiment 1 of the present invention, a more detailed example is given. As shown in FIG. 2 , the method for remote dispatching and management of construction machinery and equipment includes the following steps:
1、注册工程机械设备,此时设备影子已创建。下发状态数据。1. Register construction machinery and equipment. At this time, the equipment shadow has been created. Send status data.
2、接入工程机械设备,工程机械设备与影子进行状态同步。2. Access to construction machinery and equipment, and the construction machinery equipment and the shadow are synchronized.
3、工程机械设备不与数据分析模块直接交互,数据分析模块通过拉取影子数据,获取到最新上报的工程机械设备数据。3. Construction machinery equipment does not interact directly with the data analysis module. The data analysis module obtains the latest reported construction machinery equipment data by pulling shadow data.
由此可见,本发明实施例1提供的工程机械设备远程调度管理方法具有如下有益效果:It can be seen that the method for remote dispatching and management of construction machinery and equipment provided in Embodiment 1 of the present invention has the following beneficial effects:
(1)通过设备影子的引入,将下发状态、上报数据的功能改为了异步的实现,整体过程中对于网络的依赖降低。(1) Through the introduction of device shadows, the functions of sending status and reporting data are changed to asynchronous implementation, reducing the dependence on the network in the overall process.
(2)当网络出现波动时,按传统的同步命令下发的方式可能会导致状态丢失,从而云端无法掌握到命令的执行情况,并且不确定状态是否成功下发。采用设备影子方式下发的命令,边缘云端保存了需要下发的状态,并且是以“预期状态/数据”的方式存储,便于车辆上报后进行校验。如果网络出现波动,从影子下发的状态失败了,周期上报数据时,可以在下一次上报后自动重新同步下发数据,可以保证状态的最终一致性。(2) When the network fluctuates, the state may be lost in the traditional way of synchronous command issuance, so that the cloud cannot grasp the execution of the command, and it is uncertain whether the status is successfully issued. The command issued by the device shadow method, the edge cloud saves the status that needs to be issued, and stores it in the form of "expected status/data", which is convenient for verification after the vehicle is reported. If the network fluctuates and the state sent from the shadow fails, when the data is reported periodically, the data can be automatically re-synchronized after the next report to ensure the final consistency of the state.
(3)上报的数据如果reported当中etag和desired中的etag不一致,可以校验出此时上报的数据并非是在预期的状态下生成的,不应该使用。由此可以保障数据的正确性,且可以及时纠正状态,无需人工重新下发。(3) If the reported data is inconsistent with the etag in desired and reported, it can be verified that the data reported at this time is not generated in the expected state and should not be used. In this way, the correctness of the data can be guaranteed, and the status can be corrected in time without manual re-issue.
(4)相比同步方式下发状态,高效的消息交互方式可以提升整个网络的效率,提高有效消息的吞吐量。(4) Compared with the synchronous mode, the efficient message interaction mode can improve the efficiency of the entire network and improve the throughput of effective messages.
本发明实施例1提供的工程机械设备远程调度管理方法示例的应用场景包括如下几种。The example application scenarios of the method for remote scheduling management of construction machinery equipment provided in Embodiment 1 of the present invention include the following.
1、工程机械设备在偏远矿山运行,矿山的通信条件比较差。在矿山周围的一些特定地点部署了边缘服务器,工程机械设备与边缘服务器通信连接,接受边缘服务器的调度管理。受作业场景限制,工程机械设备与边缘服务器的通信很不稳定,工程机械设备频繁从边缘云服务器上线、下线,数据信息交互的可靠性无法保证。边缘服务器发送预期状态信息给工程机械设备,工程机械设备刚好掉线了,无法对此预期状态信息进行及时应答,等工程机械设备重新接入边缘服务器后对此指令进行应答,已经错过了最佳应答时机,调度管理效果没有达到边缘服务器的预期规划。使用基于设备影子机制的远程调度管理方法,边缘服务器发送控制指令性质的预期状态信息,指令携带时间戳保存在设备影子中。当设备掉线重连时,从设备影子获取指令并根据时间戳确定是否执行。对应上述的有益效果(1)(2)(3)。1. Construction machinery and equipment operate in remote mines, and the communication conditions of mines are relatively poor. Edge servers are deployed in some specific locations around the mine, and construction machinery and equipment are connected to the edge server to accept the scheduling management of the edge server. Restricted by the operation scenario, the communication between construction machinery and edge servers is very unstable, construction machinery is frequently online and offline from the edge cloud server, and the reliability of data and information interaction cannot be guaranteed. The edge server sends the expected status information to the construction machinery equipment. The construction machinery equipment just dropped the line and cannot respond to the expected status information in time. After the construction machinery equipment reconnects to the edge server, it responds to this command, which has missed the best time. The response timing and scheduling management effect did not meet the expected planning of the edge server. Using the remote scheduling management method based on the device shadow mechanism, the edge server sends the expected state information of the nature of the control command, and the command carries the timestamp and is stored in the device shadow. When the device is disconnected and reconnected, obtain the command from the device shadow and determine whether to execute it according to the timestamp. Corresponding to the above-mentioned beneficial effects (1) (2) (3).
2、工程机械设备在城市的封闭园区运行,封闭园区的通信条件较好,工程机械设备直接与中心云服务器连接。中心云服务器能提供诸如预测性维护、驾驶导航、路径规划、空中升级、监控预警等丰富的生态功能服务。很多应用程序请求获取工程机械设备的状态信息,工程机械设备需要根据不同应用程序的请求响应多次,即使响应的结果是一样的。工程机械设备本身处理能力有限,这些状态获取请求给其计算处理负载带来很大压力。另一方面,中心云服务器连接了成千上万的工程机械设备,这些工程机械设备响应不同的应用程序请求上报状态信息,这也给中心云服务器的高并发能力带来很大挑战。使用基于设备影子机制的远程调度管理方法,工程机械设备只需要主动同步状态给设备影子一次,多个应用程序请求设备影子获取设备状态,即可获取工程机械设备最新状态,做到应用程序和设备的解耦(同理中心云服务器端),大大减轻了工程机械设备和云服务器的计算处理负担。对应上述的有益效果(4)。2. The construction machinery and equipment operate in the closed park of the city, the communication conditions of the closed park are better, and the construction machinery and equipment are directly connected to the central cloud server. The central cloud server can provide rich ecological function services such as predictive maintenance, driving navigation, path planning, air upgrade, monitoring and early warning. Many applications request to obtain the status information of construction machinery equipment, and construction machinery equipment needs to respond multiple times according to the requests of different applications, even if the response results are the same. The processing capacity of construction machinery and equipment itself is limited, and these state acquisition requests bring great pressure to its computing processing load. On the other hand, the central cloud server is connected to thousands of construction machinery devices, and these construction machinery devices report status information in response to different application requests, which also brings great challenges to the high concurrency capability of the central cloud server. Using the remote scheduling management method based on the device shadow mechanism, the construction machinery equipment only needs to actively synchronize the state to shadow the device once, and multiple applications request the device shadow to obtain the device status, and then the latest status of the construction machinery and equipment can be obtained, so that the application and equipment can be obtained. The decoupling (similar to the central cloud server side) greatly reduces the computational processing burden of construction machinery equipment and cloud servers. Corresponding to the above-mentioned beneficial effect (4).
实施例2Example 2
本发明实施例2提供了一种工程机械设备远程调度管理装置,应用于设备影子。图3为本发明实施例2中工程机械设备远程调度管理装置的结构示意图,如图3所示本发明实施例2的工程机械设备远程调度管理装置包括第一接收模块20、第二接收模块21处理模块22。Embodiment 2 of the present invention provides a remote dispatch management device for construction machinery and equipment, which is applied to equipment shadows. FIG. 3 is a schematic structural diagram of a remote dispatch management device for construction machinery equipment in Embodiment 2 of the present invention. As shown in FIG. 3 , the remote dispatch management device for construction machinery equipment in Embodiment 2 of the present invention includes a first receiving module 20 and a second receiving module 21 processing module 22 .
具体的,第一接收模块20,用于接收预设的服务器下发的工程机械设备的预期状态信息。Specifically, the first receiving module 20 is configured to receive the expected state information of the construction machinery equipment delivered by the preset server.
第二接收模块21,用于接收所述工程机械设备上报的当前状态信息。The second receiving module 21 is configured to receive the current state information reported by the construction machinery equipment.
处理模块22,用于当所述当前状态信息与所述预期状态信息不同时,将所述预期状态信息下发至所述工程机械设备。The processing module 22 is configured to deliver the expected status information to the construction machinery equipment when the current status information is different from the expected status information.
上述工程机械设备远程调度管理装置具体细节可以对应参阅图1至图2所示的实施例中对应的相关描述和效果进行理解,此处不再赘述。The specific details of the above-mentioned remote dispatch management device for construction machinery can be understood by referring to the corresponding descriptions and effects in the embodiments shown in FIG. 1 to FIG. 2 , and details are not repeated here.
实施例3Example 3
本发明实施例还提供了一种设备影子,该设备影子可以包括处理器和存储器,其中处理器和存储器可以通过总线或者其他方式连接。Embodiments of the present invention also provide a device shadow, where the device shadow may include a processor and a memory, where the processor and the memory may be connected through a bus or in other ways.
处理器可以为中央处理器(Central Processing Unit,CPU)。处理器还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。The processor may be a central processing unit (Central Processing Unit, CPU). The processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other Chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above types of chips.
存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如本发明实施例中的工程机械设备远程调度管理方法对应的程序指令/模块(例如,图3所示的第一接收模块20、第二接收模块21和处理模块22)。处理器通过运行存储在存储器中的非暂态软件程序、指令以及模块,从而执行处理器的各种功能应用以及数据处理,即实现上述方法实施例中的工程机械设备远程调度管理方法。As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions corresponding to the method for remote scheduling management of construction machinery equipment in the embodiment of the present invention /modules (for example, the first receiving module 20, the second receiving module 21 and the processing module 22 shown in FIG. 3). The processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, the remote scheduling management method for construction machinery equipment in the above method embodiments is implemented.
存储器可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储处理器所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system and an application program required by at least one function; the storage data area may store data created by the processor, and the like. Additionally, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory may optionally include memory located remotely from the processor, such remote memory being connectable to the processor via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
所述一个或者多个模块存储在所述存储器中,当被所述处理器执行时,执行如图1至图2所示实施例中的工程机械设备远程调度管理方法。The one or more modules are stored in the memory, and when executed by the processor, execute the method for remote dispatch management of construction machinery equipment in the embodiments shown in FIG. 1 to FIG. 2 .
上述设备影子具体细节可以对应参阅图1至图3所示的实施例中对应的相关描述和效果进行理解,此处不再赘述。The specific details of the above-mentioned device shadow can be understood by referring to the corresponding related descriptions and effects in the embodiments shown in FIG. 1 to FIG. 3 , and details are not repeated here.
本领域技术人员可以理解,实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)、随机存储记忆体(Random AccessMemory,RAM)、快闪存储器(Flash Memory)、硬盘(Hard Disk Drive,缩写:HDD)或固态硬盘(Solid-State Drive,SSD)等;所述存储介质还可以包括上述种类的存储器的组合。Those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, the processes of the embodiments of the above-mentioned methods may be included. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a flash memory (Flash Memory), a hard disk (Hard Disk) Drive, abbreviation: HDD) or solid-state drive (Solid-State Drive, SSD), etc.; the storage medium may also include a combination of the above-mentioned types of memories.
虽然结合附图描述了本发明的实施例,但是本领域技术人员可以在不脱离本发明的精神和范围的情况下作出各种修改和变型,这样的修改和变型均落入由所附权利要求所限定的范围之内。Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, various modifications and variations can be made by those skilled in the art without departing from the spirit and scope of the present invention, such modifications and variations falling within the scope of the appended claims within the limited range.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111598234.7A CN114331092A (en) | 2021-12-24 | 2021-12-24 | Equipment shadow, remote scheduling management method, device and system for engineering mechanical equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111598234.7A CN114331092A (en) | 2021-12-24 | 2021-12-24 | Equipment shadow, remote scheduling management method, device and system for engineering mechanical equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114331092A true CN114331092A (en) | 2022-04-12 |
Family
ID=81013596
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111598234.7A Pending CN114331092A (en) | 2021-12-24 | 2021-12-24 | Equipment shadow, remote scheduling management method, device and system for engineering mechanical equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114331092A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114785766A (en) * | 2022-04-29 | 2022-07-22 | 青岛海信智慧生活科技股份有限公司 | Control method of intelligent equipment, terminal and server |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110493270A (en) * | 2019-09-25 | 2019-11-22 | 北京金茂绿建科技有限公司 | Internet of things equipment accesses fused controlling method and device thereof |
CN110545222A (en) * | 2019-08-23 | 2019-12-06 | 珠海格力电器股份有限公司 | Method and device for controlling equipment, computing equipment and storage medium |
CN113630366A (en) * | 2020-05-07 | 2021-11-09 | 中移物联网有限公司 | Internet of things equipment access method and system |
-
2021
- 2021-12-24 CN CN202111598234.7A patent/CN114331092A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110545222A (en) * | 2019-08-23 | 2019-12-06 | 珠海格力电器股份有限公司 | Method and device for controlling equipment, computing equipment and storage medium |
CN110493270A (en) * | 2019-09-25 | 2019-11-22 | 北京金茂绿建科技有限公司 | Internet of things equipment accesses fused controlling method and device thereof |
CN113630366A (en) * | 2020-05-07 | 2021-11-09 | 中移物联网有限公司 | Internet of things equipment access method and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114785766A (en) * | 2022-04-29 | 2022-07-22 | 青岛海信智慧生活科技股份有限公司 | Control method of intelligent equipment, terminal and server |
CN114785766B (en) * | 2022-04-29 | 2023-10-24 | 青岛海信智慧生活科技股份有限公司 | Control method, terminal and server of intelligent equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110096340B (en) | Timing task processing method and device | |
US11636016B2 (en) | Cloud simulation and validation system | |
CN103500111A (en) | Information configuration method and device based on zookeeper | |
CN115004650B (en) | Node configuration method, device, distributed system and computer-readable medium | |
CN110138753B (en) | Distributed message service system, method, apparatus, and computer-readable storage medium | |
CN107682460B (en) | Distributed storage cluster data communication method and system | |
CN117278639B (en) | Method, apparatus and storage medium for deterministic network-based communication time scheduling | |
CN111416836A (en) | Nginx-based server maintenance method and device, computer equipment and storage medium | |
CN114500243B (en) | Data communication method, device, computer readable medium and electronic equipment | |
CN116166470A (en) | Redis cluster clone replication method and device, medium and equipment | |
CN114900449A (en) | Resource information management method, system and device | |
CN114331092A (en) | Equipment shadow, remote scheduling management method, device and system for engineering mechanical equipment | |
CN114124881B (en) | Message pushing method based on priority and related device | |
WO2025118967A1 (en) | Big data access method based on protocol adaptation and scheduling in seismological industry | |
CN110750369B (en) | A distributed node management method and system | |
CN106528324A (en) | Fault recovery method and apparatus | |
CN109496420B (en) | Ring server cluster management method, device and computer storage medium | |
CN115550382A (en) | Configuration item synchronization method, device, system and equipment | |
Rajković et al. | Resource Awareness in Complex Industrial Systems–A Strategy for Software Updates | |
US20220086103A1 (en) | Network bandwidth adjustment method and related product | |
CN109525496A (en) | A kind of update method and device of link-state information | |
CN106789495B (en) | A single-controller master-slave network bus controller online switching method | |
CN116521593A (en) | Communication method, system and related equipment of baseboard management controller | |
CN114697334A (en) | Execution method and device for scheduling tasks | |
Wang et al. | Detection and analysis of performance deterioration in mobile offloading system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220412 |
|
RJ01 | Rejection of invention patent application after publication |