Software development kit management method, device, equipment and storage medium
By dividing the software development toolkit into startup scripts and custom scripts, and using the cloud release platform to automatically update the toolkit version, the problem of inefficiency and high cost when updating the toolkit in the hardware platform is solved, and the effect of automatic update and rapid iteration is achieved.
Patent Information
- Application Number
- CN202510273599.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-10
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2045-03-10
AI Technical Summary
When updating the software development toolkit in the hardware platform, the original toolkit needs to be modified and adapted, resulting in high labor and time costs and low efficiency.
The software development toolkit is pre-divided into startup scripts and custom scripts. The startup script is embedded in the product chip, and the toolkit version is automatically judged and updated through the cloud release platform. Only the custom script is updated without affecting the startup script.
It realizes automatic updates of the software development toolkit, reduces developer participation, saves labor and time costs, reduces adaptation complexity and cost, and supports rapid iterative updates of the software development toolkit.
Smart Images

Figure CN119781797B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a software development toolkit management method, device, equipment and storage medium. Background Art
[0002] With the popularity of embedded systems, various hardware platforms and application requirements emerge in an endless stream. In the same hardware platform, as new functions continue to emerge, the software development kit of the chip in the hardware platform needs to be updated to ensure that the new functions run effectively on the hardware platform. However, when updating the software development kit of the chip in the hardware platform, the original software development kit of the chip in the hardware platform needs to be modified and adapted. This method requires a lot of manpower and time, is inefficient, and has high costs. Summary of the invention
[0003] The present application provides a software development kit management method, apparatus, device and storage medium to solve the problems raised by the above background technology.
[0004] In a first aspect, the present application provides a software development kit management method, comprising:
[0005] The software development kit is pre-divided, and the divided software development kit includes a startup script and a custom script; wherein the startup script is embedded in the product chip, and the startup script is used to guide the custom script to start;
[0006] After starting the startup script in the product chip, a request message is sent to the cloud publishing platform, so that the cloud publishing platform returns a request reply message based on the request message;
[0007] Receive the request reply information returned by the cloud publishing platform, and determine whether to download the target file from the cloud publishing platform based on the request reply information;
[0008] If so, the target file is downloaded from the cloud publishing platform based on the request response information, and the operation of the software development kit is controlled based on the target file.
[0009] In a possible implementation, the request information includes the current version of the startup script, the current version of the custom script, the coding sequence of the software development kit, and the identification code of the product chip, and the cloud publishing platform returns request response information based on the request information, including:
[0010] The cloud publishing platform determines a target directory structure corresponding to the software development kit based on a coding sequence of the software development kit;
[0011] Determine the latest released version of the startup script and the latest released version of the custom script based on the target directory structure;
[0012] The cloud publishing platform determines whether the current version of the startup script is consistent with the latest published version, and generates first request reply information based on the determination result;
[0013] The cloud publishing platform determines whether the current version of the custom script is consistent with the latest published version, and generates a second request reply information based on the determination result; the first request reply information and the second request reply information constitute the request reply information;
[0014] The cloud publishing platform returns the request response information based on the identification code of the product chip.
[0015] In a possible implementation, the cloud publishing platform returns the request response information based on the identification code of the product chip, including:
[0016] Extracting numbers from the identification code in sequence to obtain a number sequence, and extracting letters from the identification code in sequence to obtain a letter sequence; the number of numbers in the number sequence is consistent with the number of letters in the letter sequence;
[0017] Constructing a first column vector and a first row vector based on the digital sequence, and constructing a second column vector and a second row vector based on the letter sequence;
[0018] Multiply the first column vector by the first row vector to obtain a first matrix, and multiply the second column vector by the second row vector to obtain a second matrix;
[0019] Determine a first number and a second number based on the digital sequence, and compare the first number with the second number; the first number is the number of prime numbers in the digital sequence, and the second number is the number of composite numbers in the digital sequence;
[0020] If the first number is greater than the second number, extract a first target matrix element from the first matrix, and extract a second target matrix element from the second matrix; the sum of the row number and the column number of the first target matrix element is a prime number, and the sum of the row number and the column number of the second target matrix element is a composite number;
[0021] Arrange the first target matrix elements in order from top to bottom based on the positions of the first target matrix elements in the first matrix to obtain a target column vector, and arrange the second target matrix elements in order from left to right based on the positions of the second target matrix elements in the second matrix to obtain a target row vector;
[0022] Multiplying the target column vector by the target row vector to obtain a target matrix, wherein each row vector of the target matrix represents an encrypted sequence;
[0023] If the first number is not greater than the second number, multiplying the first matrix by the second matrix to obtain a target matrix, wherein each row vector of the target matrix represents an encrypted sequence;
[0024] Segmenting the request reply information to obtain a plurality of information fragments, and arranging the information fragments in sequence based on the positions of the information fragments in the request reply information to obtain an information fragment sequence; the number of the information fragments is consistent with the number of the encryption sequence;
[0025] Based on each of the encryption sequences, each information fragment in the information fragment sequence is encrypted in sequence to obtain an encrypted information fragment sequence;
[0026] The encrypted information fragment sequence is returned based on the identification code of the product chip.
[0027] In a possible implementation, the cloud publishing platform determines whether the current version of the startup script is consistent with the latest published version, and generates first request reply information based on the determination result, including:
[0028] If the current version of the startup script is inconsistent with the latest released version, the first request reply information is the download address of the latest released version of the startup script;
[0029] If the current version of the startup script is consistent with the latest released version, the first request reply information is empty;
[0030] The cloud publishing platform determines whether the current version of the custom script is consistent with the latest published version, and generates second request reply information based on the determination result, including:
[0031] If the current version of the custom script is inconsistent with the latest released version, the second request reply information is the download address of the latest released version of the custom script;
[0032] If the current version of the custom script is consistent with the latest released version, the second request reply information is empty.
[0033] In a possible implementation, the determining whether to download the target file from the cloud publishing platform based on the request response information includes:
[0034] If the request reply information is empty, determine not to download the target file;
[0035] If the request response information is not empty, determine to download the target file.
[0036] In a possible implementation, downloading the target file from the cloud publishing platform based on the request response information, and controlling the operation of the software development kit based on the target file, includes:
[0037] Download the target file based on the download address in the request reply information;
[0038] If the target file is the latest released version of the custom script, the latest released version of the custom script is started by guiding the startup script;
[0039] If the target file is the latest released version of the startup script, determine the patch package of the startup script and the difference code in the startup script corresponding to the patch package based on the current version and the latest released version of the startup script;
[0040] Running the startup script in the product chip, when the difference code starts to be executed, executing the code in the patch package, and after the startup script is finished running, guiding the current version of the customized script to start up through the latest version of the startup script;
[0041] If the target file includes the latest released version of the startup script and the latest released version of the custom script, determine the patch package of the startup script and the difference code in the startup script corresponding to the patch package based on the current version and the latest released version of the startup script;
[0042] The startup script is run in the product chip, and when the difference code starts to be executed, the code in the patch package is executed. After the startup script is completed, the latest released version of the customized script is booted through the latest released version of the startup script.
[0043] In a second aspect, the present application provides a software development kit management device, including:
[0044] A partitioning module, used for pre-partitioning the software development kit, wherein the divided software development kit includes a startup script and a custom script; wherein the startup script is embedded in the product chip;
[0045] A sending module, used for sending request information to the cloud publishing platform after starting the startup script in the product chip, so that the cloud publishing platform returns request reply information based on the request information;
[0046] A judgment module, used for receiving the request reply information returned by the cloud publishing platform, and judging whether to download the target file from the cloud publishing platform based on the request reply information;
[0047] A control module is used to download the target file from the cloud publishing platform based on the request response information when the target file is downloaded from the cloud publishing platform, and to control the operation of the software development kit based on the target file.
[0048] In a third aspect, the present application provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the software development kit management method as described in any one of the above items is implemented.
[0049] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the software development kit management method as described in any one of the above items is implemented.
[0050] The present application provides a software development kit management method, apparatus, device and storage medium, the method comprising: pre-dividing the software development kit, the divided software development kit comprising a startup script and a custom script; wherein the startup script is embedded in the product chip, and the startup script is used to guide the startup of the custom script; after starting the startup script in the product chip, a request message is sent to the cloud publishing platform, so that the cloud publishing platform returns a request reply message based on the request message; receiving the request reply message returned by the cloud publishing platform, and judging whether to download the target file from the cloud publishing platform based on the request reply message; if so, downloading the target file from the cloud publishing platform based on the request reply message, and controlling the operation of the software development kit based on the target file. On the one hand, the method realizes the automatic update of the software development kit, greatly reduces the participation of developers, and saves a lot of manpower and time costs. On the other hand, by dividing the software development kit into startup scripts and custom scripts, a separate management mode is formed. When new functions are added to the hardware platform, only the custom scripts need to be updated, and there is no need to make major modifications to the startup scripts and the original software development kit, which significantly reduces the adaptation complexity and cost. On the other hand, through the cloud publishing platform, the version information of the current software development kit in the chip can be determined in real time, and compared with the latest released version, to generate update requirements, thereby realizing rapid iterative updates of the software development kit. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0052] Figure 1 A flowchart of a software development kit management method provided in an embodiment of the present application;
[0053] Figure 2 A schematic block diagram of the structure of a software development kit management device provided in an embodiment of the present application;
[0054] Figure 3 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] 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 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.
[0056] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0057] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0058] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0059] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0060] See also Figure 1 , Figure 1A flowchart of a software development kit management method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the software development kit management method provided in the embodiment of the present application includes steps S1 to S4.
[0061] Step S1, pre-dividing the software development kit, wherein the divided software development kit includes a startup script and a custom script; wherein the startup script is embedded in a product chip, and the startup script is used to guide the startup of the custom script.
[0062] In this embodiment, since the startup script has a low update frequency and does not include functional code, the startup script is embedded in the chip product. The functional code in the software development kit is included in the custom script, which has a high update frequency and is stored in a preset database.
[0063] Step S2: After starting the startup script in the product chip, a request message is sent to the cloud publishing platform, so that the cloud publishing platform returns a request reply message based on the request message.
[0064] In this embodiment, when the chip is started, the startup script is started accordingly, the request information includes the current version of the startup script, the current version of the custom script, the coding sequence of the software development kit and the identification code of the product chip, and the cloud publishing platform returns the request reply information based on the request information, including the following steps:
[0065] The cloud publishing platform determines the target directory structure corresponding to the software development kit based on the coding sequence of the software development kit; specifically, the cloud publishing platform searches in a database based on the coding sequence to obtain the target directory structure; the target directory structure includes each historical release version of the startup script and each historical release version of the custom script;
[0066] Determine the latest released version of the startup script and the latest released version of the custom script based on the target directory structure;
[0067] The cloud publishing platform determines whether the current version of the startup script is consistent with the latest published version, and generates a first request reply message based on the determination result; specifically, if the current version of the startup script is inconsistent with the latest published version, the first request reply message is the download address of the latest published version of the startup script; if the current version of the startup script is consistent with the latest published version, the first request reply message is empty;
[0068] The cloud publishing platform determines whether the current version of the custom script is consistent with the latest published version, and generates a second request reply information based on the determination result; the first request reply information and the second request reply information constitute the request reply information; specifically, if the current version of the custom script is inconsistent with the latest published version, the second request reply information is the download address of the latest published version of the custom script; if the current version of the custom script is consistent with the latest published version, the second request reply information is empty;
[0069] The cloud publishing platform returns the request response information based on the identification code of the product chip.
[0070] It can be understood that the method provided in step S2 helps to improve the upgrade effect of the software development kit by designing and managing the startup script and the custom script separately, and reduces the complexity of development, maintenance and management. It has the advantages of high efficiency, intelligence and resource conservation, and can be widely used in the management and update scenarios of embedded devices.
[0071] The cloud publishing platform returns the request reply information based on the identification code of the product chip, including the following steps:
[0072] Extracting numbers from the identification code in sequence to obtain a number sequence, and extracting letters from the identification code in sequence to obtain a letter sequence; the number of numbers in the number sequence is consistent with the number of letters in the letter sequence;
[0073] Constructing a first column vector and a first row vector based on the digital sequence, and constructing a second column vector and a second row vector based on the letter sequence; specifically, arranging the numbers in the digital sequence from top to bottom to obtain the first column vector, arranging the numbers in the digital sequence from left to right to obtain the first row vector, arranging the numbers in the letter sequence from top to bottom to obtain the second column vector, and arranging the letters in the letter sequence from left to right to obtain the second row vector;
[0074] Multiply the first column vector by the first row vector to obtain a first matrix, and multiply the second column vector by the second row vector to obtain a second matrix;
[0075] Determine a first number and a second number based on the digital sequence, and compare the first number with the second number; the first number is the number of prime numbers in the digital sequence, and the second number is the number of composite numbers in the digital sequence;
[0076] If the first number is greater than the second number, extract a first target matrix element from the first matrix, and extract a second target matrix element from the second matrix; the sum of the row number and the column number of the first target matrix element is a prime number, and the sum of the row number and the column number of the second target matrix element is a composite number;
[0077] Arrange the first target matrix elements in order from top to bottom based on the positions of the first target matrix elements in the first matrix to obtain a target column vector, and arrange the second target matrix elements in order from left to right based on the positions of the second target matrix elements in the second matrix to obtain a target row vector;
[0078] Multiplying the target column vector by the target row vector to obtain a target matrix, wherein each row vector of the target matrix represents an encrypted sequence;
[0079] If the first number is not greater than the second number, multiplying the first matrix by the second matrix to obtain a target matrix, wherein each row vector of the target matrix represents an encrypted sequence;
[0080] Segmenting the request reply information to obtain a plurality of information fragments, and arranging the information fragments in sequence based on the positions of the information fragments in the request reply information to obtain an information fragment sequence; the number of the information fragments is consistent with the number of the encryption sequence;
[0081] Based on each of the encryption sequences, each information fragment in the information fragment sequence is encrypted in sequence to obtain an encrypted information fragment sequence; specifically, for each of the information fragments, a target encryption sequence corresponding to the information fragment is determined, and the information fragment is encrypted using the target encryption sequence; wherein the row number corresponding to the target encryption sequence in the target matrix is consistent with the sequence number corresponding to the information fragment in the information fragment sequence;
[0082] The encrypted information fragment sequence is returned based on the identification code of the product chip.
[0083] It can be understood that the method in which the cloud publishing platform returns the request reply information based on the identification code of the product chip can, on the one hand, ensure the security of the request reply information during transmission by encrypting the request reply information, and on the other hand, by encrypting each information fragment in the information fragment sequence in sequence based on each encryption sequence to obtain an encrypted information fragment sequence, the difficulty of cracking the encryption password is increased, and the security of the request reply information during transmission is further improved.
[0084] Step S3: Receive the request response information returned by the cloud publishing platform, and determine whether to download the target file from the cloud publishing platform based on the request response information.
[0085] In this embodiment, after receiving the encrypted information fragment sequence, the numbers in the identification code are extracted in sequence to obtain a number sequence, and the letters in the identification code are extracted in sequence to obtain a letter sequence; the number of numbers in the number sequence is consistent with the number of letters in the letter sequence; a first column vector and a first row vector are constructed based on the number sequence, and a second column vector and a second row vector are constructed based on the letter sequence; specifically, the numbers in the number sequence are arranged in sequence from top to bottom to obtain the first column vector, the numbers in the number sequence are arranged in sequence from left to right to obtain the first row vector, the numbers in the letter sequence are arranged in sequence from top to bottom to obtain the second column vector, and the letters in the letter sequence are arranged in sequence from left to right to obtain the second row vector; the first column vector is multiplied by the first row vector to obtain a first matrix, and the second column vector is multiplied by the second row vector to obtain a second matrix; a first number and a second number are determined based on the number sequence, and the first number is compared with the second number; the first number is the number of prime numbers in the number sequence, and the second number is the number of composite numbers in the number sequence. quantity; if the first quantity is greater than the second quantity, extract the first target matrix element from the first matrix, and extract the second target matrix element from the second matrix; the sum of the row number and the column number of the first target matrix element is a prime number, and the sum of the row number and the column number of the second target matrix element is a composite number; based on the position of each of the first target matrix elements in the first matrix, the first target matrix elements are arranged in order from top to bottom to obtain a target column vector, and based on the position of each of the second target matrix elements in the second matrix, the second target matrix elements are arranged in order from left to right to obtain a target row vector; multiply the target column vector with the target row vector to obtain a decryption matrix; each row vector of the decryption matrix represents a decryption sequence; if the first quantity is not greater than the second quantity, multiply the first matrix with the second matrix to obtain a decryption matrix; each row vector of the decryption matrix represents a decryption sequence; based on each of the decryption sequences, the encrypted information fragments in the encrypted information fragment sequence are decrypted in sequence to obtain an information fragment sequence, and the information fragments in the information fragment sequence are combined in sequence to obtain the request reply information. The step of determining whether to download the target file from the cloud publishing platform based on the request response information includes the following steps:
[0086] If the request reply information is empty, determine not to download the target file;
[0087] If the request response information is not empty, determine to download the target file.
[0088] Step S4: If yes, download the target file from the cloud publishing platform based on the request response information, and control the operation of the software development kit based on the target file.
[0089] In this embodiment, step S4 includes the following steps:
[0090] Download the target file based on the download address in the request reply information;
[0091] If the target file is the latest released version of the custom script, the latest released version of the custom script is started by guiding the startup script;
[0092] If the target file is the latest released version of the startup script, determine the patch package of the startup script and the difference code in the startup script corresponding to the patch package based on the current version and the latest released version of the startup script;
[0093] The startup script is run in the product chip, and when the difference code starts to be executed, the code in the patch package is executed, and after the startup script is completed, the current version of the customized script is guided to start through the latest version of the startup script; it can be understood that after the startup script is completed, the latest version of the startup script is embedded in the product chip;
[0094] If the target file includes the latest released version of the startup script and the latest released version of the custom script, determine the patch package of the startup script and the difference code in the startup script corresponding to the patch package based on the current version and the latest released version of the startup script;
[0095] The startup script is run in the product chip, and when the difference code starts to be executed, the code in the patch package is executed. After the startup script is completed, the latest released version of the customized script is booted through the latest released version of the startup script.
[0096] The method provided in this embodiment, on the one hand, realizes the automatic update of the software development kit, greatly reduces the participation of developers, and saves a lot of manpower and time costs. On the other hand, by dividing the software development kit into startup scripts and custom scripts, a separate management mode is formed. When the hardware platform adds new functions, only the custom script needs to be updated, and there is no need to make major modifications to the startup script and the original software development kit, which significantly reduces the complexity and cost of adaptation. On the other hand, through the cloud publishing platform, the version information of the current software development kit in the chip can be judged in real time, and compared with the latest released version, and update requirements are generated, realizing the rapid iterative update of the software development kit.
[0097] See also Figure 2 , Figure 2 The schematic block diagram of the structure of the software development kit management device 100 provided in the embodiment of the present application is as follows: Figure 2 As shown, the software development kit management device 100 provided in the embodiment of the present application includes:
[0098] The division module 110 is used to pre-divide the software development kit, and the divided software development kit includes a startup script and a custom script; wherein the startup script is embedded in the product chip.
[0099] The sending module 120 is used to send request information to the cloud publishing platform after starting the startup script in the product chip, so that the cloud publishing platform returns request reply information based on the request information.
[0100] The judgment module 130 is used to receive the request response information returned by the cloud publishing platform, and judge whether to download the target file from the cloud publishing platform based on the request response information.
[0101] The control module 140 is used to download the target file from the cloud publishing platform based on the request response information when the target file is downloaded from the cloud publishing platform, and control the operation of the software development kit based on the target file.
[0102] It should be noted that technicians in the relevant technical field can clearly understand that for the convenience and conciseness of description, the specific working process of the above-described device and each module can refer to the process in the aforementioned software development tool kit management method embodiment, and will not be repeated here.
[0103] The software development kit management device 100 provided in the above embodiment can be implemented in the form of a computer program. The computer program can be used in Figure 3 The system is run on the terminal device 200 shown.
[0104] See also Figure 3 , Figure 3 The present invention provides a schematic block diagram of the structure of a terminal device 200 according to an embodiment of the present application. The terminal device 200 includes a processor 201 and a memory 202. The processor 201 and the memory 202 are connected via a device bus 203, wherein the memory 202 may include a non-volatile storage medium and an internal memory.
[0105] The non-volatile storage medium can store a computer program. The computer program includes program instructions, and when the program instructions are executed by the processor 201, the processor 201 can execute any of the above-mentioned software development kit management methods.
[0106] The processor 201 is used to provide computing and control capabilities to support the operation of the entire terminal device 200.
[0107] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor 201, the processor 201 can execute any of the above-mentioned software development kit management methods.
[0108] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the terminal device 200 involved in the scheme of the present application. The specific terminal device 200 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0109] It should be understood that the processor 201 may be a central processing unit (CPU), and the processor 201 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0110] In some embodiments, the processor 201 is used to run a computer program stored in the memory to implement the following steps:
[0111] The software development kit is pre-divided, and the divided software development kit includes a startup script and a custom script; wherein the startup script is embedded in the product chip, and the startup script is used to guide the custom script to start;
[0112] After starting the startup script in the product chip, a request message is sent to the cloud publishing platform, so that the cloud publishing platform returns a request reply message based on the request message;
[0113] Receive the request reply information returned by the cloud publishing platform, and determine whether to download the target file from the cloud publishing platform based on the request reply information;
[0114] If so, the target file is downloaded from the cloud publishing platform based on the request response information, and the operation of the software development kit is controlled based on the target file.
[0115] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the terminal device 200 described above can refer to the process of the aforementioned software development kit management method, which will not be repeated here.
[0116] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by one or more processors, the one or more processors implement the software development kit management method provided in the embodiment of the present application.
[0117] The computer-readable storage medium may be an internal storage unit of the terminal device 200 in the aforementioned embodiment, such as a hard disk or memory of the terminal device 200. The computer-readable storage medium may also be an external storage device of the terminal device 200, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped with the terminal device 200.
[0118] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A software development kit management method, characterized in that: include: The software development kit is pre-divided, and the divided software development kit includes a startup script and a custom script; wherein the startup script is embedded in the product chip, and the startup script is used to guide the custom script to start; After starting the startup script in the product chip, a request message is sent to the cloud publishing platform, so that the cloud publishing platform returns a request reply message based on the request message; Receive the request reply information returned by the cloud publishing platform, and determine whether to download the target file from the cloud publishing platform based on the request reply information; If so, downloading the target file from the cloud publishing platform based on the request response information, and controlling the operation of the software development kit based on the target file; The request information includes the current version of the startup script, the current version of the custom script, the coding sequence of the software development kit and the identification code of the product chip. The cloud publishing platform returns request response information based on the request information, including: The cloud publishing platform determines a target directory structure corresponding to the software development kit based on a coding sequence of the software development kit; Determine the latest released version of the startup script and the latest released version of the custom script based on the target directory structure; The cloud publishing platform determines whether the current version of the startup script is consistent with the latest published version, and generates first request reply information based on the determination result; The cloud publishing platform determines whether the current version of the custom script is consistent with the latest published version, and generates a second request reply information based on the determination result; the first request reply information and the second request reply information constitute the request reply information; The cloud publishing platform returns the request response information based on the identification code of the product chip.
2. The software development kit management method according to claim 1, characterized in that: The cloud publishing platform returns the request response information based on the identification code of the product chip, including: Extracting numbers from the identification code in sequence to obtain a number sequence, and extracting letters from the identification code in sequence to obtain a letter sequence; the number of numbers in the number sequence is consistent with the number of letters in the letter sequence; Constructing a first column vector and a first row vector based on the digital sequence, and constructing a second column vector and a second row vector based on the letter sequence; Multiply the first column vector by the first row vector to obtain a first matrix, and multiply the second column vector by the second row vector to obtain a second matrix; Determine a first number and a second number based on the digital sequence, and compare the first number with the second number; the first number is the number of prime numbers in the digital sequence, and the second number is the number of composite numbers in the digital sequence; If the first number is greater than the second number, extract a first target matrix element from the first matrix, and extract a second target matrix element from the second matrix; the sum of the row number and the column number of the first target matrix element is a prime number, and the sum of the row number and the column number of the second target matrix element is a composite number; Arrange the first target matrix elements in order from top to bottom based on the positions of the first target matrix elements in the first matrix to obtain a target column vector, and arrange the second target matrix elements in order from left to right based on the positions of the second target matrix elements in the second matrix to obtain a target row vector; Multiplying the target column vector by the target row vector to obtain a target matrix, wherein each row vector of the target matrix represents an encrypted sequence; If the first number is not greater than the second number, multiplying the first matrix by the second matrix to obtain a target matrix, wherein each row vector of the target matrix represents an encrypted sequence; Segmenting the request reply information to obtain a plurality of information fragments, and arranging the information fragments in sequence based on the positions of the information fragments in the request reply information to obtain an information fragment sequence; the number of the information fragments is consistent with the number of the encryption sequence; Based on each of the encryption sequences, each information fragment in the information fragment sequence is encrypted in sequence to obtain an encrypted information fragment sequence; The encrypted information fragment sequence is returned based on the identification code of the product chip.
3. The software development kit management method according to claim 1, characterized in that: The cloud publishing platform determines whether the current version of the startup script is consistent with the latest published version, and generates first request reply information based on the determination result, including: If the current version of the startup script is inconsistent with the latest released version, the first request reply information is the download address of the latest released version of the startup script; If the current version of the startup script is consistent with the latest released version, the first request reply information is empty; The cloud publishing platform determines whether the current version of the custom script is consistent with the latest published version, and generates second request reply information based on the determination result, including: If the current version of the custom script is inconsistent with the latest released version, the second request reply information is the download address of the latest released version of the custom script; If the current version of the custom script is consistent with the latest released version, the second request reply information is empty.
4. The software development kit management method according to claim 3, characterized in that: The determining whether to download the target file from the cloud publishing platform based on the request response information includes: If the request reply information is empty, determine not to download the target file; If the request response information is not empty, determine to download the target file.
5. The software development kit management method according to claim 4, characterized in that: The downloading of the target file from the cloud publishing platform based on the request response information, and controlling the operation of the software development kit based on the target file, includes: Download the target file based on the download address in the request reply information; If the target file is the latest released version of the custom script, the latest released version of the custom script is started by guiding the startup script; If the target file is the latest released version of the startup script, determine the patch package of the startup script and the difference code in the startup script corresponding to the patch package based on the current version and the latest released version of the startup script; Running the startup script in the product chip, when the difference code starts to be executed, executing the code in the patch package, and after the startup script is finished running, guiding the current version of the customized script to start up through the latest version of the startup script; If the target file includes the latest released version of the startup script and the latest released version of the custom script, determine the patch package of the startup script and the difference code in the startup script corresponding to the patch package based on the current version and the latest released version of the startup script; The startup script is run in the product chip, and when the difference code starts to be executed, the code in the patch package is executed. After the startup script is completed, the latest released version of the customized script is booted through the latest released version of the startup script.
6. A software development kit management device, characterized in that: include: A partitioning module, used for pre-partitioning the software development kit, wherein the divided software development kit includes a startup script and a custom script; wherein the startup script is embedded in the product chip; A sending module, used for sending request information to the cloud publishing platform after starting the startup script in the product chip, so that the cloud publishing platform returns request reply information based on the request information; A judgment module, used for receiving the request reply information returned by the cloud publishing platform, and judging whether to download the target file from the cloud publishing platform based on the request reply information; A control module, configured to download the target file from the cloud publishing platform based on the request reply information if the target file is downloaded from the cloud publishing platform, and control the operation of the software development kit based on the target file; The request information includes the current version of the startup script, the current version of the custom script, the coding sequence of the software development kit and the identification code of the product chip. The cloud publishing platform returns request response information based on the request information, including: The cloud publishing platform determines a target directory structure corresponding to the software development kit based on a coding sequence of the software development kit; Determine the latest released version of the startup script and the latest released version of the custom script based on the target directory structure; The cloud publishing platform determines whether the current version of the startup script is consistent with the latest published version, and generates first request reply information based on the determination result; The cloud publishing platform determines whether the current version of the custom script is consistent with the latest published version, and generates a second request reply information based on the determination result; the first request reply information and the second request reply information constitute the request reply information; The cloud publishing platform returns the request response information based on the identification code of the product chip.
7. A terminal device, characterized in that: The terminal device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the software development kit management method as described in any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the software development kit management method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Software development kit access method and device, electronic equipment and storage medium
CN118051251A
In-vehicle software upgrade method and apparatus, device, vehicle, medium, and system
WO2024179525A1