A method for encrypting and upgrading a robot servo component application
By splitting the upgrade file code of the robot servo component application and using hexadecimal addition and subtraction operations for encrypted transmission, and decrypting it based on the servo component model, the risk of robot device information leakage and malicious modification is solved, and security is achieved. Reliable upgrade operation.
Patent Information
- Application Number
- CN202410360171.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-03-27
AI Technical Summary
It is difficult to effectively encrypt and upgrade robot servo component applications with existing technology, leading to an increased risk of robot device information leakage and malicious modification.
The upgrade file code is split into multiple sub-codes, encrypted and transmitted through hexadecimal addition and subtraction operations, and decrypted based on the servo component model to ensure the safe transmission and application of the upgrade data.
It effectively avoids the overall upgrade data leakage, improves the safe transmission effect of upgrade data, and eliminates the impact by waiting multiple times to help users identify error reporting points and ensure the accuracy and security of the upgrade operation.
Smart Images

Figure CN118194297B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of encryption upgrade, and in particular relates to an encryption upgrade method for a robot servo component application. Background Art
[0002] The robot servo system is a sophisticated automated control system that controls the robot's movement by controlling the robot's servo components, including its posture, position, speed, acceleration and other motion states. Usually, the servo components are controlled through the external interface by setting up an application.
[0003] With the iteration and update of the robot, the application of the servo component will also be upgraded accordingly. The confidentiality of the upgrade data is very important. It can not only prevent the theft of robot-related equipment information, but also prevent outsiders from maliciously modifying the application to control the robot servo system. Therefore, how to encrypt and upgrade the robot servo component application is of utmost importance. Summary of the invention
[0004] In view of the problems raised by the background technology, the present invention provides an encryption upgrade method for a robot servo component application.
[0005] To achieve this object, the present invention adopts the following technical solutions:
[0006] A method for encrypting and upgrading an application program of a robot servo component, step A: a host computer splits the code in an upgrade file into multiple sub-codes, each of which contains upgrade data required for this upgrade;
[0007] Step B: The host computer performs hexadecimal addition and subtraction operations on the upgrade data in the sub-code to encrypt it, obtains encrypted upgrade data, packages each encrypted sub-code into data of corresponding size and sends it to the slave station;
[0008] Step C: The slave station receives the encrypted upgrade data, selects the data block corresponding to the servo component to be upgraded from the encrypted upgrade data, performs reverse hexadecimal addition and subtraction operations on the data block according to the model of the servo component to decrypt it, and obtains the decrypted upgrade data;
[0009] Step D: The slave station performs an upgrade operation based on the decrypted upgrade data.
[0010] Preferably, in step D, performing the upgrade operation includes:
[0011] Step D1: The slave initializes the I2C bus and the CAN bus, and obtains the NOD-ID and CAN rate of the servo component;
[0012] Step D2: The slave station determines whether to receive the upgrade frame data. If received, it performs the upgrade operation based on the decrypted upgrade data, and jumps to execute the application after the writing is completed;
[0013] If no upgrade frame data is received, the process enters a waiting state of the first duration and jumps to step D3;
[0014] Step D3: The slave determines whether the waiting state meets the first duration. If so, it jumps to execute the application to start the manual upgrade operation; if not, it enters the waiting state of the second duration and jumps to step D4;
[0015] Step D4: The slave determines whether the waiting state meets the second duration. If so, it sends a heartbeat message to the host computer, enters the waiting state of the third duration, and jumps to step D5;
[0016] If not, directly enter the waiting state of the third time length and jump to step D5;
[0017] Step D5: the slave station determines whether the waiting state meets the third time length, and if so, the slave station starts the LED state flipping of the servo component;
[0018] If not, you need to check whether the communication between the slave station and the host computer is normal.
[0019] Preferably, the step B comprises:
[0020] Step B1: The host computer confirms the model of the servo component corresponding to the upgrade data in each sub-code;
[0021] Step B2: converting the upgrade data in the data block into upgrade data in hexadecimal format, and converting the model of the servo component corresponding to the data block into model data in hexadecimal format;
[0022] Step B3: performing addition and subtraction operations on the upgrade data in hexadecimal format, and the addition and subtraction values corresponding to the addition and subtraction operations are the model data in hexadecimal format;
[0023] Step B4: The host computer packages each sub-code into a data block of corresponding size, and the size of the data block is determined by the model of the servo component.
[0024] Preferably, in step C, after receiving the encrypted upgrade data, the slave station performs a screening operation:
[0025] Step C1: The slave station stores the encrypted upgrade data into the total array;
[0026] Step C2: The slave station receives the model of the servo component to be upgraded sent from the host computer;
[0027] Step C3: The slave station screens the encrypted upgrade data in the total array according to the model, screens out the encrypted upgrade data of servo components of different models, and stores them in the corresponding model array.
[0028] Preferably, in the step C, after performing the screening operation, the decryption operation is also performed:
[0029] Step C4: Find the corresponding model array according to the model of the servo component sent by the host computer;
[0030] Step C5: Based on the model of the servo component, perform reverse hexadecimal addition and subtraction operations on the encrypted upgrade data in the model array to obtain decrypted upgrade data.
[0031] Preferably, in the step C, after the decryption operation is performed, a verification operation is also included:
[0032] Step C6: The slave station determines whether the decrypted upgrade data conforms to the preset specification of CANOPEN. If so, the decrypted upgrade data is encapsulated;
[0033] Step C7: The slave station temporarily stores the packaged upgrade data into the upgrade array, and obtains the required size of the packaged upgrade data.
[0034] Preferably, in step D2, when the slave station receives the upgrade frame data, the following operations are also included:
[0035] Step D21: The slave station receives the upgrade frame data sent from the host computer, and the upgrade frame data is used to inform the slave station that the upgrade operation can be started;
[0036] Step D22: The slave station obtains the upgrade data size required for the corresponding servo component upgrade from the upgrade frame data, and judges the required size of the encapsulated upgrade data with the required size obtained from the upgrade frame data. If they are consistent, the upgrade operation is performed based on the decrypted upgrade data.
[0037] Preferably, in the step D22, it also includes:
[0038] The decrypted upgrade data in the corresponding packaged upgrade array is found according to the NOD-ID of the servo component, and the size of the packaged upgrade data found is compared with the required size obtained from the upgrade frame data.
[0039] Compared with the prior art, one of the above technical solutions has the following beneficial effects:
[0040] 1. The present invention splits the upgrade text code into multiple sub-codes containing upgrade data, which can effectively avoid the leakage of the overall upgrade data;
[0041] 2. The present invention uses hexadecimal combined with servo component model to encrypt and decrypt the upgrade data, which greatly improves the security transmission effect of the upgrade data;
[0042] 3. The present invention waits for multiple periods of time after an upgrade operation has a problem, so as to continuously eliminate factors that affect the upgrade and determine the problem that ultimately causes the upgrade error, making it easier for users to understand where the upgrade error point is. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a flowchart of the encryption upgrade of the robot servo component of the present invention;
[0044] Figure 2 is a flow chart of encrypting upgrade data of the present invention;
[0045] Figure 3 is a flow chart of the decryption operation of the present invention;
[0046] Figure 4 It is a flow chart of the upgrade operation of the present invention. DETAILED DESCRIPTION
[0047] The technical solution of the present invention is further described below with reference to the accompanying drawings and through specific implementation methods.
[0048] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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.
[0049] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
[0050] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0051] This application proposes an encryption upgrade method for a robot servo component application program, such as Figure 1 As shown, the specific steps include the following: Step A: The host computer splits the code in the upgrade file into multiple sub-codes, each of which contains the upgrade data required for this upgrade;
[0052] In the present application, the upgrade operation refers to upgrading the specific data in the application used to control the servo component of the robot. Therefore, when upgrading, it is only necessary to write the upgrade data into the original preset code of the application. Based on this application scenario, the present application splits the code in the upgrade file through the upper computer, and the basis for the splitting is to split the code based on the upgrade data that needs to be modified for the upgrade, that is, after the splitting is completed, each sub-code contains the upgrade data required for this upgrade. During subsequent upgrades, it is only necessary to burn the specified code into the ROM field. By using the technical means of splitting the code of the upgrade file into multiple sub-codes, even if the upgrade data is intercepted, the complete upgrade data cannot be obtained.
[0053] Step B: The host computer performs hexadecimal addition and subtraction operations on the upgrade data in the sub-code to encrypt it, obtains encrypted upgrade data, packages each encrypted sub-code into data of corresponding size and sends it to the slave station;
[0054] Preferably, Figure 2 As shown, the step B comprises:
[0055] Step B1: The host computer confirms the model of the servo component corresponding to the upgrade data in each sub-code;
[0056] Step B2: converting the upgrade data in the sub-code into upgrade data in hexadecimal format, and converting the model of the servo component corresponding to the data block into model data in hexadecimal format;
[0057] Step B3: performing addition and subtraction operations on the upgrade data in hexadecimal format, and the addition and subtraction values corresponding to the addition and subtraction operations are the model data in hexadecimal format;
[0058] Step B4: The host computer packages each sub-code into a data block of corresponding size, and the size of the data block is determined by the model of the servo component.
[0059] In this embodiment, each sub-code is packaged into an independent data block to facilitate subsequent encryption. When encrypting, it is necessary to first determine which servo component the upgrade data in each sub-code corresponds to, and determine the model corresponding to the upgrade data, because the upgrade file contains more than just data upgrades for a single servo component. In order to avoid data confusion, it is necessary to first determine the model of the servo component corresponding to the upgrade data in each sub-code;
[0060] Furthermore, the subcodes are packaged into data blocks, and the size of the data blocks is determined by the model, because the subsequent base conversion of the upgrade data is converted according to the model data, so the size of the data block is the size of the model; when encrypting, it is necessary to first convert the upgrade data into hexadecimal upgrade data, and then convert the model into hexadecimal model data, because the model is represented by letters, and each bit of the hexadecimal conversion can be 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, a total of 16 numbers of different sizes, that is, every 16 is increased by 1, and the six letters A, B, C, D, E, F (the letters are capitalized) are used to represent 10, 11, 12, 13, 14, 15 respectively, so the use of hexadecimal can complete The model representation of the servo component of Midea fits; then the upgrade data in hexadecimal format is added or subtracted from the model data in hexadecimal format; in one embodiment, for example, in the upgrade operation of model A motor, the upgrade data of one stack space in the falsh stack memory of the chip is 1, and the upgrade data of the other stack space is 3, then the upgrade data of 1 is added by 10, and the upgrade data of the other stack space is 3, and the subtraction operation is performed, subtracting 10; in another embodiment, for example, in the upgrade operation of model A motor, the upgrade data of one stack space in the falsh stack memory of the chip is 1, and the upgrade data of the other stack space is 3, then the upgrade data of 1 is added by 10, and the upgrade data of the other stack space is 3. Finally, after the hexadecimal addition and subtraction operations, the encrypted upgrade data can be obtained.
[0061] Step C: The slave station receives the encrypted upgrade data, selects the data block corresponding to the servo component to be upgraded from the encrypted upgrade data, performs reverse hexadecimal addition and subtraction operations on the data block according to the model of the servo component to decrypt it, and obtains the decrypted upgrade data;
[0062] In this embodiment, when the upgrade data is encrypted, the host computer will send it to the slave station, which will process it in the next step. After receiving the upgrade data, the slave station will filter out the encrypted upgrade data for the corresponding servo component to be upgraded from the encrypted upgrade data according to the model, and then perform reverse hexadecimal addition and subtraction operations according to the model to ensure the security of the upgrade data.
[0063] Preferably, Figure 3 As shown, in step C, after receiving the encrypted upgrade data, the slave station performs a screening operation:
[0064] Step C1: The slave station stores the encrypted upgrade data into the total array;
[0065] Step C2: The slave station receives the model of the servo component to be upgraded sent from the host computer;
[0066] Step C3: The slave station screens the encrypted upgrade data in the total array according to the model, screens out the encrypted upgrade data of servo components of different models, and stores them in the corresponding model array.
[0067] Furthermore, after receiving the encrypted upgrade data, the slave station performs the following screening operation: first, all the encrypted upgrade data are stored in the total array, then the model sent by the host computer is received, and the encrypted data in the total array is classified and screened according to the model, and then the screened encrypted upgrade data is stored in the corresponding model array. The model array is constructed according to the model after receiving the model of the servo component to be upgraded sent by the host computer; further, the encrypted upgrade data sent by the host computer is essentially an encrypted data block, and the data block will be associated with the corresponding model, so the corresponding encrypted upgrade data can be screened out according to the model.
[0068] Preferably, in the step C, after performing the screening operation, the decryption operation is also performed:
[0069] Step C4: Find the corresponding model array according to the model of the servo component sent by the host computer;
[0070] Step C5: Based on the model of the servo component, perform reverse hexadecimal addition and subtraction operations on the encrypted upgrade data in the model array to obtain decrypted upgrade data.
[0071] The addition and subtraction operations in reverse hexadecimal can be understood as:
[0072] In the embodiment mentioned above, when the upgrade data of motor A is encrypted, the upgrade data of one stack space in the falsh stack memory of the chip is 1, and the upgrade data of the other stack space is 3. Then, an addition operation is performed on the upgrade data 1, adding 10, and a subtraction operation is performed on the upgrade data 3 in the other stack space, subtracting 10. The reverse hexadecimal addition and subtraction operation is to perform a subtraction operation on the stack space data to obtain 11, that is, subtract 10, and obtain the decrypted upgrade data 1. Similarly, perform an addition operation on the stack space data to obtain -7, that is, add 10, and obtain the decrypted upgrade data 3.
[0073] Preferably, in the step C, after the decryption operation is performed, a verification operation is also included:
[0074] Step C6: The slave station determines whether the decrypted upgrade data conforms to the preset specification of CANOPEN. If so, the decrypted upgrade data is encapsulated;
[0075] Step C7: The slave station temporarily stores the packaged upgrade data into the upgrade array, and obtains the required size of the packaged upgrade data.
[0076] In this embodiment, verifying whether the decrypted upgrade data complies with the preset specifications of CANOPEN can be understood as determining whether the upgrade data complies with the CIA301 and CIA402 protocols. If so, the decrypted upgrade data is encapsulated and temporarily stored in the upgrade data after encapsulation, and the size of the encapsulated upgrade data is obtained. The size of the encapsulated upgrade data is obtained in order to confirm whether the size complies before executing the upgrade operation. For details, see steps D21 and D22 below.
[0077] Step D: The slave station performs an upgrade operation based on the decrypted upgrade data.
[0078] Preferably, in step D, Figure 4 As shown in the figure, the upgrade operation includes:
[0079] Step D1: The slave initializes the I2C bus and the CAN bus, and obtains the NOD-ID and CAN rate of the servo component;
[0080] In this application, the purpose of the slave station initializing the I2C bus is to read the data in the EEPROM. The data that needs to be saved when the power is off is generally stored in the EEPROM. The CAN bus is used by the slave station to receive encrypted upgrade data from the host computer; NOD-ID is used to identify the local body at the data transmission layer, that is, after the subsequent slave station decrypts the upgrade data, the decrypted upgrade data will be encapsulated and saved in the corresponding upgrade array. To determine which servo component the upgrade data in the upgrade array is applied to, it is necessary to rely on NOD-ID to identify it. At the same time, different devices have different CAN rates and support power-off preservation, so it is necessary to obtain it.
[0081] Step D2: The slave station determines whether to receive the upgrade frame data. If received, it performs the upgrade operation based on the decrypted upgrade data, and jumps to execute the application after the writing is completed;
[0082] Preferably, in step D2, when the slave station receives the upgrade frame data, the following operations are also included:
[0083] Step D21: The slave station receives the upgrade frame data sent from the host computer, and the upgrade frame data is used to inform the slave station that the upgrade operation can be started;
[0084] Step D22: The slave station obtains the upgrade data size required for the corresponding servo component upgrade from the upgrade frame data, and judges the required size of the encapsulated upgrade data with the required size obtained from the upgrade frame data. If they are consistent, the upgrade operation is performed based on the decrypted upgrade data.
[0085] In this embodiment, after the slave station obtains the data in step D1, it will determine whether the upgrade frame data sent by the host computer is received. The upgrade frame data will be synchronously sent to the slave station by the host computer together with the encrypted upgrade data. The judgment of whether the upgrade frame data is received will be performed after the slave station obtains the data in step D1. The upgrade frame data is used by the host computer to inform the slave station that the encrypted upgrade data has been sent and the upgrade operation can be performed;
[0086] When the slave station receives the upgrade frame data, it will obtain the data size required for this upgrade from the upgrade frame data, and compare the data size with the data size after the decrypted upgrade data is encapsulated. If they are consistent, the upgrade operation will be performed; because the encrypted upgrade data may be lost during the transmission process, the encrypted upgrade data received by the slave station will be inconsistent with the size of the upgrade data obtained by the host computer after decryption. At this time, the upgrade cannot be performed.
[0087] Preferably, in the step D22, it also includes:
[0088] The decrypted upgrade data in the corresponding packaged upgrade array is found according to the NOD-ID of the servo component, and the size of the packaged upgrade data found is compared with the required size obtained from the upgrade frame data.
[0089] In this embodiment, the NOD-ID is relied upon to find the corresponding decryption upgrade data. As mentioned above, the NOD-ID is used to identify the machine body, so the NOD-ID can be relied upon to find the upgrade data of the corresponding model servo component, and then determine whether the data size is consistent.
[0090] If no upgrade frame data is received, the process enters a waiting state of the first duration and jumps to step D3;
[0091] Step D3: The slave determines whether the waiting state meets the first duration. If so, it jumps to execute the application to start the manual upgrade operation; if not, it enters the waiting state of the second duration and jumps to step D4;
[0092] When no upgrade frame data is received, it is necessary to enter a waiting state of the first duration. The first waiting period is to confirm whether the data to be obtained in step D1 is in place and to receive the upgrade frame data again. If the first waiting period is reached, it will jump to the manual upgrade state of the application, which means that the data content required for the upgrade has been met and manual upgrade can be performed at this time;
[0093] If the waiting does not last for the first time period, it means that the upgrade frame data has not been received again. If the upgrade frame data has not been received again, it can be understood that the slave station initiates a request to the host computer to re-receive the upgrade frame data, but the host computer does not receive the request, and it is necessary to enter the second time period of waiting;
[0094] Step D4: The slave determines whether the waiting state meets the second duration. If so, it sends a heartbeat message to the host computer, enters the waiting state of the third duration, and jumps to step D5;
[0095] If not, directly enter the waiting state of the third time length and jump to step D5;
[0096] The second waiting time is to generate a heartbeat message and send it to the host computer. The heartbeat message is used to inform the host computer that the slave station is already in the BOOT state and needs the host computer to resend the upgrade frame data. If the waiting time is less than the second waiting time, the third waiting time will be entered directly, which means that the heartbeat message generation fails.
[0097] Step D5: the slave station determines whether the waiting state meets the third time length, and if so, the slave station starts the LED state flipping of the servo component;
[0098] If not, you need to check whether the communication between the slave station and the host computer is normal.
[0099] The third waiting time is to start the LED status flip of the servo component and start the LED heartbeat light. The startup time is the third time. The startup of the LED heartbeat light can inform the user that it is necessary to manually request the upgrade frame data from the upper computer at this time.
[0100] If the third period of time is not reached, it means that the LED heartbeat light fails to start and the upgrade frame data cannot be obtained. At this time, it is necessary to check whether the communication between the slave station and the host computer is normal.
[0101] The technical principle of the present invention is described above in conjunction with specific embodiments. These descriptions are only for explaining the principle of the present invention and cannot be interpreted as limiting the scope of protection of the present invention in any way. Based on the explanations herein, those skilled in the art can associate other specific implementations of the present invention without paying creative labor, and these methods will fall within the scope of protection of the present invention.
Claims
1. A method for encrypting and upgrading a robot servo component application, characterized in that: Step A: The host computer splits the code in the upgrade file into multiple sub-codes, each of which contains the upgrade data required for this upgrade; Step B: The host computer performs hexadecimal addition and subtraction operations on the upgrade data in the sub-code to encrypt it, obtains encrypted upgrade data, packages each encrypted sub-code into data of corresponding size and sends it to the slave station; The step B comprises: Step B1: The host computer confirms the model of the servo component corresponding to the upgrade data in each sub-code; Step B2: converting the upgrade data in the data block into upgrade data in hexadecimal format, and converting the model of the servo component corresponding to the data block into model data in hexadecimal format; Step B3: performing addition and subtraction operations on the upgrade data in hexadecimal format, and the addition and subtraction values corresponding to the addition and subtraction operations are the model data in hexadecimal format; Step B4: The host computer packages each sub-code into a data block of corresponding size, and the size of the data block is determined by the model of the servo component; Step C: The slave station receives the encrypted upgrade data, selects the data block corresponding to the servo component to be upgraded from the encrypted upgrade data, performs reverse hexadecimal addition and subtraction operations on the data block according to the model of the servo component to decrypt it, and obtains the decrypted upgrade data; Step D: The slave station performs an upgrade operation based on the decrypted upgrade data.
2. The method for encrypting and upgrading a robot servo component application according to claim 1, characterized in that: In step D, performing the upgrade operation includes: Step D1: The slave initializes the I2C bus and the CAN bus, and obtains the NOD-ID and CAN rate of the servo component; Step D2: The slave station determines whether to receive the upgrade frame data. If received, it performs the upgrade operation based on the decrypted upgrade data, and jumps to execute the application after the writing is completed; If no upgrade frame data is received, the process enters a waiting state of the first duration and jumps to step D3; Step D3: The slave determines whether the waiting state meets the first duration. If so, it jumps to execute the application to start the manual upgrade operation; if not, it enters the waiting state of the second duration and jumps to step D4; Step D4: The slave determines whether the waiting state meets the second duration. If so, it sends a heartbeat message to the host computer, enters the waiting state of the third duration, and jumps to step D5; If not, directly enter the waiting state of the third time length and jump to step D5; Step D5: the slave station determines whether the waiting state meets the third time length, and if so, the slave station starts the LED state flipping of the servo component; If not, you need to check whether the communication between the slave station and the host computer is normal.
3. The encryption upgrade method of a robot servo component application according to claim 2, characterized in that: In step C, after receiving the encrypted upgrade data, the slave station performs a screening operation: Step C1: The slave station stores the encrypted upgrade data into the total array; Step C2: The slave station receives the model of the servo component to be upgraded sent from the host computer; Step C3: The slave station screens the encrypted upgrade data in the total array according to the model, screens out the encrypted upgrade data of servo components of different models, and stores them in the corresponding model array.
4. The method for encrypting and upgrading a robot servo component application according to claim 3, characterized in that: In the step C, after performing the screening operation, the decryption operation is also performed: Step C4: Find the corresponding model array according to the model of the servo component sent by the host computer; Step C5: Based on the model of the servo component, perform reverse hexadecimal addition and subtraction operations on the encrypted upgrade data in the model array to obtain decrypted upgrade data.
5. The method for encrypting and upgrading a robot servo component application according to claim 4, characterized in that: In step C, after the decryption operation is performed, a verification operation is also included: Step C6: The slave station determines whether the decrypted upgrade data conforms to the preset specification of CANOPEN, and if so, encapsulates the decrypted upgrade data; Step C7: The slave station temporarily stores the packaged upgrade data into the upgrade array, and obtains the required size of the packaged upgrade data.
6. The method for encrypting and upgrading a robot servo component application according to claim 5, characterized in that: In the step D2, when the slave station receives the upgrade frame data, the following operations are also included: Step D21: The slave station receives the upgrade frame data sent from the host computer, and the upgrade frame data is used to inform the slave station that the upgrade operation can be started; Step D22: The slave station obtains the upgrade data size required for the corresponding servo component upgrade from the upgrade frame data, and judges the required size of the encapsulated upgrade data with the required size obtained from the upgrade frame data. If they are consistent, the upgrade operation is performed based on the decrypted upgrade data.
7. The method for encrypting and upgrading a robot servo component application according to claim 6, characterized in that: In the step D22, it also includes: The decrypted upgrade data in the corresponding packaged upgrade array is found according to the NOD-ID of the servo component, and the size of the packaged upgrade data found is compared with the required size obtained from the upgrade frame data.
