A protocol serialization update method, an electronic device, and a storage medium
By generating index fields to store protocol data structures and deserialization strategies, the automatic updating and simplified deserialization of data transmission protocols are achieved, solving the problems of high maintenance costs and complex operations in existing technologies, and supporting the simultaneous existence of different protocol versions.
Patent Information
- Application Number
- CN202410900317.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2044-07-05
AI Technical Summary
When updating existing data transmission protocols, maintenance costs are high, automation is low, and the deserialization of historical data is complex, requiring frequent modifications to the source code.
By using a protocol serialization update method, an index field is generated and stored in memory. The target protocol is then determined using the index field, enabling automated updates and deserialization. This supports the simultaneous existence of different protocol versions and reduces human intervention.
It reduced maintenance costs, enabled automated protocol updates, simplified the deserialization of historical data, and reduced the frequency of source code modifications.
Smart Images

Figure CN118660087B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data updating, and in particular to a protocol serialization updating method, electronic device, and storage medium. Background Technology
[0002] Currently, when a data transmission protocol is updated, the service provider that published the protocol sends the update file to the protocol data repository, which then sends it to the update system. Because data transmission protocols require serialization to improve transmission speed, when an update occurs, the deserialization strategy of the new protocol must be obtained first, the protocol deserialized, and the updated content obtained. Then, maintenance personnel update the code of the original protocol in the update system. Therefore, when there are many data transmission protocols or a particular protocol is updated too frequently, it increases the maintenance cost for personnel. The automation of protocol updates is low. Furthermore, when a data transmission protocol is updated, the update system stores only the latest protocol content. When historical data is received for transmission, because the deserialization strategy of the data transmission protocol has changed, the current data transmission protocol's source code must be modified to match the source code for the corresponding time period of the historical data when deserializing the historical data, making the operation overly complex. Summary of the Invention
[0003] To address the aforementioned technical problems, the technical solution adopted by this invention is as follows:
[0004] According to one aspect of this application, a protocol serialization update method is provided, which is applied to a protocol update system. The protocol update system is connected to a protocol data repository, which stores data files of several protocols. The data files include the data structure and deserialization strategy of the corresponding protocol.
[0005] The protocol serialization update method described in this application includes the following steps:
[0006] Step S100: In response to receiving the update protocol file of the protocol to be updated sent by the protocol data repository, obtain the update protocol identifier corresponding to the update protocol, the server identifier of the server corresponding to the update protocol, and the data structure and deserialization strategy of the update protocol included in the update protocol file.
[0007] Step S200: Generate the index field corresponding to the protocol file to be updated based on the protocol identifier to be updated, the server identifier, and the update time of the protocol to be updated;
[0008] Step S300: Store the index field corresponding to the protocol file to be updated, the data structure of the protocol to be updated, and the deserialization strategy into the memory of the protocol update system.
[0009] In one exemplary embodiment of this application, the protocol data repository is used to perform the following steps:
[0010] Step S101: In response to receiving the protocol PB file sent by the server, store the protocol PB file in the protocol data storage repository; the protocol PB file includes the update time, data structure and deserialization strategy of the protocol to be updated;
[0011] Step S102: Generate the protocol file to be updated based on the data structure and deserialization strategy of the protocol to be updated;
[0012] Step S103: Send the protocol file to be updated, the corresponding protocol identifier, the server identifier, and the update time of the protocol to be updated to the protocol update system.
[0013] In one exemplary embodiment of this application, the protocol update system includes a protocol class loader;
[0014] Step S100 includes:
[0015] Step S110: When the update protocol file is received, the update protocol file is converted into a target protocol file written in the preset programming language according to the preset programming language.
[0016] Step S120: Load the target protocol file using reflection through the protocol class loader to obtain the data structure and deserialization strategy of the protocol to be updated included in the target protocol file.
[0017] In one exemplary embodiment of this application, step S200 includes:
[0018] Step S210: Obtain the update time of the protocol to be updated;
[0019] Step S220: Generate the index field of the protocol file to be updated according to the order of server identifier, protocol identifier to be updated, and update time of the protocol to be updated.
[0020] In one exemplary embodiment of this application, the protocol update system is further configured to perform the following steps:
[0021] Step S010: When data to be transmitted is received, obtain the data protocol identifier and data service identifier of the data to be transmitted;
[0022] Step S020: Determine the target protocol from several protocols based on the data protocol identifier and data service identifier of the data to be transmitted;
[0023] Step S030: Based on the generation time of the data to be transmitted, determine the key protocol file from several target protocol files of the target protocol;
[0024] Step S040: Obtain the target deserialization strategy of the target protocol included in the key protocol file;
[0025] Step S050: Deserialize the data to be transmitted according to the target deserialization strategy.
[0026] In one exemplary embodiment of this application, step S020 includes:
[0027] Step S021: Obtain several index fields stored in the memory of the protocol update system, and obtain the index field list A = (A1, A2, ..., A...). i ,...,A n A i =(A i1 A i2 ); where i = 1, 2, ..., n; n is the number of index fields stored in the memory of the protocol update system; A i To update the i-th index field stored in the system's memory for the protocol; A i1 For A i The server identifier included; A i2 For A i The protocol identifier included;
[0028] Step S022: Traverse the index field list A. If A i1 =A 01 And A i2 =A 02 Then the protocol corresponding to the i-th index field is determined as the target protocol; where A 01 A is the data service identifier for the data to be transmitted. 02 This is the data protocol identifier for the data to be transmitted.
[0029] In one exemplary embodiment of this application, step S030 includes:
[0030] Step S031: Obtain the generation time t0 of the data to be transmitted;
[0031] Step S032: Obtain the update time from the index fields of several target protocol files corresponding to the target protocol, and obtain the update time list B = (B1, B2, ..., B...). j ,...,B m); where j = 1, 2, ..., m; m is the number of target protocol files corresponding to the target protocol; B j The update time is the index field corresponding to the j-th target protocol file.
[0032] Step S033: According to the increasing time order, process B1, B2, ..., B j ,...,B m Sort the results to obtain a sorted time list C = (C1, C2, ..., C...). j ,...,C m ); where C j This is the j-th update time after ascending sorting;
[0033] Step S034: Traverse the sorted time list C. If C j ≤t0<C j+1 Then C j The corresponding target protocol file was identified as a key protocol file.
[0034] In one exemplary embodiment of this application, the update time of the protocol to be updated is the time when the protocol data repository receives the protocol PB file corresponding to the protocol to be updated.
[0035] According to one aspect of this application, a non-transitory computer-readable storage medium is provided, wherein at least one instruction or at least one program is stored therein, the at least one instruction or the at least one program being loaded and executed by a processor to implement the aforementioned protocol serialization update method.
[0036] According to one aspect of this application, an electronic device is provided, including a processor and the aforementioned non-transitory computer-readable storage medium.
[0037] The present invention has at least the following beneficial effects:
[0038] In the protocol serialization update method of the present invention, when the protocol update system receives the update protocol file of the protocol to be updated from the protocol data repository, it obtains the update protocol identifier, the server identifier of the server corresponding to the update protocol, the data structure and deserialization strategy of the update protocol included in the update protocol file, and generates an index field corresponding to the update protocol file based on the update protocol identifier, the server identifier, and the update time of the update protocol. The index field, the data structure and deserialization strategy of the update protocol file are stored in the memory of the protocol update system. The target protocol of the corresponding service can be determined from several protocols through the index field. Then, the protocol file corresponding to the update time is found from several protocol files of the target protocol through the update time in the index field. The data stored at the corresponding time is deserialized through the deserialization strategy of the protocol file. This reduces human intervention and realizes automatic update of the protocol. It also eliminates the need to frequently modify the source code of the updated protocol after the update. Different update files of the target protocol can coexist. When an update file needs to be called, the corresponding update file can be found through the index field for deserialization operation. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 A flowchart of a protocol serialization update method provided in an embodiment of the present invention. Detailed Implementation
[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0042] A protocol serialization update method is applied to a protocol update system. The protocol update system is connected to a protocol data repository. The protocol update system includes a protocol class loader. The protocol data repository stores data files of several protocols. The data files include the data structure and deserialization strategy of the corresponding protocol.
[0043] The protocol class loader is used to load protocol files using reflection. Reflection loading is a hot loading method, which can update the protocol without stopping the protocol program, thus improving update efficiency.
[0044] Deserialization strategy is a method for deserializing protocols.
[0045] like Figure 1 As shown, the protocol serialization update method described in this application includes the following steps:
[0046] Step S100: In response to receiving the update protocol file of the protocol to be updated sent by the protocol data repository, obtain the update protocol identifier corresponding to the update protocol, the server identifier of the server corresponding to the update protocol, and the data structure and deserialization strategy of the update protocol included in the update protocol file.
[0047] Furthermore, step S100 includes steps S110-S120:
[0048] Step S110: When the update protocol file is received, the update protocol file is converted into a target protocol file written in the preset programming language according to the preset programming language.
[0049] Step S120: Load the target protocol file using reflection through the protocol class loader to obtain the data structure and deserialization strategy of the protocol to be updated included in the target protocol file.
[0050] Step S200: Generate the index field corresponding to the protocol file to be updated based on the protocol identifier to be updated, the server identifier, and the update time of the protocol to be updated;
[0051] Furthermore, step S200 includes steps S210-S220:
[0052] Step S210: Obtain the update time of the protocol to be updated;
[0053] Step S220: Generate the index field of the protocol file to be updated according to the order of server identifier, protocol identifier to be updated, and update time of the protocol to be updated.
[0054] Step S300: Store the index field corresponding to the protocol file to be updated, the data structure of the protocol to be updated, and the deserialization strategy into the memory of the protocol update system.
[0055] The protocol update method in this application stores the updated protocol file in memory without modifying the source code of the protocol program. This allows different versions of the same protocol to coexist in memory. When a protocol file needs to be called, the index field can be used to determine the protocol file to be called, which is convenient for users to view.
[0056] The protocol data repository is used to execute steps S101-S103:
[0057] Step S101: In response to receiving the protocol PB file sent by the server, store the protocol PB file in the protocol data storage repository;
[0058] The protocol PB file includes the update time, data structure, and deserialization strategy of the protocol to be updated.
[0059] The update time of the protocol to be updated is the time when the protocol data repository receives the protocol PB file corresponding to the protocol to be updated.
[0060] Step S102: Generate the protocol file to be updated based on the data structure and deserialization strategy of the protocol to be updated;
[0061] Step S103: Send the protocol file to be updated, the corresponding protocol identifier, the server identifier, and the update time of the protocol to be updated to the protocol update system.
[0062] In addition, the protocol update system is also used to execute steps S010-S050:
[0063] Step S010: When data to be transmitted is received, obtain the data protocol identifier and data service identifier of the data to be transmitted;
[0064] Step S020: Determine the target protocol from several protocols based on the data protocol identifier and data service identifier of the data to be transmitted;
[0065] Furthermore, step S020 includes steps S021-S022:
[0066] Step S021: Obtain several index fields stored in the memory of the protocol update system, and obtain the index field list A = (A1, A2, ..., A...). i ,...,A n A i =(A i1 A i2 ); where i = 1, 2, ..., n; n is the number of index fields stored in the memory of the protocol update system; A i To update the i-th index field stored in the system's memory for the protocol; A i1 For A i The server identifier included; A i2 For A i The protocol identifier included;
[0067] Step S022: Traverse the index field list A. If Ai1 =A 01 And A i2 =A 02 Then the protocol corresponding to the i-th index field is determined as the target protocol; where A 01 A is the data service identifier for the data to be transmitted. 02 This is the data protocol identifier for the data to be transmitted.
[0068] Step S030: Based on the generation time of the data to be transmitted, determine the key protocol file from several target protocol files of the target protocol;
[0069] Furthermore, step S030 includes steps S031-S034:
[0070] Step S031: Obtain the generation time t0 of the data to be transmitted;
[0071] Step S032: Obtain the update time from the index fields of several target protocol files corresponding to the target protocol, and obtain the update time list B = (B1, B2, ..., B...). j ,...,B m ); where j = 1, 2, ..., m; m is the number of target protocol files corresponding to the target protocol; B j The update time is the index field corresponding to the j-th target protocol file.
[0072] Step S033: According to the increasing time order, process B1, B2, ..., B j ,...,B m Sort the results to obtain a sorted time list C = (C1, C2, ..., C...). j ,...,C m ); where C j This is the j-th update time after ascending sorting;
[0073] Step S034: Traverse the sorted time list C. If C j ≤t0<C j+1 Then C j The corresponding target protocol file was identified as a key protocol file.
[0074] Step S040: Obtain the target deserialization strategy of the target protocol included in the key protocol file;
[0075] Step S050: Deserialize the data to be transmitted according to the target deserialization strategy.
[0076] In the protocol serialization update method of the present invention, when the protocol update system receives the update protocol file of the protocol to be updated from the protocol data repository, it obtains the update protocol identifier, the server identifier of the server corresponding to the update protocol, the data structure and deserialization strategy of the update protocol included in the update protocol file, and generates an index field corresponding to the update protocol file based on the update protocol identifier, the server identifier, and the update time of the update protocol. The index field, the data structure and deserialization strategy of the update protocol file are stored in the memory of the protocol update system. The target protocol of the corresponding service can be determined from several protocols through the index field. Then, the protocol file corresponding to the update time is found from several protocol files of the target protocol through the update time in the index field. The data stored at the corresponding time is deserialized through the deserialization strategy of the protocol file. This reduces human intervention and realizes automatic update of the protocol. It also eliminates the need to frequently modify the source code of the updated protocol after the update. Different update files of the target protocol can coexist. When an update file needs to be called, the corresponding update file can be found through the index field for deserialization operation.
[0077] Embodiments of the present invention also provide a computer program product including program code, which, when the program product is run on an electronic device, causes the electronic device to perform the steps of the methods described above in various exemplary embodiments of the present invention.
[0078] Furthermore, although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.
[0079] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, mobile terminal, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0080] In an exemplary embodiment of this disclosure, an electronic device capable of implementing the above-described method is also provided.
[0081] Those skilled in the art will understand that various aspects of the present invention can be implemented as systems, methods, or program products. Therefore, various aspects of the present invention can be specifically implemented in the following forms: entirely hardware implementations, entirely software implementations (including firmware, microcode, etc.), or implementations combining hardware and software aspects, collectively referred to herein as “circuits,” “modules,” or “systems.”
[0082] An electronic device according to this embodiment of the invention. The electronic device is merely an example and should not be construed as limiting the functionality or scope of the embodiments of the invention.
[0083] Electronic devices are manifested in the form of general-purpose computing devices. Components of an electronic device may include, but are not limited to: at least one processor, at least one memory, and buses connecting different system components (including memory and processor).
[0084] The storage device stores program code that can be executed by the processor to perform the steps described in the "Exemplary Methods" section above, according to various exemplary embodiments of the present invention.
[0085] The storage may include readable media in the form of volatile storage, such as random access memory (RAM) and / or cache memory, and may further include read-only memory (ROM).
[0086] The storage may also include programs / utilities having a set (at least one) of program modules, including but not limited to: an operating system, one or more applications, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0087] A bus can represent one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus that uses any of the various bus architectures.
[0088] Electronic devices can also communicate with one or more external devices (such as keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable users to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (such as routers, modems, etc.). This communication can be performed through input / output (I / O) interfaces. Furthermore, electronic devices can also communicate with one or more networks (such as local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapters.
[0089] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0090] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the methods described above is stored. In some possible embodiments, various aspects of the invention may also be implemented as a program product comprising program code that, when the program product is run on a terminal device, causes the terminal device to perform the steps of the various exemplary embodiments of the invention described in the "Exemplary Methods" section of this specification.
[0091] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0092] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0093] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0094] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0095] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.
[0096] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0097] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A protocol serialization update method, characterized by, The application is applied to a protocol updating system connected with a protocol data storage library, wherein data files of a plurality of protocols are stored in the protocol data storage library, and the data files include data structures and deserialization strategies of corresponding protocols. The method comprises the following steps: In step S100, in response to receiving a to-be-updated protocol file of a to-be-updated protocol sent by the protocol data storage library, a to-be-updated protocol identifier corresponding to the to-be-updated protocol, a service end identifier of a service end corresponding to the to-be-updated protocol, a data structure and a deserialization strategy of the to-be-updated protocol included in the to-be-updated protocol file are obtained. In step S200, an index field corresponding to the to-be-updated protocol file is generated according to the to-be-updated protocol identifier, the service end identifier and an update time of the to-be-updated protocol. In step S300, the index field corresponding to the to-be-updated protocol file, the data structure and the deserialization strategy of the to-be-updated protocol are stored in a memory of the protocol updating system. The protocol updating system is further configured to perform the following steps: In step S010, when receiving to-be-transmitted data, a data protocol identifier and a data service identifier of the to-be-transmitted data are obtained. In step S020, a target protocol is determined from a plurality of protocols according to the data protocol identifier and the data service identifier of the to-be-transmitted data. In step S030, a key protocol file is determined from a plurality of target protocol files of the target protocol according to a generation time of the to-be-transmitted data. In step S040, a target deserialization strategy of the target protocol included in the key protocol file is obtained. In step S050, the to-be-transmitted data is deserialized according to the target deserialization strategy.
2. The method of claim 1, wherein, The protocol data storage library is configured to perform the following steps: In step S101, in response to receiving a protocol PB file sent by a service end, the protocol PB file is stored in the protocol data storage library, wherein the protocol PB file includes an update time, a data structure and a deserialization strategy of a to-be-updated protocol. In step S102, a to-be-updated protocol file is generated according to the data structure and the deserialization strategy of the to-be-updated protocol. In step S103, the to-be-updated protocol file and a to-be-updated protocol identifier corresponding to the to-be-updated protocol, a service end identifier of the service end and the update time of the to-be-updated protocol are sent to the protocol updating system.
3. The method of claim 2, wherein, The protocol updating system comprises a protocol class loader. The step S100 comprises the following steps: In step S110, when receiving a to-be-updated protocol file of a to-be-updated protocol, the to-be-updated protocol file is converted into a target protocol file written in a preset program language according to the preset program language. In step S120, the target protocol file is loaded by reflection through the protocol class loader, and a data structure and a deserialization strategy of the to-be-updated protocol included in the target protocol file are obtained.
4. The method of claim 3, wherein, The step S200 comprises the following steps: In step S210, an update time of the to-be-updated protocol is obtained. Step S220, generating an index field of the to-be-updated protocol file according to the server identifier, the to-be-updated protocol identifier, and the update time of the to-be-updated protocol in sequence.
5. The method of claim 1, wherein, The step S020 comprises: Step S021, obtaining a plurality of index fields stored in the memory of the protocol updating system to obtain an index field list A=(A1, A2,..., An); A=(Ai, Ai); wherein i=1, 2,..., n; n is the number of index fields stored in the memory of the protocol updating system; Ai is the i-th index field stored in the memory of the protocol updating system; A is the server identifier included in Ai; A is the protocol identifier included in Ai. i n i i1 i2 i i1 i i2 i Step S022, traversing the index field list A, if A i1 =A 01 , and A i2 =A 02 , then the i-th index field corresponding protocol is determined as the target protocol; wherein A 01 is the data service identifier of the data to be transmitted; A 02 is the data protocol identifier of the data to be transmitted.
6. The method of claim 5, wherein, The step S030 comprises: Step S031, acquiring the generation time t0 of the to-be-transmitted data; Step S032: Obtain the update time from the index fields of several target protocol files corresponding to the target protocol, and obtain an update time list B=(B1,B2,...,B j ,...,B m ); where j=1,2,...,m; m is the number of target protocol files corresponding to the target protocol; B j The update time is the index field corresponding to the j-th target protocol file of the target protocol; Step S033, according to the time increasing order, B1, B2,..., B j are sorted to obtain a sorted time list C=(C1, C2,..., C m ); wherein C j is the jth updated time after increasing sorting. m j Step S034, traversing the sorted time list C, if C j ≤ t0 < C j+1 , then C j The corresponding target protocol file is determined as the key protocol file.
7. The method of claim 6, wherein, The update time of the to-be-updated protocol is the time when the protocol data repository receives the protocol PB file corresponding to the to-be-updated protocol. 8.A non-transitory computer readable storage medium having stored therein at least one instruction or at least one piece of program, characterized in that, The at least one instruction or the at least one program is loaded and executed by the processor to implement the protocol serialization update method as claimed in any one of claims 1-7.
9. An electronic device, comprising: The non-transitory computer-readable storage medium as claimed in claim 8 and the processor.
Citation Information
Patent Citations
Method and apparatus for updating Internet of Things protocol
CN107948005A
Data updating method and device, computer equipment, readable storage medium and product
CN116661834A