Robot operation and maintenance monitoring method and device, server and storage medium
Through the robot operation and maintenance monitoring system based on the microservice architecture, the problems of inefficient and high data delay of traditional monitoring solutions are solved, real-time feedback and efficient management of robot status are achieved, and monitoring efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202510059912.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-05-23
AI Technical Summary
Traditional robot monitoring solutions are inefficient and cannot achieve real-time feedback on the robot status. The existing robot monitoring system has high data delays and cumbersome operational processes, making it difficult to meet the management requirements of high efficiency and high precision.
The robot operation and maintenance monitoring system based on the microservice architecture is adopted to establish a communication connection with the robot through the communication service module, obtain equipment data, and forward real-time status data to the business service module for preprocessing, cache or persistent storage, real-time and efficient robot operation and maintenance monitoring.
It improves data transmission speed and data reading speed, ensures real-time operation and maintenance monitoring, improves the efficiency of robot operation and maintenance monitoring, and can better meet the management requirements of high efficiency and high precision.
Smart Images

Figure CN120029126A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data monitoring technology, and in particular to a robot operation and maintenance monitoring method, device, server and storage medium. Background Art
[0002] With the rapid development of robot technology, robots are increasingly widely used in industrial production, logistics distribution, security monitoring, intelligent services and other fields. In order to improve the efficiency and reliability of robot systems, real-time monitoring of robots has become particularly important. However, traditional monitoring solutions mostly rely on manual regular inspections and simple data recording, which is inefficient and cannot provide real-time feedback on the status of robots. In addition, although the existing robot monitoring system can collect some equipment data, its operation process is cumbersome and the data delay is high. It cannot reflect the status of the robot in real time and is difficult to meet the high-efficiency and high-precision management requirements for robot monitoring. Summary of the invention
[0003] The present application provides a robot operation and maintenance monitoring method, device, server and storage medium, which solves the problem that the monitoring scheme of the related technology is difficult to provide real-time feedback on the robot status. The present scheme can utilize the microservice architecture to achieve flexible deployment and high availability of services, thereby improving the data transmission speed and data reading speed of corresponding multiple robots, and helping to ensure the real-time nature of operation and maintenance monitoring.
[0004] In a first aspect, the present application provides a robot operation and maintenance monitoring method, which is applied to a robot operation and maintenance monitoring system. The robot operation and maintenance monitoring system includes a communication service module, a message service module, a cache service module, a database module, and a business service module. The method includes:
[0005] In response to the robot's connection request, the communication service module establishes a communication connection with the robot based on the Netty communication protocol and authenticates the robot;
[0006] When the robot passes the authentication, a long connection is established with the robot based on the communication service module and the device data of the robot is obtained;
[0007] When receiving the real-time status data periodically reported by the robot, the real-time status data received by the communication service module is forwarded to the business service module through the message service module, so that the business service module can pre-process the real-time status data, and the data processed by the business service module is cached to the cache service module or persistently stored in the database module through the message service module;
[0008] In response to the operation and maintenance monitoring request of the user terminal, based on the operation and maintenance monitoring request, corresponding operation and maintenance data is obtained and sent to the user terminal through the communication service module, so that the user terminal can render the operation and maintenance data.
[0009] In a second aspect, the present application further provides a robot operation and maintenance monitoring device, which is applied to a robot operation and maintenance monitoring system. The robot operation and maintenance monitoring system includes a communication service module, a message service module, a cache service module, a database module and a business service module. The device includes:
[0010] The device authentication module is configured to respond to the connection request of the robot, establish a communication connection with the robot through the communication service module based on the Netty communication protocol, and authenticate the robot;
[0011] The device connection module is configured to establish a long connection with the robot based on the communication service module and obtain the device data of the robot when the robot passes the authentication;
[0012] The data processing module is configured to forward the real-time status data received by the communication service module to the business service module through the message service module when receiving the real-time status data periodically reported by the robot, so that the business service module can pre-process the real-time status data, and cache the data processed by the business service module to the cache service module or store it persistently in the database module through the message service module;
[0013] The request response module is configured to respond to the operation and maintenance monitoring request of the user terminal, obtain the corresponding operation and maintenance data based on the operation and maintenance monitoring request, and send it to the user terminal through the communication service module, so that the user terminal can render the operation and maintenance data.
[0014] In a third aspect, the present application further provides a server, the server comprising:
[0015] one or more processors;
[0016] a storage device for storing one or more programs,
[0017] When one or more programs are executed by one or more processors, the one or more processors implement the robot operation and maintenance monitoring method of the present application.
[0018] In a fourth aspect, the present application also provides a storage medium storing computer executable instructions, which, when executed by a processor, are used to execute the robot operation and maintenance monitoring method of the present application.
[0019] The present application scheme realizes flexible deployment and high availability of services by applying a robot operation and maintenance monitoring system built on a microservice architecture. It transmits data with robots and user terminals through a corresponding communication framework, which can ensure low latency and high throughput in the data transmission process. In addition, by utilizing a cache service module and a database module, the present scheme can improve the data reading speed, further improving the real-time performance of robot operation and maintenance monitoring, thereby improving the efficiency of robot operation and maintenance monitoring and helping to better meet the high-efficiency and high-precision management requirements for robot monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A schematic diagram of the steps of a robot operation and maintenance monitoring method provided in one embodiment of the present application;
[0021] Figure 2 A schematic diagram of the steps for obtaining device data of a robot provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of the structure of a robot operation and maintenance monitoring system provided in one embodiment of the present application;
[0023] Figure 4 A schematic diagram of a robot operation and maintenance management interface provided in an embodiment of the present application;
[0024] Figure 5 A schematic diagram of the structure of a robot operation and maintenance monitoring device provided in one embodiment of the present application;
[0025] Figure 6 A schematic diagram of the structure of a server provided in one embodiment of the present application. DETAILED DESCRIPTION
[0026] The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are only used to explain the embodiments of the present application, rather than to limit the embodiments of the present application. It should also be noted that, for ease of description, only the parts related to the embodiments of the present application rather than all structures are shown in the accompanying drawings, and those skilled in the art should be able to think of it after reading the specification of this application that as long as the technical features do not contradict each other, any combination of the technical features can constitute an optional implementation method.
[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable when appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated before and after are in an "or" relationship. In the description of the present application, "multiple" means two or more, and "several" means one or more.
[0028] With the rapid development of robotics technology, robots are increasingly used in many fields such as industrial production, logistics distribution, security monitoring, and intelligent services. In order to improve the efficiency and reliability of robotic systems, real-time monitoring of robots has become particularly important, and effective management and maintenance of robots are crucial to ensure their normal operation.
[0029] However, traditional monitoring solutions mostly rely on manual periodic inspections and simple data recording, which is inefficient and cannot provide real-time feedback on the robot's status, making it difficult to meet the high-efficiency and high-precision management requirements of modern industry. In addition, although the existing robot monitoring system can collect some equipment data, it has problems such as high data latency and inability to reflect the robot's status in real time, and cumbersome operation procedures that cannot intuitively present the robot's work site status. In other words, traditional solutions are difficult to meet the high-efficiency and high-precision management requirements for robot monitoring.
[0030] In this regard, the present application provides a robot operation and maintenance monitoring method, which is applied to a robot operation and maintenance monitoring system. It is conceivable that the robot operation and maintenance monitoring system can be deployed on a server to perform operation and maintenance management on the robot. The robot operation and maintenance monitoring system includes a communication service module, a message service module, a cache service module, a database module and a business service module, wherein the communication service module is used to communicate with the device, such as communicating with the robot, communicating with the user terminal, etc.; and the message service module is used to forward data for communication between modules in the robot operation and maintenance monitoring system, such as forwarding data received through the communication service module to the business service module, etc. In addition, the cache service module is used to cache data, and the database module is used to store data persistently. The business service module is used to provide corresponding business services to realize data processing in the process of robot operation and maintenance monitoring, such as robot management service (i.e., managing the information of the robot), robot configuration service (i.e., managing the configuration information of the robot), etc.
[0031] It should be noted that in the robot operation and maintenance monitoring system, the above functional modules are divided according to functional logic, but are not limited to the above divisions. They can achieve the corresponding functions. Moreover, the specific names of the above modules are also for the convenience of distinction and are not used to limit the specific functions of each module. Optionally, in one embodiment, when the robot operation and maintenance monitoring system is applied to a server, the server can implement the functions and effects achieved by the above modules by deploying corresponding application services.
[0032] It is understandable that the robot operation and maintenance monitoring system forms a microservice architecture, realizes system modularity and scalability, helps to improve the stability of the system, and through data interaction between modules, it can achieve efficient and real-time operation and maintenance monitoring of the robot.
[0033] Based on this, when the robot operation and maintenance monitoring system is deployed on the server, the robot is connected to the server for communication. It can be imagined that the server establishes a communication connection with the robot through the communication service module of the system. The robot operation and maintenance monitoring method provided in this application can realize the operation and maintenance monitoring of the robot based on the robot operation and maintenance monitoring system. Figure 1 A schematic diagram of the steps of a robot operation and maintenance monitoring method provided in an embodiment of the present application. Taking a server as an example, the server needs to establish connections with several robots in order to receive corresponding data, thereby realizing operation and maintenance monitoring of several robots. The specific steps include steps S110-S140:
[0034] Step S110: In response to the robot's connection request, a communication connection is established with the robot through the communication service module based on the Netty communication protocol, and the robot is authenticated.
[0035] Before the robot reports relevant data, the robot needs to establish a connection with the server. Accordingly, the robot sends a connection request to the server for the server to authenticate it. It is understandable that in the server where the robot operation and maintenance monitoring system is deployed, it establishes a communication connection with the robot based on the Netty communication protocol through the communication service module. Among them, Netty provides support for TCP (Transmission Control Protocol), UDP (User Datagram Protocol) and file transfer under the high-performance, asynchronous time-driven NIO (Non-blocking I / O) framework. In this regard, it is conceivable that a device or module for communication connection with the server is also provided on the robot, such as a Netty Internet of Things module.
[0036] Moreover, after the server establishes a communication connection with the robot, the server further authenticates the robot in order to receive the corresponding data. It is understandable that the communication service module in the robot operation and maintenance monitoring system is used to communicate with the robot based on the Netty communication protocol to receive the corresponding data, and to communicate with the user terminal through the gateway to receive the operation and maintenance monitoring request sent by the user terminal and / or send response data to the user terminal. In one embodiment, the connection request includes a device identification, and the server can obtain the device identification from it by parsing the connection request, and then verify the legitimacy of the device identification, such as verifying it based on the basic information of the device. It is conceivable that the device identification of the robot that can be authenticated is recorded in the basic information of the device to facilitate the verification of the robot.
[0037] To obtain the basic information of the device, the server needs to traverse the cache service module and the database module to search for the basic information of the device. Optionally, in one embodiment, the server may first search for the basic information of the device from the storage area corresponding to the cache service module. If the basic information of the device is not found, the server may search for the basic information of the device from the storage area corresponding to the database module.
[0038] Then, when the basic information of the device is obtained, the device identification is authenticated based on the basic information of the device through the business service module. For example, in the robot operation and maintenance monitoring system, after the basic information of the device is obtained, it can be forwarded to the business processing module through the message service module so that the business processing module can perform authentication. When the device identification exists in the basic information of the device, the server can determine that the robot has passed the authentication; when the device identification does not exist in the basic information of the device, the robot cannot pass the authentication at present, and the server disconnects the communication connection with the robot. In this regard, by authenticating the robot, the server can transmit data with the authenticated robot, thereby ensuring data security and helping to maintain the safe operation of the system.
[0039] Step S120: When the robot passes the authentication, a long connection is established with the robot based on the communication service module and the device data of the robot is obtained.
[0040] After the robot passes the authentication, the server establishes a long connection with the robot based on the communication service module. It is conceivable that after the long connection is established, the two connected parties can continuously send data based on the connection channel. For example, the server uses Netty through the communication service module to establish a stable communication channel to facilitate data transmission between the two. Based on this, the robot can upload its own device data through the communication channel, such as the corresponding current map number, device configuration information, associated project information, real-time status data and other device data.
[0041] Step S130: When receiving the real-time status data periodically reported by the robot, the real-time status data received by the communication service module is forwarded to the business service module through the message service module, so that the business service module can pre-process the real-time status data, and cache the data processed by the business service module to the cache service module or store it persistently in the database module through the message service module.
[0042] The robot needs to periodically report its own real-time status data through the above-mentioned communication channel. In this regard, the server receives the real-time status data through the communication service module. After receiving the real-time status data, the message service module in the system can forward the real-time status data to the business service module accordingly, so that the business service module can pre-process the real-time status data. It can be understood that the received real-time status data needs to be stored accordingly, such as allocating the data to the cache service module and / or the data block module accordingly, so as to cache and / or persist the data.
[0043] Step S140: In response to the operation and maintenance monitoring request of the user terminal, based on the operation and maintenance monitoring request, corresponding operation and maintenance data is obtained and sent to the user terminal through the communication service module, so that the user terminal can render the operation and maintenance data.
[0044] Furthermore, the user can send an operation and maintenance monitoring request to the server through a user terminal (such as a mobile phone, computer, and other devices). It is conceivable that the connection between the user terminal and the server can establish a communication connection through a gateway. For the server, it can use the gateway to establish a connection with the user terminal through the communication service module in the robot operation and maintenance monitoring system, and then receive the operation and maintenance monitoring request sent by the user terminal and / or send response data to the user terminal. It should be noted that the method for establishing a communication connection between the user terminal and the server can be the establishment method in the relevant technology, which will not be described in detail.
[0045] For operation and maintenance monitoring requests, the user terminal sends the corresponding operation and maintenance monitoring request to the server, such as operation and maintenance monitoring of some or all robots. Accordingly, the user can carry the robot information to be monitored in the operation and maintenance monitoring request through the user terminal, so that the server can feedback the corresponding operation and maintenance data as the response data of the operation and maintenance monitoring request, and then send it to the user terminal through the communication service module, so that the user terminal can render the operation and maintenance data and present it to the user.
[0046] It can be seen from the above scheme that this scheme realizes flexible deployment and high availability of services by applying a robot operation and maintenance monitoring system built on a microservice architecture. Data is transmitted with robots and user terminals through the corresponding communication framework, which can ensure low latency and high throughput in the data transmission process. In addition, by utilizing the cache service module and database module, this scheme can improve the data reading speed, further improve the real-time performance of robot operation and maintenance monitoring, and improve the efficiency of robot operation and maintenance monitoring, which helps to better meet the high-efficiency and high-precision management requirements for robot monitoring.
[0047] Figure 2 A schematic diagram of the steps for obtaining device data of a robot provided in an embodiment of the present application. In one embodiment, the device data reported by the robot includes the current map number. It can be understood that for the area where the robot is located, there is corresponding map data corresponding to the area, the current map number is associated with the map data, and the basic map information stored in the cache service module and / or the database module includes the above map data. In this regard, by obtaining the current map number of the robot, so that the server can configure the robot, the corresponding steps are as follows:
[0048] Step S210: Obtain the current map number of the robot, and forward the current map number to the business service module through the message service module.
[0049] Step S220: Based on the current map number, the business service module traverses the cache service module and the database module to search for basic map information.
[0050] Step S230: If the basic map information is not found, the upload address is obtained from the database module, and the map upload request is forwarded to the communication service module through the message service module, so that the communication service module can send the map upload request to the robot. The map upload request is a request generated by the business service module and carries the upload address, and the map upload request is used to enable the robot that receives the request to upload the map file information.
[0051] Step S240: In response to the map file information uploaded by the robot, the map file information is stored in the database module as basic map information corresponding to the current map number.
[0052] It is understandable that the business service module is also used to search for the current map number to obtain the corresponding basic map information. To this end, after obtaining the current map number of the robot, the current map number is forwarded to the business service module through the message service module, so that the business service module can traverse the cache service module and the database module to search for the basic map information. Optionally, in one embodiment, the server can first search for the basic map information from the storage area corresponding to the cache service module, and if the basic map information is not found, search for the basic map information from the storage area corresponding to the database module.
[0053] In the case where the basic map information is not found, the server obtains the upload address accordingly, and the upload address corresponds to the storage address in the database module and the network address of the server. In this regard, the server forwards the upload address to the communication service module through the message service module, so that the communication service module sends the upload address to the robot, so that the robot can upload the map file information according to the upload address. For example, the server sends a map upload request to the robot so that the robot can feedback the map file information, that is, the map upload request is a request generated by the business service module and carries the upload address, and the map upload request is used to enable the robot that receives the request to upload the map file information. In this regard, the robot that receives the map upload request can upload the map file information according to the upload address of the request after obtaining the map file information. Accordingly, after receiving the map file information uploaded by the robot, the server can store the map file information through the database module, that is, persistently store the map file information in the corresponding storage location as the basic map information corresponding to the current map number.
[0054] Optionally, in one embodiment, the database module includes a MinIO file database, which is used to store static resource files. In this regard, after receiving the map file information, the server uses the map file information as a static resource file and uses the MinIO file database to store the map file information, which is then used as the basic map information corresponding to the current map number.
[0055] In this regard, the server can accurately receive the data sent by the corresponding robot and save the data so that when the subsequent user initiates an operation and maintenance monitoring request for the robot, it can quickly provide the corresponding data, which helps to improve the real-time operation and maintenance monitoring of the robot and improve the efficiency of the operation and maintenance monitoring of the robot.
[0056] In some embodiments, the cache service module includes a Caffeine cache submodule and a Redis cache submodule, and the database module includes a MySQL database and a MongoDB database. Specifically, the Caffeine cache submodule is used to store the first target data that has been recently accessed and has an access frequency higher than a preset value, and the Redis cache submodule is used to store hot data and / or part of the data processed by the business service module; the MySQL database is used to store structured data, and the MongoDB database is used to store unstructured data and / or semi-structured data.
[0057] The server processes the received real-time status data through the business service module, and then stores the processed data using the cache service module and / or the database module. Accordingly, the server caches the processed data to the Caffeine cache submodule or the Redis cache submodule, or persistently stores it in the MySQL database or the MongoDB database according to the business processing service used to process the real-time status data. For example, for the business processing service that processes the hot spot data, the server uses the Redis cache submodule to store it. It can be imagined that in the data storage and management system, the hot spot data is the data that is frequently accessed within a time period. This type of data usually has a high access rate, which may be due to the user's high-frequency query, the key variables in the system operation, or the information that is accessed by the current business operation. For another example, for the business processing service that processes the cold spot data, the data can be stored in the database module, such as when the cold spot data is structured data, it is stored through the MySQL database, such as when the cold spot data is unstructured data, it is stored through the MongoDB database.
[0058] Therefore, by using different cache sub-modules, the server can improve the speed of reading data, help ensure the real-time monitoring of robot operation and maintenance, and enable users to monitor the status of the robot in real time.
[0059] In one embodiment, for the operation and maintenance monitoring request sent by the user terminal, the server determines the target robot corresponding to the operation and maintenance monitoring request based on the received operation and maintenance monitoring request, and obtains the real-time status data and device data corresponding to the target robot from the cache service module and / or the database module through the business service module in the system. In addition, data assembly is further performed, that is, the real-time status data and device data are assembled into response data as data after responding to the operation and maintenance monitoring request.
[0060] Then, the server forwards the response data to the communication service module through the message service module in the system, so that the response data can be sent to the user terminal through the communication module, so that the user terminal can parse the data and render it on the page, thereby displaying relevant data to the user. It can be imagined that there may be multiple target robots corresponding to the operation and maintenance monitoring request, and the response data fed back by the server also includes the data of the corresponding robots.
[0061] In order to avoid a service in the system being unavailable or responding too slowly, which makes it difficult for the server operation process to achieve a fast response. In this regard, the robot operation and maintenance monitoring system also includes a Hystrix circuit breaker module, which can be used to monitor the system operation status to find out whether there are business services that are unavailable or responding too slowly. It can be imagined that the business service is at least one of the communication service provided by the communication service module, the forwarding service provided by the message service module, the cache service provided by the cache service module, the storage service provided by the database module, and the data processing service provided by the business service module.
[0062] Based on this, the server can monitor the system operation status through the Hystrix circuit breaker module in the system. When the system operation status is service unavailable or response timed out, the server cuts off the call to the current business service and switches to the backup business service based on the fallback logic to provide default response data. Therefore, by monitoring the system operation status, the server can immediately cut off the call to the business service when an abnormal business service occurs, prevent the spread of faults, and help maintain the operation of the system.
[0063] Figure 3 A schematic diagram of the structure of a robot operation and maintenance monitoring system provided for an embodiment of the present application, wherein the robot operation and maintenance monitoring system is applied to a server, the server is communicatively connected with a robot (such as robot A and robot B in the figure), and the server is also communicatively connected with a user terminal. In the robot operation and maintenance monitoring system, it includes a communication service module, a message service module, a cache service module, a database module, and a business service module. Specifically, the server establishes a communication connection with the robot and the user terminal through the communication service module in the robot operation and maintenance monitoring system, such as communicating with the robot based on the Netty communication protocol, and communicating with the user terminal through a gateway. The cache service module includes a Caffeine cache submodule and a Redis cache submodule to cache corresponding data, and the database module includes a MySQL database, a MongoDB database, and a MinIO file database to persistently store corresponding data.
[0064] Figure 4A schematic diagram of a robot operation and maintenance management interface provided for an embodiment of the present application, wherein the interface is presented on a user terminal, and each window on the interface corresponds to a robot. The relevant content presented thereon is content related to the robot provided by the server to the user terminal, such as the robot's real-time status data, device data, etc. Optionally, in an embodiment, if the robot is equipped with a camera, the image captured by the camera on the robot can also be displayed on the interface accordingly.
[0065] Figure 5 The schematic diagram of the structure of the robot operation and maintenance monitoring device provided in one embodiment of the present application, the device can be applied to the above-mentioned robot operation and maintenance monitoring system, the robot operation and maintenance monitoring system includes a communication service module, a message service module, a cache service module, a database module and a business service module, and the device is also used to execute the robot operation and maintenance monitoring method provided in the above embodiment, and has the corresponding functional modules and beneficial effects of the execution method. As shown in the figure, the device includes a device authentication module 501, a device connection module 502, a data processing module 503 and a request response module 504.
[0066] The device authentication module 501 is configured to respond to the connection request of the robot, establish a communication connection with the robot through the communication service module based on the Netty communication protocol, and authenticate the robot;
[0067] The device connection module 502 is configured to establish a long connection with the robot based on the communication service module and obtain the device data of the robot when the robot passes the authentication;
[0068] The data processing module 503 is configured to forward the real-time status data received by the communication service module to the business service module through the message service module when receiving the real-time status data periodically reported by the robot, so that the business service module can pre-process the real-time status data, and cache the data processed by the business service module to the cache service module or store it persistently in the database module through the message service module;
[0069] The request response module 504 is configured to respond to the operation and maintenance monitoring request of the user terminal, obtain corresponding operation and maintenance data based on the operation and maintenance monitoring request, and send it to the user terminal through the communication service module, so that the user terminal can render the operation and maintenance data.
[0070] On the basis of the above embodiment, the communication service module is used to communicate with the robot based on the Netty communication protocol to receive corresponding data, and to communicate with the user terminal through the gateway to receive the operation and maintenance monitoring request sent by the user terminal and / or send response data to the user terminal; the connection request includes the device identification, and the device authentication module 501 is specifically configured as follows:
[0071] Parse the connection request to obtain the device identification;
[0072] Traverse the cache service module and database module to find basic device information;
[0073] When the basic information of the device is obtained, the device identification is authenticated based on the basic information of the device through the business service module;
[0074] If the device ID exists in the device basic information, the robot is confirmed to have passed the authentication.
[0075] Based on the above embodiment, the device data includes the current map number, and the device connection module 502 is specifically configured as follows:
[0076] Get the current map number of the robot and forward it to the business service module through the message service module;
[0077] Based on the current map number, the business service module traverses the cache service module and the database module to find the basic map information;
[0078] If the basic map information is not found, the upload address is obtained from the database module, and the map upload request is forwarded to the communication service module through the message service module, so that the communication service module can send the map upload request to the robot. The map upload request is a request generated by the business service module and carries the upload address, and the map upload request is used to enable the robot that receives the request to upload the map file information;
[0079] In response to the map file information uploaded by the robot, the map file information is stored through the database module as the basic map information corresponding to the current map number.
[0080] On the basis of the above embodiment, the database module includes a MinIO file database, which is used to store static resource files. The device connection module 502 is further configured as follows:
[0081] After receiving the map file information, the map file information is used as a static resource file and stored in the MinIO file database as the basic map information corresponding to the current map number.
[0082] Based on the above embodiment, the cache service module includes a Caffeine cache submodule and a Redis cache submodule, the database module includes a MySQL database and a MongoDB database, and the data processing module 503 is specifically configured as follows:
[0083] In response to the processing of the real-time status data by the business service module, the processed data is cached in the Caffeine cache submodule or the Redis cache submodule, or persistently stored in the MySQL database or the MongoDB database according to the business processing service adopted for processing the real-time status data;
[0084] Among them, the Caffeine cache submodule is used to store the first target data that has been recently accessed and has an access frequency higher than a preset value, the Redis cache submodule is used to store hot data and / or part of the data processed by the business service module; the MySQL database is used to store structured data, and the MongoDB database is used to store unstructured data and / or semi-structured data.
[0085] Based on the above embodiment, the request response module 504 is specifically configured as follows:
[0086] Determine the target robot corresponding to the operation and maintenance monitoring request;
[0087] Obtaining real-time status data and device data corresponding to the target robot from the cache service module and / or the database module through the business service module, and assembling the real-time status data and device data to form response data;
[0088] The response data is forwarded to the communication service module through the message service module, and sent to the user terminal through the communication service module.
[0089] On the basis of the above embodiment, the robot operation and maintenance monitoring system further includes a Hystrix circuit breaker module, and the device includes an exception handling module, and the exception handling module is configured as follows:
[0090] Monitor the system operation status through the Hystrix circuit breaker module;
[0091] When the system operation status is service unavailable or response timed out, the call to the current business service is cut off, and based on the fallback logic, it switches to the backup business service to provide default response data. The business service is at least one of the communication service provided by the communication service module, the forwarding service provided by the message service module, the cache service provided by the cache service module, the storage service provided by the database module, and the data processing service provided by the business service module.
[0092] It is worth noting that in the embodiment of the above-mentioned device, the modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.
[0093] Figure 6The structural diagram of the server provided in one embodiment of the present application, the server includes the robot operation and maintenance monitoring system provided in the above embodiment, and the device is used to execute the robot operation and maintenance monitoring method provided in the above embodiment, and has the functional modules and beneficial effects corresponding to the execution method. As shown in the figure, the server also includes a processor 601, a memory 602, an input device 603 and an output device 604. The number of processors 601 can be one or more, and one processor 601 is taken as an example in the figure; the processor 601, the memory 602, the input device 603 and the output device 604 can be connected by a bus or other means, and the figure takes the connection through a bus as an example. The memory 602, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the robot operation and maintenance monitoring method in the embodiment of the present application. The processor 601 executes the corresponding various functional applications and data processing by running the software programs, instructions and modules stored in the memory 602, that is, the above-mentioned robot operation and maintenance monitoring method is realized.
[0094] The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data recorded or created during use, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 602 may further include a memory remotely arranged relative to the processor 601, and these remotely arranged memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0095] The input device 603 can be used to input corresponding digital or character information to the processor 601, and to generate key signal input related to the user settings and function control of the device; the output device 604 can be used to send or display key signal output related to the user settings and function control of the device.
[0096] An embodiment of the present application also provides a storage medium storing computer executable instructions, which, when executed by a processor, are used to perform relevant operations in the robot operation and maintenance monitoring method provided in any embodiment of the present application.
[0097] Computer-readable storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0098] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0099] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A robot operation and maintenance monitoring method, characterized in that: Applied to a robot operation and maintenance monitoring system, the robot operation and maintenance monitoring system includes a communication service module, a message service module, a cache service module, a database module and a business service module, and the method includes: In response to the connection request of the robot, establishing a communication connection with the robot through the communication service module based on the Netty communication protocol, and authenticating the robot; When the robot passes the authentication, a long connection is established with the robot based on the communication service module and the device data of the robot is obtained; When receiving the real-time status data periodically reported by the robot, the real-time status data received by the communication service module is forwarded to the business service module through the message service module, so that the business service module pre-processes the real-time status data, and the data processed by the business service module is cached to the cache service module or persistently stored in the database module through the message service module; In response to the operation and maintenance monitoring request of the user terminal, based on the operation and maintenance monitoring request, corresponding operation and maintenance data is obtained and sent to the user terminal through the communication service module, so that the user terminal can render the operation and maintenance data.
2. The robot operation and maintenance monitoring method according to claim 1, characterized in that: The communication service module is used to communicate with the robot based on the Netty communication protocol to receive corresponding data, and to communicate with the user terminal through the gateway to receive the operation and maintenance monitoring request sent by the user terminal and / or send response data to the user terminal; The connection request includes a device identifier, and the response to the connection request of the robot is to establish a communication connection with the robot based on the Netty communication protocol through the communication service module, and authenticate the robot, including: Parsing the connection request to obtain the device identification; Traverse the cache service module and database module to find basic device information; When the basic information of the device is obtained, the device identification is authenticated based on the basic information of the device by the business service module; If the device identifier exists in the device basic information, it is determined that the robot has passed the authentication.
3. The robot operation and maintenance monitoring method according to claim 1 or 2, characterized in that: The device data includes a current map number, and when the robot passes the authentication, establishing a long connection with the robot based on the communication service module and acquiring the device data of the robot includes: Obtaining the current map number of the robot, and forwarding the current map number to the business service module through the message service module; Based on the current map number, the business service module traverses the cache service module and the database module to search for basic map information; If the basic map information is not found, the upload address is obtained from the database module, and the map upload request is forwarded to the communication service module through the message service module, so that the communication service module sends the map upload request to the robot, the map upload request is a request generated by the business service module and carries the upload address, and the map upload request is used to enable the robot that receives the request to upload map file information; In response to the map file information uploaded by the robot, the map file information is stored by the database module as basic map information corresponding to the current map number.
4. The robot operation and maintenance monitoring method according to claim 3, characterized in that: The database module includes a MinIO file database, which is used to store static resource files; The step of storing the map file information in response to the map file information uploaded by the robot through the database module as the basic map information corresponding to the current map number includes: After receiving the map file information, the map file information is used as a static resource file, and the map file information is stored in the MinIO file database as the basic map information corresponding to the current map number.
5. The robot operation and maintenance monitoring method according to claim 1, characterized in that: The cache service module includes a Caffeine cache submodule and a Redis cache submodule, and the database module includes a MySQL database and a MongoDB database; When receiving the real-time status data periodically reported by the robot, forwarding the real-time status data received by the communication service module to the business service module through the message service module, so that the business service module pre-processes the real-time status data, and buffering the data processed by the business service module to the cache service module or storing it in the database module through the message service module, including: In response to the processing of the real-time status data by the business service module, the processed data is cached to the Caffeine cache submodule or the Redis cache submodule, or persistently stored in the MySQL database or the MongoDB database according to the business processing service adopted for processing the real-time status data; Among them, the Caffeine cache submodule is used to store the first target data that has been recently accessed and has an access frequency higher than a preset value, the Redis cache submodule is used to store hot data and / or part of the data processed by the business service module; the MySQL database is used to store structured data, and the MongoDB database is used to store unstructured data and / or semi-structured data.
6. The robot operation and maintenance monitoring method according to claim 1, characterized in that: The step of responding to the operation and maintenance monitoring request of the user terminal, acquiring corresponding operation and maintenance data based on the operation and maintenance monitoring request and sending the data to the user terminal through the communication service module, so that the user terminal can render the operation and maintenance data, includes: Determine the target robot corresponding to the operation and maintenance monitoring request; Acquire the real-time status data and device data corresponding to the target robot from the cache service module and / or the database module through the business service module, and assemble the real-time status data and the device data to form response data; The response data is forwarded to the communication service module through the message service module, and sent to the user terminal through the communication service module.
7. The robot operation and maintenance monitoring method according to claim 1, characterized in that: The robot operation and maintenance monitoring system further includes a Hystrix circuit breaker module, and the method further includes: The system operation status is monitored through the Hystrix circuit breaker module; When the system operation state is a service unavailable state or a response timeout state, the call to the current business service is cut off, and based on the fallback logic, it switches to the backup business service to provide default response data. The business service is at least one of the communication service provided by the communication service module, the forwarding service provided by the message service module, the cache service provided by the cache service module, the storage service provided by the database module, and the data processing service provided by the business service module.
8. A robot operation and maintenance monitoring device, characterized in that: Applied to a robot operation and maintenance monitoring system, the robot operation and maintenance monitoring system includes a communication service module, a message service module, a cache service module, a database module and a business service module, and the robot operation and maintenance monitoring device includes: a device authentication module, configured to respond to a connection request of the robot, establish a communication connection with the robot through the communication service module based on the Netty communication protocol, and authenticate the robot; a device connection module, configured to establish a long connection with the robot based on the communication service module and obtain device data of the robot when the robot passes the authentication; A data processing module, configured to, upon receiving the real-time status data periodically reported by the robot, forward the real-time status data received by the communication service module to the business service module through the message service module, so that the business service module can pre-process the real-time status data, and cache the data processed by the business service module to the cache service module or store them persistently in the database module through the message service module; The request response module is configured to respond to the operation and maintenance monitoring request of the user terminal, obtain corresponding operation and maintenance data based on the operation and maintenance monitoring request, and send it to the user terminal through the communication service module, so that the user terminal can render the operation and maintenance data.
9. A server, characterized in that: The server includes the robot operation and maintenance monitoring system according to any one of claims 1 to 7, and the server also includes: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the robot operation and maintenance monitoring method as described in any one of claims 1-7.
10. A storage medium storing computer executable instructions, characterized in that: When executed by a processor, the computer executable instructions are used to execute the robot operation and maintenance monitoring method as described in any one of claims 1 to 7.