Robot node system update method, device, equipment and storage medium

By receiving update requests and data packets in the blockchain, estimating the expected update time and selecting idle nodes for system updates, the problem of being unable to provide external services during robot product updates is solved, achieving non-stop upgrades and improving system availability.

CN113885927BActive Publication Date: 2024-10-22CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111265072.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-28
Publication Date
2024-10-22
Estimated Expiration
2041-10-28

AI Technical Summary

Technical Problem

During the update process, there was only one product version of the robot product, which resulted in the inability to provide external services, affecting the system's usability and user experience.

Method used

By receiving update requests and data packets in the blockchain, we estimate the expected update duration, set the number of node updates in real time, and select idle nodes for system updates to ensure that external services can still be provided during the update process.

Benefits of technology

It achieves non-stop upgrades, improves system availability and user experience, and ensures that robot nodes can still provide external services during the update process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113885927B_ABST
    Figure CN113885927B_ABST
Patent Text Reader

Abstract

The present invention provides a robot node system update method, device, equipment and storage medium, wherein the method includes: receiving an update request and an update data packet for a robot node through a first robot node, estimating the expected duration of the update of a second robot node in the blockchain, setting the update quantity of the second robot node in the blockchain in real time, and selecting the second robot nodes of the update quantity from the blockchain for system update. The beneficial effects of the present invention are: the update of each second robot node is realized, and during the update process, there are still unupdated second robots providing external services, realizing non-stop upgrades, improving system availability and enhancing customer experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain, and in particular to a robot node system updating method, device, equipment and storage medium. Background Art

[0002] Each robot product needs to be configured with corpus and model services. Changes in corpus and models will trigger updates to robot products. In current application scenarios, robot products often need to change corpus to quickly adapt to user needs. At present, all products in the robot cluster management solution are single-version. The problem with a single version is that if a product is optimized and upgraded, since there is only one product version, during the update process of the robot product, the product cannot continue to provide services to the outside world and needs to stop providing services. The availability of the entire system will be very poor, affecting the user experience. Summary of the invention

[0003] The main purpose of the present invention is to provide a robot node system update method, device, equipment and storage medium, aiming to solve the problem that there is only one product version of the robot node product and the product can no longer provide services to the outside during the update process.

[0004] The present invention provides a robot node system update method, comprising:

[0005] The first robot node receives an update request for the robot node and an update data packet; the first robot node is a node in a pre-built blockchain;

[0006] estimating an expected duration of updating a second robot node in the blockchain based on the update request and the update data packet;

[0007] Based on the estimated duration and the operation function pre-stored in the blockchain, the update quantity of the second robot node in the blockchain is set in real time; wherein the operation function is a function of the change between the operation quantity of the second robot node and the time point;

[0008] Select the updated number of second robot nodes from the blockchain and record them as target second robot nodes;

[0009] The update data packet is sent to the target second robot node for system update.

[0010] Furthermore, the step of selecting the updated number of second robot nodes from the blockchain and recording them as target second robot nodes includes:

[0011] Obtaining the real-time status of each of the second robot nodes in the blockchain;

[0012] Selecting the second robot node whose real-time status is an idle status and recording it as an intermediate second robot node;

[0013] The updated number of intermediate second robot nodes are selected and recorded as target second robot nodes.

[0014] Furthermore, after the step of sending the update data packet to the target second robot node for system update, the method further includes:

[0015] Detecting an update status of the target second robot node, and recording the target second robot node after the update as a third robot node;

[0016] An update tag is assigned to each of the third robot nodes so that when the robot nodes in the blockchain are called to work, the robot nodes with the update tag are called first to work.

[0017] Furthermore, the step of setting the updated number of the second robot nodes in the blockchain in real time based on the estimated duration and the running function pre-stored in the blockchain includes:

[0018] Obtaining from the blockchain an operation function f(t) between the number of running second robot nodes and a time point, and the number N of the second robot nodes in the blockchain; wherein f(t) represents the number of running second robot nodes that changes with the time point t;

[0019] According to the formula:

[0020]

[0021] Calculate the number of additional updates of the second robot node at time t0; where α is a preset parameter, represents the number of updates being made in the blockchain at time t0, g(t0) represents the number of additional updates, and N is the number of the second robot nodes in the blockchain;

[0022] According to the formula The update quantity is obtained.

[0023] Furthermore, the step of estimating the expected duration of updating the second robot node in the blockchain according to the update request and the update data packet includes:

[0024] Extracting multiple dimensional features from the update request and the update data packet;

[0025] Vectorize the extracted dimensional features according to a preset vectorization conversion method to obtain a corresponding feature matrix;

[0026] The feature matrix is ​​input into a pre-trained duration estimation model to obtain the estimated duration; wherein the duration estimation model is pre-trained by using matrices corresponding to different update requests and update data packets as input, and corresponding update durations as output.

[0027] Furthermore, before the step of sending the update data packet to the target second robot node for system update, the step further includes:

[0028] Randomly select a target second robot node from each of the target second robot nodes to update, to obtain an updated fourth robot node;

[0029] Detecting the fourth robot node according to a preset detection method;

[0030] Determine whether the test results meet the preset requirements;

[0031] If the preset requirements are met, it is determined that the condition for executing the sending of the update data packet to the target second robot node for system update is met.

[0032] The present invention also provides a robot node system update device, comprising:

[0033] A receiving module, configured for a first robot node to receive an update request for a robot node and an update data packet; the first robot node is a node in a pre-built blockchain;

[0034] an estimation module, configured to estimate an expected duration of updating a second robot node in the blockchain according to the update request and the update data packet;

[0035] A setting module, configured to set the update quantity of the second robot node in the blockchain in real time based on the estimated duration and the operation function pre-stored in the blockchain; wherein the operation function is a function of the change between the operation quantity of the second robot node and the time point;

[0036] A selection module, used for selecting the updated number of second robot nodes from the blockchain and recording them as target second robot nodes;

[0037] An updating module is used to send the updating data packet to the target second robot node for system updating.

[0038] Furthermore, the selection module includes:

[0039] An acquisition submodule, used to acquire the real-time status of each of the second robot nodes in the blockchain;

[0040] A first selection submodule is used to select the second robot node whose real-time status is an idle status and record it as an intermediate second robot node;

[0041] The second selection submodule is used to select the updated number of intermediate second robot nodes and record them as target second robot nodes.

[0042] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0043] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.

[0044] The beneficial effects of the present invention are as follows: the update request and update data packet for the robot node are received by the first robot node, and the expected duration of the update of the second robot node in the blockchain is estimated, the update quantity of the second robot node in the blockchain is set in real time, and the second robot nodes of the update quantity are selected from the blockchain for system update. Thus, the update of each second robot node is realized, and during the update process, there are still unupdated second robots providing external services, realizing non-stop upgrades, improving system availability and enhancing customer experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a flowchart of a robot node system update method according to an embodiment of the present invention;

[0046] Figure 2 It is a schematic block diagram of the structure of a robot node system updating device according to one embodiment of the present invention;

[0047] Figure 3 A schematic block diagram of the structure of a computer device according to an embodiment of the present application.

[0048] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly. The connection can be a direct connection or an indirect connection.

[0051] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone.

[0052] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0053] Reference Figure 1 The present invention proposes a robot node system update method, comprising:

[0054] S1: A first robot node receives an update request for a robot node and an update data packet; the first robot node is a node in a pre-built blockchain;

[0055] S2: estimating the expected duration of updating the second robot node in the blockchain according to the update request and the update data packet;

[0056] S3: Based on the estimated duration and the operation function pre-stored in the blockchain, the update quantity of the second robot node in the blockchain is set in real time; wherein the operation function is a function of the change between the operation quantity of the second robot node and the time point;

[0057] S4: Select the updated number of second robot nodes from the blockchain and record them as target second robot nodes;

[0058] S5: Send the update data packet to the target second robot node for system update.

[0059] As described in step S1 above, the first robot node receives an update request for the robot node and an update data packet; the first robot node is a node in a pre-built blockchain. Among them, the first robot node can be any node in the blockchain, which is generally a virtual node, used to receive external uploaded update data packets and update requests, and the receiving method is to connect to an external device, and then receive the update data packet and update request by data transmission. The data transmission can be wired transmission or wireless transmission. This application does not limit the transmission method, and any transmission method for data transmission can be implemented. The blockchain includes multiple first robot nodes and multiple second robot nodes. The first robot node is composed of three resources: ES index, SM index, and question-and-answer engine, which is used to answer questions for customers.

[0060] As described in the above step S2, the estimated duration of the update of the second robot node in the blockchain is estimated based on the update request and the update data packet. The update duration can be estimated based on the update request and the update content in the update data packet, as well as the size of the data packet. The estimation method can be estimated through a corresponding duration estimation model, that is, extracting the features in the update request and the update data packet and inputting them into the duration estimation model to obtain the estimated time. The duration estimation model will be described in detail later and will not be repeated here.

[0061] As described in the above step S3, based on the estimated duration and the operation function pre-stored in the blockchain, the update quantity of the second robot node in the blockchain is set in real time; wherein the operation function is a function of the change between the operation quantity of the second robot node and the time point; wherein, the method of setting the update quantity in real time will be described in detail later and will not be repeated here. It should be noted that the number of updated second robot nodes should not be too large, and a part of the second robot nodes should be reserved to deal with customers outside the estimate to avoid the situation where there is no second robot node to serve customers at a certain point in time.

[0062] As described in step S4 above, the updated number of second robot nodes is selected from the blockchain and recorded as the target second robot node. After the updated number is determined, the updated number of second robot nodes is selected from the blockchain and recorded as the target second robot node, wherein the selection method is to give priority to idle second robot nodes, that is, robots that are not serving customers and have no other tasks.

[0063] As described in step S5 above, the update data packet is sent to the target second robot node for system update. That is, the update data packet is sent to the target second robot node through the first robot node for update. After the second robot receives the update data packet, it no longer answers questions for users and only works after the update is completed. In this way, the update of each second robot node is realized, and during the update process, there are still unupdated second robots providing external services, realizing non-stop upgrades, improving system availability and enhancing customer experience.

[0064] In one embodiment, the step S4 of selecting the updated number of second robot nodes from the blockchain and recording them as target second robot nodes includes:

[0065] S401: Obtain the real-time status of each of the second robot nodes in the blockchain;

[0066] S402: Select the second robot node whose real-time status is an idle state, and record it as an intermediate second robot node;

[0067] S403: Select the updated number of intermediate second robot nodes and record them as target second robot nodes.

[0068] As described in the above steps S401-S403, the selection of the second robot node is realized. That is, by obtaining the real-time status of each second robot node, generally speaking, the second robot node will only have a working state of communicating with the customer and an idle state of not communicating with the customer. The acquisition method can be to detect whether each second robot node has established a connection with the customer. If a connection is established, it indicates that it is in a working state. If no connection is established, it indicates that it is in an idle state. In this way, the real-time status of each second robot node can be obtained, and then an updated number of intermediate second robot nodes are selected from the intermediate second robot nodes in the idle state for updating. The selection method can be random selection or selection according to the hash value of each intermediate second robot node. In this way, the selection and update of some second robot nodes are realized, and the remaining second robot nodes continue to work, ensuring the normal operation of the system while being able to be updated in real time.

[0069] In one embodiment, after the step S5 of sending the update data packet to the target second robot node for system update, the method further includes:

[0070] S601: Detecting the update status of the target second robot node, and recording the target second robot node after the update as a third robot node;

[0071] S602: Assign an update tag to each of the third robot nodes so that when calling the robot nodes in the blockchain to work, the robot nodes with the update tag are called first to work.

[0072] As described in the above steps S601-S602, it is realized that the updated robot is arranged to serve the customer first. That is, the updated third robot has the latest version of resources and can provide better services to the customer. Therefore, after the update status is detected to be completed, it should be used to serve the customer. Specifically, the update tag of each third robot node is used to serve. After a new user accesses, it is detected whether there is an idle third robot node with an update tag. If there is, it will be used to serve the customer first. Thus, the user experience is better.

[0073] In one embodiment, the step S3 of setting the updated number of the second robot nodes in the blockchain in real time based on the estimated duration and the running function between the running number of the second robot nodes and the time point pre-stored in the blockchain includes:

[0074] S301: Obtaining from the blockchain an operation function f(t) between the number of running second robot nodes and a time point, and the number N of the second robot nodes in the blockchain; wherein f(t) represents the number of running second robot nodes that changes with the time point t;

[0075] S302: According to the formula:

[0076]

[0077] Calculate the number of additional updates of the second robot node at time t0; where α is a preset parameter, represents the number of updates being made in the blockchain at time t0, g(t0) represents the number of additional updates, and N is the number of the second robot nodes in the blockchain;

[0078] S303: According to the formula The update quantity is obtained.

[0079] As described in the above steps S301-S303, the setting of the update quantity at each moment is realized. That is, by obtaining the running function f(t) between the running quantity of the second robot node and the time point, the running function is obtained by statistics in advance through different counting nodes, for example, to count the changes within a week, or within a day, which can be set by yourself. Specifically, the changes within a period of time can be counted by a counter, and the corresponding rules can be found out based on the changes, so as to obtain the running function f(t) between the running quantity of the second robot node and the time point. The number N of the second robot nodes in the blockchain is determined in advance and can be directly obtained from the blockchain. Then, the increase and update quantity of the second robot node at time t0 is calculated according to the formula. In the formula, α represents a percentage less than 1 and greater than 0, which is the second robot node reserved in the blockchain, so as to avoid the situation where too many users access at a certain time point and cannot provide services to users. It should be understood that the larger α is, the longer it takes to update all the second robot nodes in the blockchain, and the smaller α is, the situation where some users cannot be provided with services. Therefore, α can be reasonably set according to the actual situation. According to the formula The update quantity is obtained. Thus, the update quantity at each time point is determined, and the update is achieved without stopping the server while ensuring the service to the customer. This means that the number of the second robot nodes currently being updated is greater than the current theoretical number that needs to be updated, so there is no need to increase the number of updates. This is the case

[0080] In one embodiment, the step S2 of estimating the expected duration of updating the second robot node in the blockchain according to the update request and the update data packet includes:

[0081] S201: extracting multiple dimensional features from the update request and the update data packet;

[0082] S202: vectorizing the extracted dimensional features according to a preset method to obtain a corresponding feature matrix;

[0083] S203: Input the feature matrix into a pre-trained duration estimation model to obtain the estimated duration; wherein the duration estimation model is pre-trained using matrices corresponding to different update requests and update data packets as input, and corresponding update durations as output.

[0084] As described in the above steps S201-S203, the acquisition of the estimated duration is achieved. Extract multiple dimensional features from the update request and the update data packet. The extraction method is to update the data packet through semantic analysis to obtain the corresponding dimensional features, which include the size of the data packet, the location of the update, etc., and vectorize them. The vectorization method can be to replace the corresponding dimensional features with corresponding values. For example, the size of the data packet is 1.2GB, and its corresponding value is 12. Then, the various values ​​are arranged in a preset order to obtain the corresponding feature matrix. The feature matrix is ​​input into a pre-trained duration estimation model to obtain the estimated duration. The duration estimation model is a neural network model, which takes the corresponding matrices corresponding to different update requests and update data packets as input, and the corresponding update duration as output, thereby obtaining the corresponding duration estimation model.

[0085] In one embodiment, before the step S5 of sending the update data packet to the target second robot node for system update, the method further includes:

[0086] S411: randomly selecting a target second robot node from among the target second robot nodes to update, to obtain an updated fourth robot node;

[0087] S412: Detecting the fourth robot node according to a preset detection method;

[0088] S413: Determine whether the test result meets the preset requirements;

[0089] S414: If the preset requirements are met, it is determined that the conditions for executing the sending of the update data packet to the target second robot node for system update are met.

[0090] As described in the above steps S411-S414, the detection of the update data packet is realized. That is, before the update, a target second robot node is first selected for update to obtain an updated fourth robot node, and the fourth robot node is detected according to a preset detection method, wherein the preset detection method can be a manual detection or a preset automatic detection method, and whether the corresponding preset requirements are met is determined according to the detection results. If the preset requirements are not met, it means that there are still problems with the data packet, and further detection is required by relevant personnel. If the preset requirements are met, it is determined that the conditions for executing the update data packet to be sent to the target second robot node for system update are met.

[0091] The beneficial effects of the present invention are as follows: the update request and update data packet for the robot node are received by the first robot node, and the expected duration of the update of the second robot node in the blockchain is estimated, the update quantity of the second robot node in the blockchain is set in real time, and the second robot nodes of the update quantity are selected from the blockchain for system update. Thus, the update of each second robot node is realized, and during the update process, there are still unupdated second robots providing external services, realizing non-stop upgrades, improving system availability and enhancing customer experience.

[0092] Reference Figure 2 The present invention also provides a robot node system update device, comprising:

[0093] A receiving module 10 is used for a first robot node to receive an update request for a robot node and an update data packet; the first robot node is a node in a pre-built blockchain;

[0094] An estimation module 20, configured to estimate an expected duration of updating the second robot node in the blockchain according to the update request and the update data packet;

[0095] A setting module 30, configured to set the update quantity of the second robot node in the blockchain in real time based on the estimated duration and the operation function pre-stored in the blockchain; wherein the operation function is a function of the change between the operation quantity of the second robot node and the time point;

[0096] A selection module 40 is used to select the updated number of second robot nodes from the blockchain and record them as target second robot nodes;

[0097] The updating module 50 is used to send the updating data packet to the target second robot node for system updating.

[0098] In one embodiment, the selection module 40 includes:

[0099] An acquisition submodule, used to acquire the real-time status of each of the second robot nodes in the blockchain;

[0100] A first selection submodule is used to select the second robot node whose real-time status is an idle status and record it as an intermediate second robot node;

[0101] The second selection submodule is used to select the updated number of intermediate second robot nodes and record them as target second robot nodes.

[0102] Reference Figure 3In the embodiment of the present application, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store various update data packets, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the robot node system update method described in any of the above embodiments can be implemented.

[0103] Those skilled in the art will understand that Figure 3 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.

[0104] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the robot node system update method described in any of the above embodiments can be implemented.

[0105] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0106] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method 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, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.

[0107] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0108] The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. Artificial intelligence software technologies mainly include computer vision technology, robot node technology, biometric technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0109] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0110] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operation monitoring. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintaining public and private key generation (account management), key management, and the maintenance of the correspondence between the user's real identity and the blockchain address (authority management), etc., and, under authorization, supervises and audits the transactions of certain real identities and provides risk control rule configuration (risk control audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and records valid requests to storage after consensus is reached. For a new business request, the basic service first adapts the interface for parsing and authentication (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management). The smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define the contract logic in a programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, the key or other events are called to trigger the execution and complete the contract logic. It also provides the function of contract upgrade and cancellation. The operation monitoring module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation and real-time status visualization output of the product during the product release process, such as alarm, network monitoring, node equipment health monitoring, etc.

[0111] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.

Claims

1. A robot node system update method, It is characterized in that include: The first robot node receives an update request for the robot node and an update data packet; the first robot node is a node in a pre-built blockchain, wherein the first robot node is composed of three resources, namely, an ES index, an SM index, and a question-and-answer engine, and is used to answer questions for customers; estimating an expected duration of updating a second robot node in the blockchain based on the update request and the update data packet; Based on the estimated duration and the operation function pre-stored in the blockchain, the update quantity of the second robot node in the blockchain is set in real time; wherein the operation function is a function of the change between the operation quantity of the second robot node and the time point; Select the updated number of second robot nodes from the blockchain and record them as target second robot nodes; Sending the update data packet to the target second robot node for system update; The step of setting the updated number of the second robot nodes in the blockchain in real time based on the estimated duration and the running function pre-stored in the blockchain includes: Obtaining from the blockchain an operation function f(t) between the number of running second robot nodes and a time point, and the number N of the second robot nodes in the blockchain; wherein f(t) represents the number of running second robot nodes that changes with the time point t; According to the formula: Calculated at t 0 The number of updates of the second robot node at the moment; where α is a preset parameter, Indicates that at t 0 The number of updates being made in the blockchain at this moment, g(t 0 ) represents the added update quantity, and N is the number of the second robot nodes in the blockchain; According to the formula obtaining the update quantity; The step of estimating the expected duration of updating the second robot node in the blockchain according to the update request and the update data packet comprises: Extracting multiple dimensional features from the update request and the update data packet; Vectorize the extracted dimensional features according to a preset vectorization conversion method to obtain a corresponding feature matrix; The feature matrix is ​​input into a pre-trained duration estimation model to obtain the estimated duration; wherein the duration estimation model is pre-trained by using matrices corresponding to different update requests and update data packets as input, and corresponding update durations as output.

2. The robot node system updating method according to claim 1, It is characterized in that The step of selecting the updated number of second robot nodes from the blockchain and recording them as target second robot nodes includes: Obtaining the real-time status of each of the second robot nodes in the blockchain; Selecting the second robot node whose real-time status is an idle status and recording it as an intermediate second robot node; The updated number of intermediate second robot nodes are selected and recorded as target second robot nodes.

3. The robot node system updating method according to claim 1, It is characterized in that After the step of sending the update data packet to the target second robot node for system update, the method further includes: Detecting an update status of the target second robot node, and recording the target second robot node after the update as a third robot node; An update tag is assigned to each of the third robot nodes so that when the robot nodes in the blockchain are called to work, the robot nodes with the update tag are called first to work.

4. The robot node system updating method according to claim 1, It is characterized in that Before the step of sending the update data packet to the target second robot node for system update, the method further includes: Randomly select a target second robot node from each of the target second robot nodes to update, to obtain an updated fourth robot node; Detecting the fourth robot node according to a preset detection method; Determine whether the test results meet the preset requirements; If the preset requirements are met, it is determined that the condition for executing the sending of the update data packet to the target second robot node for system update is met.

5. A robot node system updating device, used to implement the method according to any one of claims 1 to 4, It is characterized in that include: A receiving module, configured for a first robot node to receive an update request for a robot node and an update data packet; the first robot node is a node in a pre-built blockchain; an estimation module, configured to estimate an expected duration of updating a second robot node in the blockchain according to the update request and the update data packet; A setting module, configured to set the update quantity of the second robot node in the blockchain in real time based on the estimated duration and the operation function pre-stored in the blockchain; wherein the operation function is a function of the change between the operation quantity of the second robot node and the time point; A selection module, used for selecting the updated number of second robot nodes from the blockchain and recording them as target second robot nodes; An updating module is used to send the updating data packet to the target second robot node for system updating.

6. The robot node system updating device according to claim 5, It is characterized in that The selection module comprises: An acquisition submodule, used to acquire the real-time status of each of the second robot nodes in the blockchain; A first selection submodule is used to select the second robot node whose real-time status is an idle status and record it as an intermediate second robot node; The second selection submodule is used to select the updated number of intermediate second robot nodes and record them as target second robot nodes.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.