Message processing methods, apparatus, systems and storage media
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2026-08-14
AI Technical Summary
[0003]在实现本公开构思的过程中,发明人发现相关技术中至少存在如下问题:现有的仓库管理系统中多个功能模块彼此之间耦合性高,在仓储业务场景变换的情况下,程序代码更新复杂,难以适应复杂灵活的仓储需求
[0021]根据本公开的实施例,通过控制系统的第一功能模块将控制消息发送至消息中心,消息中心响应于第一功能模块发送的控制消息,基于控制消息的属性信息,从控制系统的多个功能模块中确定第二功能模块,消息中心将控制消息发送至第二功能模块,消息中心根据控制消息的属性信息确定目标反馈方式,第二功能模块在接收到控制消息后,向消息中心发送反馈消息,根据目标反馈方式将基于反馈消息生成的反馈结果发送至第一功能模块的技术手段,能够利用消息中心在控制系统的多个功能模块之间进行消息的传输,以确保各功能模块在互相关联的同时降低彼此之间的耦合性,所以至少部分的克服了相关技术中控制系统在运行过程中,针对不同的业务,控制系统中多个功能模块彼此之间耦合性高而导致的无法灵活的适应变化的问题。通过采用一种应用于消息中心的消息处理方法,有效提高了各个功能模块之间的关联性并能灵活的适应不同类型的业务。
Smart Images

Figure CN116980270B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the fields of computer technology, internet technology, and warehousing services, and more specifically, to a message processing method, apparatus, computer system, readable storage medium, and computer program product. Background Technology
[0002] WCS stands for Warehouse Control System, which guides the real-time activities of warehouses and distribution centers. For example, a WCS system coordinates the operation of various logistics equipment such as conveyor belts, conveyor systems, sorting machines, and palletizers.
[0003] In realizing the concept disclosed herein, the inventors discovered at least the following problems in the related technology: the existing warehouse management system has a high degree of coupling between multiple functional modules, and the program code is complicated to update when the warehousing business scenario changes, making it difficult to adapt to complex and flexible warehousing needs. Summary of the Invention
[0004] In view of the above, this disclosure provides a message processing method, apparatus, computer system, readable storage medium, and computer program product.
[0005] One aspect of this disclosure provides a message processing method applied to a message center, comprising: responding to receiving a control message sent by a first functional module of a control system; determining a second functional module from a plurality of functional modules of the control system based on attribute information of the control message; sending the control message to the second functional module and receiving a feedback message sent by the second functional module; determining a target feedback method based on the attribute information of the control message; and sending a feedback result to the first functional module according to the target feedback method, wherein the feedback result is generated based on the feedback message.
[0006] According to an embodiment of this disclosure, sending a feedback result to the first functional module according to the target feedback method includes: when the target feedback method is determined to be a synchronous feedback method, determining a waiting time, wherein the waiting time is used to characterize the duration between the receiving time and the sending time, the sending time is used to characterize the time when the control message is sent to the second functional module, and the receiving time is used to characterize the time when the feedback information sent by the second functional module is received; when the waiting time is determined to be less than or equal to a preset time threshold, using the feedback message as the feedback result and sending the feedback result to the first functional module; and when the waiting time is determined to be greater than the preset time threshold, using the result characterizing the message sending failure as the feedback result and sending the feedback result to the first functional module.
[0007] According to an embodiment of this disclosure, sending a feedback result to the first functional module in accordance with the target feedback method includes: when it is determined that the target feedback method is an asynchronous feedback method, taking the result used to characterize the successful message sending as the feedback result, and sending the feedback result to the first functional module.
[0008] According to an embodiment of this disclosure, sending the control message to the second functional module includes: adding a status identifier to the control message and storing the control message in storage space; sending the control message to the second functional module; and updating the status identifier of the stored control message.
[0009] According to an embodiment of this disclosure, before sending the control message to the second functional module, the method further includes: in response to receiving a control message from the first functional module; determining a message identifier for the control message; based on the message identifier, determining from the storage space whether a received control message matching the message identifier is stored; if it is determined that the received control message is stored in the storage space, determining a status identifier for the received control message; and if it is determined that the status identifier is used to characterize a successfully sent feedback result, resending the feedback result to the second functional module.
[0010] According to embodiments of this disclosure, determining a second functional module from multiple functional modules of the control system based on the attribute information of the control message includes: determining the message source of the control instruction and the service type corresponding to the control instruction from the attribute information of the control message, wherein the message source is used to characterize the first functional module; determining at least one initial second functional module from the multiple functional modules based on the message source and the subscription mapping relationship, wherein the subscription mapping relationship is used to characterize the mapping relationship between the second functional module and the first functional module; and determining the second functional module from the at least one initial second functional module based on the service type.
[0011] According to embodiments of this disclosure, determining the target feedback method based on the attribute information of the control instruction includes: determining the message type of the control instruction from the attribute information of the control instruction; and determining the target feedback method from multiple feedback methods based on the message type and a preset feedback mapping relationship, wherein the preset feedback mapping relationship is used to characterize the mapping relationship between the message type and the feedback method.
[0012] According to embodiments of this disclosure, the plurality of modules include an adapter module; the method further includes: receiving a control request sent by the adapter module, wherein the control request is used to request control of the device using the control system.
[0013] According to an embodiment of this disclosure, the method further includes: in response to determining that the second functional module is the adapter module, determining the control message as a control instruction; and sending the control instruction to the adapter module so that the adapter module sends the control instruction to the device.
[0014] Another aspect of this disclosure provides a message processing apparatus, comprising: a function determination module, which, in response to receiving a control message sent by a first function module of a control system, determines a second function module from a plurality of function modules of the control system based on attribute information of the control message; a control transmission module, which sends the control message to the second function module and receives a feedback message sent by the second function module; a feedback determination module, which determines a target feedback method based on the attribute information of the control message; and a feedback transmission module, which sends a feedback result to the first function module according to the target feedback method, wherein the feedback result is generated based on the feedback message.
[0015] Another aspect of this disclosure provides a computer system comprising:
[0016] One or more processors;
[0017] Memory, used to store one or more programs.
[0018] When the above one or more programs are executed by the above one or more processors, the above one or more processors implement the above method.
[0019] Another aspect of this disclosure provides a computer-readable storage medium storing executable instructions that, when executed by a processor, cause the processor to implement the method described above.
[0020] Another aspect of this disclosure provides a computer program product comprising: computer-executable instructions, which, when executed, are used to implement the method described above.
[0021] According to embodiments of this disclosure, a first functional module of the control system sends a control message to a message center. The message center, responding to the control message from the first functional module, determines a second functional module from among multiple functional modules of the control system based on the attribute information of the control message. The message center then sends the control message to the second functional module. The message center determines a target feedback method based on the attribute information of the control message. Upon receiving the control message, the second functional module sends a feedback message to the message center and sends the feedback result generated based on the feedback message to the first functional module according to the target feedback method. This technical means enables message transmission between multiple functional modules of the control system using a message center, ensuring that the functional modules are interconnected while reducing their coupling. Therefore, it at least partially overcomes the problem in related technologies where the high coupling between multiple functional modules in the control system during operation, leading to an inflexible ability to adapt to changes for different services. By adopting a message processing method applied to a message center, the interconnectivity between various functional modules is effectively improved, and it can flexibly adapt to different types of services. Attached Figure Description
[0022] The above and other objects, features and advantages of this disclosure will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:
[0023] Figure 1 The schematic diagram illustrates an architecture in which the message processing method of this disclosure can be applied;
[0024] Figure 2 A flowchart illustrating a message processing method according to an embodiment of the present disclosure is shown schematically.
[0025] Figure 3 A signaling diagram of a message processing method with synchronous feedback according to an embodiment of the present disclosure is illustrated schematically;
[0026] Figure 4A signaling diagram of an asynchronous feedback message processing method according to an embodiment of the present disclosure is illustrated schematically;
[0027] Figure 5 The schematic diagram illustrates a message processing method with an idempotent mechanism according to an embodiment of the present disclosure;
[0028] Figure 6 A block diagram of a message processing apparatus according to another embodiment of the present disclosure is shown schematically;
[0029] Figure 7 A block diagram of a computer system for a message processing method according to an embodiment of the present disclosure is shown schematically. Detailed Implementation
[0030] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.
[0031] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0032] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0033] When using expressions such as "at least one of A, B, and C," the expression should generally be interpreted in accordance with the meaning commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, and C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.). Similarly, when using expressions such as "at least one of A, B, or C," the expression should generally be interpreted in accordance with the meaning commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, or C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).
[0034] Intelligent warehousing systems can be equipped with control systems, such as Warehouse Control Systems (WCS), to interface with different suppliers and various types of equipment, integrating the control of these devices to complete business processes. However, due to the significant differences in projects, scenarios, and equipment types, business operations are highly variable. In existing WCS systems, the high degree of coupling between multiple functional modules hinders their ability to flexibly adapt to complex business changes.
[0035] In view of the above, embodiments of this disclosure provide a message processing method applied to a message center, comprising: a first functional module and a second functional module; the first functional module of the control system sends a control message to the message center; in response to the control message and based on the attribute information of the control message, the second functional module is determined from a plurality of functional modules of the control system; the message center sends a control message to the second functional module and receives a feedback message sent by the second functional module; based on the attribute information of the control message, a target feedback method is determined; and according to the target feedback method, a feedback result generated based on the feedback message is sent to the first functional module.
[0036] According to embodiments of this disclosure, to address the problem of intelligent warehousing failing to function properly and affecting work efficiency due to the complex and ever-changing working environment, the correlation between multiple functional modules in the WCS system can be reduced by decoupling the modules, thereby improving the flexibility and independence of the control system.
[0037] Figure 1 An exemplary system architecture 100 to which message processing methods and apparatus can be applied according to embodiments of this disclosure is illustrated schematically. It should be noted that... Figure 1The examples shown are merely examples of system architectures that can be applied to the embodiments of this disclosure, in order to help those skilled in the art understand the technical content of this disclosure, but do not mean that the embodiments of this disclosure cannot be used in other devices, systems, environments or scenarios.
[0038] like Figure 1 As shown, the system architecture 100 according to this embodiment may include a control system 110, a message center 120, and a network. The network serves as a medium for providing a communication link between the control system 110 and the message center 120. The network may include various connection types, such as wired and / or wireless communication links, etc.
[0039] The control system 110 can be a server that provides various services, such as a back-end management server that supports external devices (for example only). The back-end management server can analyze and process control requests sent by devices and generate control commands.
[0040] The control system 110 may include multiple functional modules, each of which may include one of the following: an adapter module 111, a process module 112, a resource module 113, a device module 114, a path planning module 115, and a task management module 116. The adapter module can interface with devices from external systems via a docking port to receive requests from those devices. The process module can be used to set the operational flow for the automated operation of the control devices. The resource module can be used to receive and store key instructions and control the issuance of key instructions. The device module can be used to check the operating status of the devices. The path planning module can plan specific routes for the external devices based on instructions from the external system. The task management module can generate task information based on requests from external devices.
[0041] The message center 120, acting as an intermediate processing layer, receives control messages from any functional module in the control system 110. Based on the attribute information of the control messages, it determines a second functional module from among the multiple functional modules of the control system. It then sends control messages to the second functional module and receives feedback messages from it. Based on the attribute information of the control messages, it determines the target feedback method. The message center then sends the feedback result to the first functional module according to the target feedback method. This reduces the coupling between multiple functional modules in the control system 110, increases their independence, enhances the flexibility of the control system 110, and ultimately expands the business processing scope of the control system 110.
[0042] It should be understood that Figure 1 The number of message centers, networks, and control systems shown is merely illustrative. Depending on implementation needs, any number of message centers, networks, and control systems can be included.
[0043] Figure 2 A flowchart illustrating a message processing method to which this disclosure can be applied is shown schematically.
[0044] like Figure 2 As shown, a message processing method for a control system is applied to a message center. This method may include operations S210 to S240.
[0045] It should be noted that the sequence numbers of the operations in the following methods are for descriptive purposes only and should not be considered as indicating the execution order of the operations. Unless explicitly stated otherwise, the method does not need to be executed in the exact order shown.
[0046] In operation S210, the message center responds to receiving a control message sent by the first functional module of the control system, and determines the second functional module from multiple functional modules of the control system based on the attribute information of the control message.
[0047] During operation S220, the message center sends control messages to the second functional module and receives feedback messages sent by the second functional module.
[0048] When operating S230, the message center determines the target feedback method based on the attribute information of the control message.
[0049] During operation S240, the message center sends feedback results to the first functional module according to the target feedback method, wherein the feedback results are generated based on the feedback message.
[0050] According to embodiments of this disclosure, the control system can be a WCS system. The WCS system mainly includes multiple functional modules, each of which may include one of the following: an adapter module, a process module, a resource module, a device module, a path planning module, and a task management module. The adapter module can interface with devices from external systems via a docking port and receive requests from those devices. The process module can be used to set the operational flow for automating the control device's operation. The resource module can be used to receive and store key instructions and control the issuance of key instructions. The device module can be used to check the device's operating status. The path planning module can plan specific routes for the external device based on instructions from the external system. The task management module can generate task information based on requests from external devices.
[0051] According to embodiments of this disclosure, multiple functional modules in the WCS system need to communicate with each other. For example, the resource module can send control messages to the process module. These control messages can indicate the availability of device resources, allowing the process module to generate corresponding operation flow information that utilizes those resources. The device module can send listening messages to the adapter module. These listening messages can indicate abnormal operating status of external devices, allowing the adapter module to report the abnormality to the external system via the interface port. The path planning module can send planned routes to external devices. These planned routes can indicate the movement path of the external devices, enabling them to move according to the planned routes. The task management module can send task information to the process module. These task information can indicate specific data, allowing the process module to generate matching operation flow information based on the specific data of the task information.
[0052] According to embodiments of this disclosure, the message center can refer to an intermediate processing layer, which is used as a message relay between multiple functional modules to achieve decoupling between multiple functional modules in the WCS system.
[0053] For example, for business A, the resource function module of the WCS system is scheduled to send control messages to the process module. However, for business B, the process module of the WCS system is scheduled to send control messages to the resource function module. Multiple functional modules in the WCS system directly communicate with each other, exhibiting strong coupling but weak adaptability. They cannot automatically adjust to different business needs. However, by using a message center as an intermediate processing layer, multiple functional modules can communicate with each other without considering business types, achieving decoupling and adapting to different business scenarios.
[0054] According to embodiments of this disclosure, when the message center receives a control message, it can determine the receiving module, i.e., the second functional module, based on the attribute information of the control message carried, such as routing information, and forward the control message to ensure that each module can work independently and normally without affecting each other, thus reducing coupling. Therefore, it at least partially overcomes the problem in related technologies where control systems cannot flexibly adapt to changes when encountering complex and ever-changing working environments and dealing with multiple different services during operation.
[0055] According to embodiments of this disclosure, determining a second functional module from multiple functional modules of a control system based on attribute information of control messages may include: determining a message source of a control instruction and a service type corresponding to the control instruction from the attribute information of the control messages, wherein the message source is used to characterize a first functional module; determining at least one initial second functional module from multiple functional modules based on the message source and subscription mapping relationship, wherein the subscription mapping relationship is used to characterize the mapping relationship between the second functional module and the first functional module; and determining a second functional module from at least one initial second functional module based on the service type.
[0056] According to embodiments of this disclosure, the message center can determine the message source that sends the control message, i.e., the first functional module, based on the attribute information of the control message, such as routing information.
[0057] According to embodiments of this disclosure, routing information can be represented as path information from a message source to a subscriber, where the message source can be represented as a first functional module and the subscriber as a second functional module. Based on the routing information, the message center can determine the first and second functional modules that will send the control message.
[0058] For example, the message center determines whether the control message was sent by the process module based on the routing information of the received control message.
[0059] According to embodiments of this disclosure, a control instruction can correspond to a business type. The business type may include a business type that stores items in a logistics warehouse, such as an inbound business type, but is not limited to this. It may also be a business type that automatically transports items from the logistics warehouse to an external location, such as an outbound business type.
[0060] According to embodiments of this disclosure, the subscription mapping relationship can refer to the correspondence between a second functional module and a first functional module. A first functional module can correspond to multiple second functional modules, and this correspondence can be stored in the message center in the form of a mapping relationship table. When it is necessary to query the subscription mapping relationship of a first functional module, it is only necessary to retrieve the mapping relationship table stored in the message center and perform a lookup operation to obtain the second functional module corresponding to the first functional module.
[0061] For example, the message center determines that the control message of service A is sent by the task management module based on the routing information of the control message of service A. The message center determines that the control instruction of service A belongs to service type A, retrieves the mapping relationship table, and determines that the initial second functional module corresponding to the task management module may include the path planning module and the device management module. Based on the service type A corresponding to the control instruction of service A, the message center determines that the second functional module of the control instruction is the path planning module from the path planning module and the device management module.
[0062] According to embodiments of this disclosure, by pre-configuring subscription mapping relationships in the message center, multiple functional modules can be established to interact with each other for each business type. When adding or updating services, the interaction relationships between multiple functional modules can be updated simply by updating the subscription mapping relationships, resulting in strong decoupling and adaptability to business needs. Furthermore, there is no need to update the individual ports of multiple functional modules, simplifying the message passing process.
[0063] According to embodiments of this disclosure, the first functional module may include any one of the following functional modules: resource management module, device management module, path planning module, process module, and task management module, but is not limited to these modules.
[0064] According to embodiments of this disclosure, the second functional module may include any one of the following functional modules: resource management module, device management module, path planning module, process module, and task management module, but is not limited to these modules.
[0065] According to embodiments of this disclosure, for example, a first functional module, namely a process module, can send control messages to a message center. The message center determines a second functional module, namely a path planning module, based on the attribute information of the control messages. The message center determines the target feedback method based on the attribute information of the control messages, and sends the control messages to the path planning module. The path planning module sends the planned feedback messages back to the message center. Based on the target feedback method, the message center sends the feedback results generated based on the feedback messages to the process module.
[0066] According to embodiments of this disclosure, determining a target feedback method based on the attribute information of a control instruction may include: determining the message type of the control instruction from the attribute information of the control instruction; and determining the target feedback method from multiple feedback methods based on the message type and a preset feedback mapping relationship, wherein the preset feedback mapping relationship is used to characterize the mapping relationship between the message type and the feedback method.
[0067] According to embodiments of this disclosure, the feedback method may include synchronous feedback and asynchronous feedback.
[0068] According to embodiments of this disclosure, message types may include asynchronous message types and synchronous message types. However, it is not limited to this. Message types may also be determined according to other classification methods.
[0069] According to embodiments of this disclosure, the preset feedback mapping relationship can refer to the correspondence between message types and feedback methods, and this correspondence can be stored in the message center in the form of a feedback mapping relationship table. When it is necessary to query the preset feedback mapping relationship of a message type, it is only necessary to retrieve the feedback mapping relationship table stored in the message center and perform a table lookup operation to obtain the target feedback method corresponding to the message type.
[0070] For example, the message center determines that the control command belongs to the asynchronous message type based on the attribute information of the control command issued by the resource function module, retrieves the feedback mapping table, looks up the table to determine the asynchronous message feedback method corresponding to the asynchronous message type, and thus determines that the target feedback method is the asynchronous feedback method.
[0071] According to embodiments of this disclosure, a first functional module of the control system sends a control message to a message center. The message center determines a second functional module based on the attribute information of the control message and sends the control message to the second functional module. The message center determines a target feedback method based on the attribute information of the control message. After receiving the control message, the second functional module sends a feedback message to the message center. The message center then sends a feedback result generated based on the feedback message to the first functional module according to the target feedback method.
[0072] According to embodiments of this disclosure, by pre-setting a preset feedback mapping relationship in the message center, a target feedback method can be determined for each message type, so that the message center can send feedback results to the first functional module according to the target feedback method. This improves the flexibility and personalization requirements of transmission control messages, thereby expanding the applicability of the message processing method and broadening its application.
[0073] According to embodiments of this disclosure, when a faulty functional module is identified among multiple functional modules in the control system, the faulty functional module can be replaced or deleted by updating predetermined feedback mapping relationships and / or subscription mapping relationships. This avoids the problem of multiple other functional modules being affected and their normal operation being disrupted. Therefore, the normal operation and efficiency of integrated control in intelligent warehousing are guaranteed even in various complex working environments.
[0074] Figure 3 A signaling diagram of a message processing method with synchronous feedback according to an embodiment of the present disclosure is illustrated schematically.
[0075] like Figure 3 As shown, the message processing method using synchronous feedback may include operations S301 to S310.
[0076] When operating S301, the message center receives control messages sent by the first functional module.
[0077] When operating S302, the message center adds status and message identifiers to control messages.
[0078] When operating S303, the message center will control the storage of messages to the storage space.
[0079] In operation S304, based on the attribute information of the control message, the second functional module is determined from multiple functional modules of the control system.
[0080] When operating S305, the target feedback method is determined to be synchronous feedback.
[0081] When operating S306, the message center sends a control message to the second functional module.
[0082] When operating S307, if the target feedback method is determined to be synchronous feedback, determine the waiting time.
[0083] According to embodiments of this disclosure, the waiting time is used to characterize the duration between the receiving time and the sending time, the sending time is used to characterize the time when the control message is sent to the second functional module, and the receiving time is used to characterize the time when the feedback information sent by the second functional module is received.
[0084] During operation S308, feedback messages sent by the second functional module are received.
[0085] In operation S309, update the status flag of the control message.
[0086] When operating S310, send feedback results to the first functional module.
[0087] According to embodiments of this disclosure, if the waiting time is determined to be less than or equal to a preset time threshold, the feedback message can be used as the feedback result and sent to the first functional module.
[0088] According to embodiments of this disclosure, if it is determined that the waiting time exceeds a preset time threshold, the result used to characterize message sending failure can be used as a feedback result and sent to the first functional module.
[0089] According to embodiments of this disclosure, the waiting time in the synchronous feedback method is from when the message center sends a control message to the second functional module until the second functional module sends a feedback message back to the message center after receiving the control message.
[0090] For example, the process module sends control messages to the message center. Based on the attribute information of the control messages, the message center determines that the second functional module is the resource management module, and simultaneously determines that the target feedback method is synchronous feedback. The message center then sends control messages to the resource management module, begins recording the waiting time, and the resource management module sends feedback messages to the message center, ending the recording of the waiting time.
[0091] According to embodiments of this disclosure, the preset duration threshold can be set manually and can be flexibly adjusted.
[0092] According to an embodiment of this disclosure, if the feedback result is that the timeout has not occurred, a feedback result is sent to the first functional module based on the feedback information; if the feedback result is that the timeout has occurred, a sending message is sent to the first functional module and the sending result fails.
[0093] For example, if a preset waiting time threshold is set to 600 seconds, and the recorded waiting time is 300 seconds, then the waiting time is less than the preset threshold, indicating no timeout, and a feedback message is sent to the first functional module as the feedback result. If the recorded waiting time is 600 seconds, then the waiting time is equal to the preset threshold, indicating no timeout, and a feedback message is sent to the first functional module as the feedback result. If the recorded waiting time is 900 seconds, then the waiting time is greater than the preset threshold, indicating a timeout, and a result indicating message sending failure is sent to the first functional module as the feedback result.
[0094] According to embodiments of this disclosure, the message processing method utilizing synchronous feedback can determine the waiting time using a timer and, based on the response time of the feedback message, determine the feedback result. This can improve the accuracy of the obtained feedback result while also increasing processing flexibility.
[0095] Figure 4 A signaling diagram of an asynchronous feedback message processing method according to an embodiment of the present disclosure is illustrated schematically.
[0096] like Figure 4 As shown, the asynchronous feedback message processing method may include operations S401 to S409.
[0097] When operating S401, the message center receives control messages sent by the first functional module.
[0098] When operating S402, the message center adds status and message identifiers to control messages.
[0099] When operating S403, the message center will control the storage of messages to the storage space.
[0100] In operation S404, based on the attribute information of the control message, the second functional module is determined from multiple functional modules of the control system.
[0101] When operating S405, the target feedback method is determined to be asynchronous feedback.
[0102] When operating S406, the message center sends a control message to the second functional module.
[0103] During operation S407, the message center sends a feedback result to the first functional module to indicate that the message was successfully sent.
[0104] During operation S408, feedback messages are received from the second functional module.
[0105] In operation S409, update the status flag of the control message.
[0106] According to embodiments of this disclosure, when the target feedback method is determined to be asynchronous feedback, the result used to characterize successful message sending can be used as the feedback result and sent to the first functional module.
[0107] According to the embodiments of this disclosure, the target feedback method is an asynchronous message generated by an asynchronous feedback method. Since the message center does not need to wait for the feedback message to be sent to the message center, it can send the result used to indicate that the message was sent successfully to the first functional module.
[0108] For example, the task management module of business A sends control information to the message center. The message center confirms that the path planning module is the second functional module and determines that the target feedback method is asynchronous. The control message is then sent to the path planning module. The message center sends the feedback result to the task management module of task A, and the path planning module sends its feedback message back to the message center. The message center can repeatedly send control messages to the path planning module until the feedback message indicates success.
[0109] According to embodiments of this disclosure, using an asynchronous message transmission method, the first functional module does not need to wait for feedback messages from the second functional module, thereby improving message transmission efficiency.
[0110] According to embodiments of this disclosure, if the feedback message fails, the retry sending operation can be repeated in the message center until the message is successfully sent.
[0111] According to embodiments of this disclosure, the message processing method for a WCS system allows interaction between different functional modules via asynchronous or synchronous feedback. Different feedback methods are generated based on business processes in different scenarios to drive the WCS system's operation, resulting in high flexibility and improved processing efficiency. According to embodiments of this disclosure, sending a control message to a second functional module may include: adding a status identifier and a message identifier to the control message and storing the control message in storage; sending the control message to the second functional module; and updating the status identifier and message identifier of the stored control message.
[0112] According to embodiments of this disclosure, a status identifier can be used to characterize the transmission status of a control message. For example, before the control message is sent to the second functional module, the status identifier can be characterized as not sent. After the control message is sent to the second functional module, the status identifier can be updated to characterize that the control message has been sent.
[0113] According to embodiments of this disclosure, the attribute information of the control message includes, but is not limited to, a status identifier.
[0114] According to embodiments of this disclosure, the message center may include storage space.
[0115] According to embodiments of this disclosure, if a control message fails to be sent successfully, the message center can retry sending the control message stored in the storage space.
[0116] According to embodiments of this disclosure, the storage space can persistently save control messages, thereby preventing the loss of critical control messages when the device malfunctions and improving data security.
[0117] Figure 5 The schematic diagram illustrates a message processing method with an idempotent mechanism according to an embodiment of the present disclosure.
[0118] like Figure 5 As shown, the message processing method of the idempotent mechanism may include operations S510 to S580.
[0119] In operation S510, in response to receiving a control message sent by the first functional module.
[0120] In operation S520, determine the message identifier of the control message.
[0121] In operation S530, based on the message identifier, it is determined from the storage space whether a received control message matching the message identifier is stored. If it is determined that a received control message is stored in the storage space, operation S540 is executed. If it is determined that no received control message is stored in the storage space, operation S550 is executed.
[0122] In operation S540, determine the status flag of the received control message.
[0123] When operating S550, identify the second functional module.
[0124] When operating S560, send control messages to the second function module.
[0125] In operation S570, it is determined whether the status flag indicates that the feedback result has been successfully sent. If it is determined that the status flag indicates that the feedback result has been successfully sent, operation S580 is executed. If it is determined that the status flag indicates that the feedback result has not been successfully sent, operations S550 and S560 are executed.
[0126] During operation S580, the feedback result is resent to the first functional module.
[0127] According to embodiments of this disclosure, control messages with added message identifiers can be stored in storage space to prevent control message loss.
[0128] According to embodiments of this disclosure, the attribute information of the control message includes, but is not limited to, a message identifier.
[0129] According to embodiments of this disclosure, a message identifier can be used to characterize the storage state of a control message. For example, before the control message is sent to the second functional module, the message identifier can be "received". According to embodiments of this disclosure, the storage space can persistently store the control message and determine whether a received and saved control message matching the message identifier is stored in the storage space. If so, the status identifier of the control message in the storage space is determined. Simultaneously, if the status identifier indicates that a successful transmission feedback result has been received, the message center sends the successful transmission feedback result to the second functional module, avoiding invalid duplicate operations and improving system reliability.
[0130] According to embodiments of this disclosure, control messages can be configured with an idempotent mechanism. When the idempotent mechanism is configured, the message center adds a message identifier, i.e., an idempotent keyword, to the received control messages. If the same control message is received again after the control message has been successfully sent, the message center will perform a match in the message center's storage space based on the idempotent keyword to determine whether there is a control message with the same idempotent keyword. If it exists, the existing message result is sent as feedback to the first functional module. If it does not exist, the control message is sent to the second functional module to complete the subsequent steps.
[0131] For example, the task management module of business A sends a control message to the message center. The message center adds an unsent status flag and a message flag with an idempotent keyword to the control message, and determines whether there is a control message in the storage space that matches the idempotent keyword. If there is, it determines whether the status flag of the control message is sent successfully. If so, it sends the feedback result to the task management module.
[0132] For example, the task management module of Task B sends a control message to the message center. The message center adds an unsent status flag and a message flag with an idempotent keyword to the control message. It checks whether a control message with the same idempotent keyword exists in the storage space. If not, the control message with the unsent and idempotent keywords is stored in the storage space. Based on the attribute information of the control message, the message center determines that the path planning module is the second functional module and that the target feedback method is asynchronous feedback. The message center sends the control message to the path planning module. The message center sends a successful transmission result to the task management module. The path planning module sends a feedback message to the message center. The message center updates the status flag of the control message to successful transmission and stores it in the storage space.
[0133] For example, the task management module of task C sends a control message to the message center. The message center adds an unsent status flag and a message flag with an idempotent keyword to the control message. It then checks whether a control message with the same idempotent keyword exists in the storage space. If it does, it determines whether the status flag of the control message is "sent successfully". If not, the message center determines the path planning module as the second functional module based on the attribute information of the control message, determines the target feedback method as asynchronous feedback, and retryes sending the control message.
[0134] According to embodiments of this disclosure, by adding message identifiers and status identifiers to control messages, in the event of a functional module malfunction and repeated transmission of control messages, the message identifier in the message center can be used to determine whether the control message is the same message that has been received before, and the status of the control message can be determined based on the status identifier. This avoids repeatedly sending control messages to the second functional module, improving efficiency and saving time.
[0135] According to embodiments of this disclosure, the first functional module of the control system sends a control message to a message center. The message center adds a status identifier and a message identifier to the control message and stores the control message in a storage space. The message center determines the second functional module based on the attribute information of the control message. Simultaneously, based on the attribute information of the control message, it determines the target feedback method as synchronous feedback. The message center determines whether a received control message matching the message identifier is stored in the storage space. If a received control message exists, it determines the status identifier of the received control message as a message transmission success status identifier and sends the message transmission success as feedback to the first functional module. If no control message has been received, the timer starts counting down. The message center sends the control message to the second functional module. After receiving the control message, the second functional module sends a feedback message back to the message center. The timer ends, and the timer duration is recorded as the waiting time. The message center updates the status flag of the stored control message. The message center determines whether the waiting time exceeds a preset time threshold. If the waiting time exceeds the preset time threshold, it is determined to have timed out, and the message center sends a message sending failure as feedback to the first functional module. If the waiting time is less than or equal to the preset time threshold, it is determined not to have timed out, and the message center sends a feedback message as feedback to the first functional module.
[0136] According to embodiments of this disclosure, the first functional module of the control system sends a control message to a message center. The message center adds a status identifier and a message identifier to the control message and stores the control message in a storage space. The message center determines the second functional module based on the attribute information of the control message. The message center determines whether there is a received control message in the storage space that matches the message identifier based on the message identifier. If there is a received control message, the message center determines the status identifier of the received control message as the message sending success status identifier and sends the message sending success as a feedback result to the first functional module. If there is no received control message, the message center sends the control message to the second functional module. At the same time, the message center determines the target feedback method as an asynchronous feedback method based on the attribute information of the control message. The message center sends the message sending success as a feedback result to the first functional module. After receiving the control message, the second functional module sends a feedback message to the message center. The message center updates the status identifier of the stored control message.
[0137] According to embodiments of this disclosure, an adapter module may be included among the multiple functional modules.
[0138] According to embodiments of this disclosure, the message center can receive control requests sent by the adaptation module, wherein the control requests are used to request control of the device using the control system.
[0139] According to embodiments of this disclosure, the adapter module can be used to receive control requests from external systems, such as devices.
[0140] According to embodiments of this disclosure, the adapter module can send control requests to the message center.
[0141] For example, task A sends a control request to the adapter module through an external system, such as a device, and sends the control message to the message center.
[0142] According to embodiments of this disclosure, the first functional module may be an adapter module, but is not limited to an adapter module.
[0143] According to embodiments of this disclosure, multiple functional modules may include, but are not limited to, adapter modules.
[0144] According to embodiments of this disclosure, the adapter module can be used to receive control requests from upstream devices, and the adapter module can serve as a first functional module to associate control messages between upstream devices and other functional modules.
[0145] According to embodiments of this disclosure, the upstream device sends a control request to the adaptation module, i.e., the first functional module. The first functional module sends the control request from the upstream device to the message center. The message center adds a status identifier and a message identifier to the control request and stores the control message in the storage space. The message center determines the second functional module based on the attribute information of the control request. Simultaneously, based on the attribute information of the control request, it determines that the target feedback method is synchronous feedback. The message center determines whether there is a received control request in the storage space that matches the message identifier. If there is a received control request, it determines that the status identifier of the received control request is a status identifier of successful request transmission and sends the successful transmission of the request as feedback result to the first functional module. If no control request has been received, the timer starts counting down. The message center sends the control request to the second functional module. After receiving the control request, the second functional module sends a feedback message back to the message center. The timer ends, and the timer duration is recorded as the waiting time. The message center updates the status flag of the stored control request. The message center determines whether the waiting time exceeds a preset time threshold. If the waiting time exceeds the preset time threshold, it is determined to have timed out, and the message center sends a request sending failure as feedback to the first functional module. If the waiting time is less than or equal to the preset time threshold, it is determined not to have timed out, and the message center sends a feedback message as feedback to the first functional module, thus sending the control request from the upstream device to the second functional module.
[0146] According to embodiments of this disclosure, the upstream device sends a control request to the adaptation module, i.e., the first functional module. The first functional module sends the control request from the upstream device to the message center. The message center adds a status identifier and a message identifier to the control request and stores the control message in the storage space. The message center determines the second functional module based on the attribute information of the control request. The message center determines whether there is a received control request in the storage space that matches the message identifier. If there is a received control request, the status identifier of the received control request is determined to be the status identifier of the request being sent successfully, and the successful sending of the request is sent as feedback to the first functional module. If there is no received control request, the message center sends the control request to the second functional module. At the same time, the message center determines the target feedback method to be the asynchronous feedback method based on the attribute information of the control request, and the message center sends the successful sending of the request as feedback to the first functional module. After receiving the control request, the second functional module sends the feedback message to the message center, and the message center updates the status identifier of the stored control request.
[0147] According to embodiments of this disclosure, multiple modules may include an adapter module, and a message processing method including an adapter module is applied to a message center, comprising: in response to determining that a second functional module is an adapter module, determining a control message as a control command; and sending the control command to the adapter module so that the adapter module sends the control command to the device.
[0148] According to embodiments of this disclosure, the adapter module can be used to send control commands to external devices.
[0149] According to embodiments of this disclosure, the adapter module can convert control messages from the message center into control commands.
[0150] For example, the workflow module of task A sends control messages to the adaptation module, which then converts the control messages into control commands and sends them to the external device to control the external device to complete the operation.
[0151] According to embodiments of this disclosure, the adapter module can be used to send control messages to downstream devices, and the adapter module can also serve as a second functional module to associate the first functional module and the downstream device with control messages.
[0152] According to embodiments of this disclosure, the second functional module may be an adapter module, but is not limited to an adapter module.
[0153] According to embodiments of this disclosure, the first functional module of the control system sends control commands to a message center. The message center adds a status identifier and a message identifier to the control commands and stores the control commands in a storage space. The message center determines the second functional module, i.e., the adaptation module, based on the attribute information of the control commands. The adaptation module receives the control commands and sends them to downstream devices for automated control. Simultaneously, based on the attribute information of the control commands, the target feedback method is determined to be synchronous feedback. The message center determines whether a received control command matching the message identifier is stored in the storage space. If a received control command is found, the status identifier of the received control command is determined to be a successful command transmission status identifier, and the command is then... If the control command is successfully sent, it is sent as feedback to the first functional module. If no control command has been received, the timer starts counting down, the message center sends the control command to the adaptation module, the adaptation module receives the control command and sends a feedback message to the message center, the timer ends, and the timer duration is recorded as the waiting time. The message center updates the status flag of the stored control command and determines whether the waiting time exceeds a preset time threshold. If the waiting time exceeds the preset time threshold, it is determined to be a timeout, and the message center sends the command sending failure as feedback to the first functional module. If the waiting time is less than or equal to the preset time threshold, it is determined to be no timeout, and the message center sends a feedback message as feedback to the first functional module.
[0154] According to embodiments of this disclosure, the first functional module of the control system sends control commands to a message center. The message center adds a status identifier and a message identifier to the control commands and stores the control commands in a storage space. The message center determines the second functional module and the adaptation module based on the attribute information of the control commands. The message center determines whether there is a received command message matching the message identifier stored in the storage space. If there is a received control command, the status identifier of the received control command is determined to be the status identifier of message transmission success, and the command success is sent as feedback result to the first functional module. If there is no received control command, the message center sends the control command to the adaptation module. The adaptation module sends the control command to the downstream device for automated control of the downstream device. At the same time, the message center determines the target feedback method to be asynchronous feedback based on the attribute information of the control commands. The message center sends the command success as feedback result to the first functional module. After receiving the control command, the adaptation module sends the feedback message to the message center, and the message center updates the status identifier of the stored control commands.
[0155] According to embodiments of this disclosure, an adapter module is used to receive control requests from external devices, and a message center and control system are used to generate control instructions for the control requests, thereby controlling the devices to perform operations. This approach offers a high degree of automation, adaptability to different application scenarios, strong flexibility, and improved business processing capabilities.
[0156] Figure 6 A block diagram of a message processing apparatus according to an embodiment of the present disclosure is shown schematically.
[0157] like Figure 6 As shown, the message processing device 600 includes a determination function module 610, a sending control module 620, a determination feedback module 630, and a sending feedback module 640.
[0158] Function module 610 is used to determine a second functional module from multiple functional modules of the control system in response to receiving a control message sent by a first functional module of the control system, based on the attribute information of the control message.
[0159] The sending control module 620 is used to send control messages to the second functional module and receive feedback messages sent by the second functional module.
[0160] The feedback module 630 is used to determine the target feedback method based on the attribute information of the control message.
[0161] The feedback sending module 640 is used to send feedback results to the first functional module according to the target feedback method, wherein the feedback results are generated based on the feedback message.
[0162] According to embodiments of this disclosure, the feedback sending module 640 includes: a first determining unit, a second not timed out unit, and a third timed out unit.
[0163] The first determining unit is used to determine the waiting time when the target feedback mode is determined to be synchronous feedback mode. The waiting time is used to characterize the duration between the receiving time and the sending time, the sending time is used to characterize the time when the control message is sent to the second functional module, and the receiving time is used to characterize the time when the feedback information sent by the second functional module is received.
[0164] The second non-timeout unit is used to send the feedback message as a feedback result to the first functional module when it is determined that the waiting time is less than or equal to the preset time threshold.
[0165] The third timeout unit is used to send the result representing the message sending failure as a feedback result to the first functional module when it is determined that the waiting time exceeds the preset time threshold.
[0166] According to an embodiment of this disclosure, the feedback sending module 640 further includes a fourth determining unit.
[0167] The fourth determining unit is used to take the result representing the successful message sending as the feedback result and send the feedback result to the first functional module when the target feedback method is determined to be asynchronous feedback method.
[0168] According to an embodiment of this disclosure, the transmission control module 620 includes: a first addition storage unit, a second transmission unit, and a third update storage unit.
[0169] The first added storage unit is used to add status identifiers to control messages and store the control messages in the storage space.
[0170] The second sending unit is used to send control messages to the second functional module.
[0171] The third update storage unit is used to update the status flags of stored control messages.
[0172] According to embodiments of this disclosure, the first added storage unit includes: a first response subunit, a second determination subunit, a third determination subunit, a fourth determination subunit, and a fifth sending subunit.
[0173] The first response subunit is used to respond to receiving a control message from the first functional module.
[0174] The second determining subunit is used to determine the message identifier of the control message.
[0175] The third determining subunit is used to determine from the storage space whether a received control message matching the message identifier is stored, based on the message identifier.
[0176] The fourth determining subunit is used to determine the status identifier of the received control message when the received control message is stored in the determined storage space.
[0177] The fifth determining subunit is used to resend the feedback result to the first functional module when the determining status identifier is used to indicate that the feedback result has been successfully sent.
[0178] According to embodiments of this disclosure, the functional module 610 includes: a first business type determination unit, a second initial determination unit, and a third module determination unit.
[0179] The first business type determination unit is used to determine the message source of the control instruction and the business type corresponding to the control instruction from the attribute information of the control message, wherein the message source is used to characterize the first functional module.
[0180] The second initial determination unit is used to determine at least one initial second functional module from multiple functional modules based on message source and subscription mapping relationships, wherein the subscription mapping relationship is used to characterize the mapping relationship between the second functional module and the first functional module; and
[0181] The third determining module unit is used to determine a second functional module from at least one initial second functional module based on the business type.
[0182] According to embodiments of this disclosure, the feedback determination module 630 includes: a first message type determination unit and a second feedback determination unit.
[0183] The first message type determination unit is used to determine the message type of the control instruction from the attribute information of the control instruction.
[0184] The second feedback determination unit determines the target feedback method from multiple feedback methods based on the message type and the preset feedback mapping relationship. The preset feedback mapping relationship is used to characterize the mapping relationship between the message type and the feedback method.
[0185] According to embodiments of this disclosure, a plurality of functional modules include an adaptation module, including: a first request receiving unit.
[0186] The first receiving request unit is used to receive a control request sent by the adapter module, wherein the control request is used to request the control system to control the equipment.
[0187] According to embodiments of this disclosure, the plurality of functional modules include an adaptation module, and further include: a first adaptation unit and a first sending instruction unit.
[0188] The first adaptation unit is used to determine the control message as a control command in response to determining that the second functional module is an adaptation module.
[0189] The first instruction sending unit is used to send control instructions to the adapter module so that the adapter module can send the control instructions to the device.
[0190] Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure, or at least part of the functions of any one or more of them, can be implemented in one module. Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be implemented by dividing them into multiple modules. Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be at least partially implemented as hardware circuitry, such as Field Programmable Gate Arrays (FPGAs), Programmable Logic Arrays (PLAs), Systems-on-Chip, Systems-on-Substrate, Systems-on-Package, Application-Specific Integrated Circuits (ASICs), or implemented in hardware or firmware by any other reasonable means of integrating or packaging circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be at least partially implemented as computer program modules, which, when run, can perform corresponding functions.
[0191] For example, any plurality of the determination function module 610, transmission control module 620, determination feedback module 630, and transmission control module 640 can be combined into one module / unit / subunit, or any one of these modules / units / subunits can be split into multiple modules / units / subunits. Alternatively, at least part of the functionality of one or more of these modules / units / subunits can be combined with at least part of the functionality of other modules / units / subunits and implemented in one module / unit / subunit. According to embodiments of the present disclosure, at least one of the determination function module 610, transmission control module 620, determination feedback module 630, and transmission control module 640 can be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging the circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, at least one of the determination function module 610, transmission control module 620, determination feedback module 630, and transmission control module 640 may be at least partially implemented as a computer program module, which can perform the corresponding function when the computer program module is run.
[0192] It should be noted that the message processing device part in the embodiments of this disclosure corresponds to the message processing method part in the embodiments of this disclosure. For a detailed description of the message processing device part, please refer to the message processing method part, which will not be repeated here.
[0193] Figure 7 A block diagram of a computer system suitable for implementing the methods described above, according to embodiments of the present disclosure, is illustrated schematically. Figure 7 The computer system shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0194] like Figure 7 As shown, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage portion 708 into a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0195] RAM 703 stores various programs and data required for the operation of electronic device 700. Processor 701, ROM 702, and RAM 703 are interconnected via bus 704. Processor 701 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 702 and / or RAM 703. It should be noted that the programs may also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.
[0196] According to embodiments of this disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to a bus 704. The system 700 may also include one or more of the following components connected to the I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.
[0197] According to embodiments of this disclosure, the method flow according to embodiments of this disclosure can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by processor 701, it performs the functions defined in the system of embodiments of this disclosure. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0198] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.
[0199] According to embodiments of this disclosure, the computer-readable storage medium can be a non-volatile computer-readable storage medium. Examples include, but are not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0200] For example, according to embodiments of this disclosure, a computer-readable storage medium may include one or more memories other than the ROM 702 and / or RAM 703 described above and / or ROM 702 and RAM 703.
[0201] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods provided in the embodiments of this disclosure. When the computer program product is run on an electronic device, the program code is used to enable the electronic device to implement the training method of the text feature extraction model provided in the embodiments of this disclosure.
[0202] When the computer program is executed by the processor 701, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0203] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and may be downloaded and installed via the communication section 709, and / or installed from a removable medium 711. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.
[0204] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0205] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions. Those skilled in the art will understand that the features recited in the various embodiments and / or claims of this disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not expressly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure may be combined and / or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0206] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.
Claims
1. A message processing method, applied in a message center, the method comprising: In response to receiving a control message sent by a first functional module of the control system, a second functional module is determined from multiple functional modules of the control system based on the attribute information of the control message. Send the control message to the second functional module and receive the feedback message sent by the second functional module; Based on the attribute information of the control message, the target feedback method is determined; as well as According to the target feedback method, a feedback result is sent to the first functional module, wherein the feedback result is generated based on the feedback message.
2. The method according to claim 1, wherein, Sending feedback results to the first functional module according to the target feedback method includes: When the target feedback method is determined to be synchronous feedback, a waiting time is determined, wherein the waiting time is used to characterize the duration between the receiving time and the sending time, the sending time is used to characterize the time when the control message is sent to the second functional module, and the receiving time is used to characterize the time when the feedback information sent by the second functional module is received; If the waiting time is determined to be less than or equal to a preset time threshold, the feedback message is used as the feedback result, and the feedback result is sent to the first functional module; and If the waiting time is determined to be greater than the preset time threshold, the result used to characterize the message sending failure is taken as the feedback result and sent to the first functional module.
3. The method according to claim 1 or 2, wherein, Sending feedback results to the first functional module according to the target feedback method includes: If the target feedback method is determined to be asynchronous feedback, the result used to characterize the successful message sending is taken as the feedback result and sent to the first functional module.
4. The method according to claim 1, wherein, Sending the control message to the second functional module includes: Add a status identifier to the control message and store the control message in the storage space; Send the control message to the second functional module; and Update the status identifier of the stored control message.
5. The method according to claim 4, wherein, Before sending the control message to the second functional module, the method further includes: In response to receiving a control message from the first functional module; Determine the message identifier of the control message; Based on the message identifier, determine from the storage space whether there is a received control message that matches the message identifier; If it is determined that the received control message is stored in the storage space, the status identifier of the received control message is determined; and If the status identifier is determined to indicate that the feedback result has been successfully sent, the feedback result is resent to the first functional module.
6. The method according to claim 1, wherein, The determination of the second functional module from multiple functional modules of the control system based on the attribute information of the control message includes: The message source of the control instruction and the service type corresponding to the control instruction are determined from the attribute information of the control message, wherein the message source is used to characterize the first functional module; Based on the message source and subscription mapping relationship, at least one initial second functional module is determined from the plurality of functional modules, wherein the subscription mapping relationship is used to characterize the mapping relationship between the second functional module and the first functional module; and Based on the business type, the second functional module is determined from the at least one initial second functional module.
7. The method according to claim 1, wherein, Determining the target feedback method based on the attribute information of the control command includes: Determine the message type of the control command from its attribute information; and Based on the message type and the preset feedback mapping relationship, the target feedback method is determined from multiple feedback methods, wherein the preset feedback mapping relationship is used to characterize the mapping relationship between the message type and the feedback method.
8. The method according to claim 1, wherein, The plurality of functional modules includes an adaptation module; The method further includes: The system receives a control request sent by the adaptation module, wherein the control request is used to request control of the device using the control system.
9. The method according to claim 8, further comprising: In response to determining that the second functional module is the adaptation module, the control message is determined as a control command; as well as The control command is sent to the adapter module so that the adapter module sends the control command to the device.
10. A message processing apparatus, comprising: In response to receiving a control message sent by a first functional module of the control system, a second functional module is determined from multiple functional modules of the control system based on the attribute information of the control message. The sending control module sends the control message to the second functional module and receives the feedback message sent by the second functional module; The feedback module determines the target feedback method based on the attribute information of the control message; as well as The feedback sending module sends a feedback result to the first functional module according to the target feedback method, wherein the feedback result is generated based on the feedback message.
11. A computer system, comprising: One or more processors; Memory, used to store one or more programs. Wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of claims 1 to 9.
12. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 9.
13. A computer program product comprising: Computer-executable instructions, when executed, are used to implement the method of any one of claims 1 to 9.
Citation Information
Patent Citations
Information feedback method and device
CN106027760A
Message processing method and device
CN110597802A