Routing rule updating method, device, equipment, medium and product
By automatically judging and remotely updating routing rules after powering on the vehicle gateway, using cloud data and preset verification algorithms, the problem of low routing rules update efficiency in the existing technology is solved, and more efficient and reliable routing rules updates are achieved.
Patent Information
- Application Number
- CN202411201988.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-10
AI Technical Summary
In the prior art, routing rules are updated inefficient and time-consuming, especially in the development and after-sales stages of on-board controllers, routing rules are changed through diagnostic equipment update gateway controller software or OTA technology, which is complex and time-consuming.
After the gateway of the target vehicle is powered on, it will automatically determine whether to update the routing rules, and remote configuration updates are performed through cloud data. The preset verification algorithm is used to obtain the feature value to be checked and the feature value of the latest rules. When the difference is made, it will be obtained from the cloud. The latest routing rule data is updated.
Improve the download efficiency and reliability of routing rules, simplify the update process, and avoid the complexity and time consumption of OTA upgrades.
Smart Images

Figure CN119109857A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of automobile technology, and in particular to a routing rule updating method, device, equipment, medium and product. Background Art
[0002] At present, with the acceleration of vehicle model iteration, the development pace of vehicle controllers is getting faster and faster. As the in-vehicle network communication hub, the central gateway controller needs to meet the data exchange requirements of various controllers in the vehicle. Routing rules change frequently during the development and after-sales stages. Under current technical conditions, routing rule changes are generally achieved by updating the gateway controller software through diagnostic equipment during the development stage, and routing rule updates are achieved by including routing rules in the OTA (Over the Air Technology) upgrade task during the after-sales stage. The above methods are complex and time-consuming for updating routing rules, and the update efficiency is low. Summary of the invention
[0003] The embodiments of the present invention provide a routing rule updating method, apparatus, device, medium and product, which can automatically determine whether to update the routing rules after power-on, and remotely configure and update the routing rules according to cloud data when the routing rules need to be updated, thereby improving the efficiency and reliability of routing rule downloading.
[0004] In a first aspect, an embodiment of the present invention provides a method for updating routing rules, the method comprising:
[0005] After the gateway of the target vehicle is powered on, determine the preset routing rule storage area in an activated state, and obtain the routing rule data to be verified in the preset routing rule storage area in an activated state;
[0006] Based on the preset verification algorithm, the routing rule data to be verified is verified and calculated to obtain the corresponding characteristic value to be verified;
[0007] Obtain the latest rule verification feature value from the cloud, and when the latest rule verification feature value is different from the feature value to be verified, obtain the latest routing rule data corresponding to the latest rule verification feature value from the cloud to complete the routing rule update;
[0008] The latest rule verification characteristic value is determined by verifying and calculating the latest routing rule data through a preset verification algorithm.
[0009] In a second aspect, an embodiment of the present invention provides a routing rule updating device, the device comprising:
[0010] The to-be-verified routing data acquisition module is used to determine the preset routing rule storage area in an activated state after the gateway of the target vehicle is powered on, and to acquire the to-be-verified routing rule data in the preset routing rule storage area in an activated state;
[0011] The feature value calculation module to be verified is used to perform verification calculation on the routing rule data to be verified based on a preset verification algorithm to obtain the corresponding feature value to be verified;
[0012] The routing rule update module is used to obtain the latest rule verification feature value from the cloud, and when the latest rule verification feature value is different from the feature value to be verified, obtain the latest routing rule data corresponding to the latest rule verification feature value from the cloud to complete the routing rule update;
[0013] The latest rule verification characteristic value is determined by verifying and calculating the latest routing rule data through a preset verification algorithm.
[0014] In a third aspect, an embodiment of the present invention further provides a computer device, the computer device comprising:
[0015] one or more processors;
[0016] A memory for storing one or more programs;
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the routing rule updating method provided by any embodiment of the present invention.
[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a routing rule updating method as provided in any embodiment of the present invention.
[0019] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements a routing rule updating method as provided in any embodiment of the present invention.
[0020] The embodiments of the above invention have the following advantages or beneficial effects:
[0021] The embodiment of the present invention determines the preset routing rule storage area in the activated state after the gateway of the target vehicle is powered on, and obtains the routing rule data to be verified; based on the preset verification algorithm, the routing rule data to be verified is verified and calculated to obtain the corresponding characteristic value to be verified; the latest rule verification characteristic value on the cloud is obtained, and when the latest rule verification characteristic value is different from the characteristic value to be verified, the latest routing rule data corresponding to the latest rule verification characteristic value is obtained from the cloud to complete the routing rule update. The technical solution of the embodiment of the present invention solves the problem of low efficiency and long time consumption of routing rule update in the prior art. It can automatically determine whether to update the routing rules after power-on, and remotely configure and update according to the cloud data when the routing rules need to be updated, thereby improving the efficiency and reliability of routing rule download. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 is a flow chart of a routing rule updating method provided by an embodiment of the present invention;
[0023] Figure 2 is a flow chart of a routing rule updating method provided by an embodiment of the present invention;
[0024] Figure 3 is a schematic diagram of a routing rule updating method provided by an embodiment of the present invention;
[0025] Figure 4 It is a structural diagram of a routing rule updating device provided by an embodiment of the present invention;
[0026] Figure 5 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0028] Figure 1 A flowchart of a method for updating routing rules provided in an embodiment of the present invention is applicable to the scenario of updating routing rules of a car. The method can be executed by a routing rule updating device, which can be implemented by software and / or hardware and integrated into a computer device with application development function.
[0029] like Figure 1 As shown, the routing rule updating method of this embodiment includes the following steps:
[0030] S110. After the gateway of the target vehicle is powered on, determine the preset routing rule storage area in an activated state, and obtain the routing rule data to be verified in the preset routing rule storage area in an activated state.
[0031] In this embodiment, an independent preset routing rule storage area is designed inside the gateway, which is only used to store routing rules. The routing rules can be a routing table binary file. The working state of the preset routing rule storage area can include two states: activated and inactivated, which can be determined by an identifier corresponding to the working state. After the gateway of the target vehicle is powered on, the preset routing rule storage area in the activated state is automatically determined, and the routing rule data in the preset routing rule storage area in the activated state is used as the routing rule data to be verified. The routing rule data to be verified cannot be directly read into the random access memory (RAM, Random Access Memory), nor can it be imported into the routing function module for operation after parsing the random access memory, but must be verified first to determine that it is the latest routing rule data.
[0032] S120: Based on a preset verification algorithm, a verification calculation is performed on the routing rule data to be verified to obtain a corresponding characteristic value to be verified.
[0033] The preset verification algorithm may be a hash algorithm, which may include but is not limited to MD5 (Message Digest Algorithm 5, message digest algorithm fifth version) and SHA-256 (Secure Hash Algorithm 256-bit secure hash algorithm 256-bit) and the like.
[0034] The routing rule data to be verified is verified and calculated to obtain the corresponding characteristic value to be verified.
[0035] The routing rule data to be verified is calculated into a corresponding feature value to be verified through MD5, and the feature value to be verified can be a 32-bit hexadecimal number. The routing rule data to be verified is calculated into a corresponding feature value to be verified through SHA-256, and the feature value to be verified can be a 256-bit hash value.
[0036] S130, obtaining the latest rule verification feature value from the cloud, and when the latest rule verification feature value is different from the feature value to be verified, obtaining the latest routing rule data corresponding to the latest rule verification feature value from the cloud to complete the routing rule update.
[0037] The latest rule verification characteristic value is determined by verifying and calculating the latest routing rule data through a preset verification algorithm.
[0038] When the routing rules need to be updated, the routing rule designer in the backend of the cloud TSP (Telematics Service Provider, the server-side system of the telematics service provider) uploads the latest routing rule data after the change and the latest rule verification feature value corresponding to the latest routing rule data to the backend of the cloud TSP. The latest rule verification feature value is determined by verifying and calculating the latest routing rule data using the same preset verification algorithm as the one used to calculate the feature value to be verified.
[0039] The routing rule data is synchronized to the cloud TSP background, and written into the routing rule storage area after verification. The next time the gateway of the target vehicle is powered on, it will read and parse the latest updated routing rule data in a dynamic loading manner, and realize the function of the latest routing rule data.
[0040] When updating the routing rules in this embodiment, it is only necessary to remotely upload the new routing rule data, i.e., the routing table file, to the cloud backend. No other operations are required, and the operation process is simple and convenient. The routing rule data is stored and loaded independently, and other functions of the gateway will not be affected. Compared with OTA (Over-the-Air Technology) upgrades, the upgrade content only includes routing rules, the upgrade file is small, and there is no need to issue upgrade tasks. The gateway controller actively queries and synchronizes the background.
[0041] The technical solution of this embodiment is to determine the preset routing rule storage area in an activated state after the gateway of the target vehicle is powered on, and obtain the routing rule data to be verified in the preset routing rule storage area in an activated state; based on the preset verification algorithm, verify and calculate the routing rule data to be verified to obtain the corresponding characteristic value to be verified; obtain the latest rule verification characteristic value in the cloud, and when the latest rule verification characteristic value is different from the characteristic value to be verified, obtain the latest routing rule data corresponding to the latest rule verification characteristic value from the cloud to complete the routing rule update; wherein, the latest rule verification characteristic value is determined by verifying and calculating the latest routing rule data through the preset verification algorithm. The technical solution of the embodiment of the present invention solves the problems of low efficiency and long time consumption of routing rule update in the prior art, and can automatically determine whether to update the routing rules after power-on, and remotely configure and update according to the cloud data when the routing rules need to be updated, thereby improving the efficiency and reliability of routing rule download.
[0042] Figure 2A flowchart of a routing rule updating method provided in an embodiment of the present invention, this embodiment and the routing rule updating method in the above embodiment belong to the same inventive concept, and further describes the process of obtaining the latest routing rule data corresponding to the latest rule verification feature value from the cloud to complete the routing rule update. The method can be executed by a routing rule updating device, which can be implemented by software and / or hardware and integrated in a computer device with application development function.
[0043] like Figure 2 As shown, the process of obtaining the client log content in the routing rule updating method of this embodiment includes the following steps:
[0044] S210: After the gateway of the target vehicle is powered on, determine the preset routing rule storage area in an activated state, and obtain the routing rule data to be verified in the preset routing rule storage area in an activated state.
[0045] S220: Based on a preset verification algorithm, a verification calculation is performed on the routing rule data to be verified to obtain a corresponding characteristic value to be verified.
[0046] S230, obtaining the latest rule verification feature value from the cloud, and when the latest rule verification feature value is different from the feature value to be verified, downloading the latest routing rule data from the cloud.
[0047] S240: When the download is successful, the latest routing rule data is stored in a preset routing rule storage area that is in an inactivated state.
[0048] The latest routing rule data is stored in a preset routing rule storage area in an inactive state, and after being read into the RAM, the latest routing rule data is parsed and run in the routing function module.
[0049] In an optional implementation, the latest routing rule data is stored in a preset routing rule storage area in an inactivated state. The to-be-confirmed rule verification characteristic value corresponding to the latest routing rule data may be calculated according to a preset verification algorithm. When the latest rule verification characteristic value and the to-be-confirmed rule verification characteristic value are the same, the latest routing rule data is stored in a preset routing rule storage area in an inactivated state.
[0050] It can be understood that in order to ensure that the downloaded routing rule data is exactly the same as the latest routing rule data, the check feature value of the to-be-confirmed rule corresponding to the latest routing rule data is calculated according to the preset check algorithm. If the check feature value of the latest rule is the same as the check feature value of the to-be-confirmed rule, it means that the routing rule data is exactly the same as the latest routing rule data, and the latest routing rule data is stored in the preset routing rule storage area in an inactive state. If they are not the same, the latest routing rule data is downloaded again.
[0051] S250: Change the working state of the preset routing rule storage area in an inactivated state to an activated state.
[0052] S260: Change the working state of the preset routing rule storage area in the activated state to the inactivated state.
[0053] like Figure 3 As shown, the gateway and the cloud TSP backend can communicate through the vehicle terminal T-BOX. In the preset chip inside the gateway, such as the preset Flash (non-volatile storage chip), at least two independent preset routing rule storage areas are allocated for routing rule data. Figure 3 The preset routing rule storage area A and the preset routing rule storage area B are used to prevent special circumstances from occurring when updating and writing routing rule data, such as unstable power supply, which may cause routing rule data to be lost and the gateway cannot work properly. In these two storage areas, there will be flags indicating the working status of the preset routing rule storage area. The working status may include an activated state and an inactivated state. The activated state corresponds to flag 1, and the inactivated state corresponds to flag 2. It is used to indicate whether the routing rule data stored in this storage area is activated. When updating the routing rules, the latest updated routing rule data will be written to the inactivated storage area, and the flag position will be set to 1, and the flag position of the original activated storage area will be set to 0. Each time the gateway is powered on, the routing rule data with the activation flag bit set to 1, that is, the routing table partition data, will be read into the RAM, and after parsing, it will be imported into the routing function module of the gateway for operation.
[0054] In an optional implementation, when the download is unsuccessful, the working state of the preset routing rule storage area is not changed.
[0055] In the case of unsuccessful download, such as when the network is unstable during the download process, or when the gateway is powered off, the original working state of the preset routing rule storage area is maintained without change. Thus, after the network is restored or the gateway is powered on, the download process is continued. In addition, when the network instability lasts for more than a preset time threshold, the routing rule data stored in the preset routing rule storage area in the activated state can be directly read and run.
[0056] In an optional implementation, the number of preset routing rule storage areas is at least two, including at least one preset routing rule storage area in an activated state and at least one preset routing rule storage area in an inactivated state.
[0057] The technical solution of this embodiment is to determine the preset routing rule storage area in the activated state after the gateway of the target vehicle is powered on, and obtain the routing rule data to be verified in the preset routing rule storage area in the activated state; based on the preset verification algorithm, perform verification calculation on the routing rule data to be verified to obtain the corresponding characteristic value to be verified; obtain the latest rule verification characteristic value in the cloud, and when the latest rule verification characteristic value is different from the characteristic value to be verified, download the latest routing rule data in the cloud; if the download is successful, store the latest routing rule data in the preset routing rule storage area in the inactivated state; change the working state of the preset routing rule storage area in the inactivated state to the activated state. The technical solution of the embodiment of the present invention solves the problems of low efficiency and long time consumption of routing rule update in the prior art, can automatically determine whether to update routing rules after power-on, and remotely configure and update according to cloud data when routing rules need to be updated, store routing rule information through an independent routing rule storage area, and update routing rules by changing the working state, so as to avoid the influence of update failure on routing function, and improve the efficiency and reliability of routing rule download.
[0058] Figure 4 This is a schematic diagram of the structure of a routing rule updating device provided in an embodiment of the present invention. This embodiment is applicable to the scenario of updating the routing rules of a car. The routing rule updating device can be implemented by software and / or hardware and integrated into a computer terminal device with application development function.
[0059] like Figure 4 As shown, the routing rule updating device includes: a routing data acquisition module 310 to be verified, a characteristic value calculation module 320 to be verified, and a routing rule updating module 330.
[0060] Among them, the routing data acquisition module 310 is used to determine the preset routing rule storage area in the activated state after the gateway of the target vehicle is powered on, and obtain the routing rule data to be verified in the preset routing rule storage area in the activated state; the characteristic value calculation module 320 to be verified is used to verify and calculate the routing rule data to be verified based on the preset verification algorithm to obtain the corresponding characteristic value to be verified; the routing rule update module 330 is used to obtain the latest rule verification characteristic value from the cloud, and when the latest rule verification characteristic value is different from the characteristic value to be verified, obtain the latest routing rule data corresponding to the latest rule verification characteristic value from the cloud to complete the routing rule update; wherein, the latest rule verification characteristic value is determined by verifying and calculating the latest routing rule data through the preset verification algorithm.
[0061] The technical solution of this embodiment is to determine the preset routing rule storage area in an activated state after the gateway of the target vehicle is powered on, and obtain the routing rule data to be verified in the preset routing rule storage area in an activated state; based on the preset verification algorithm, verify and calculate the routing rule data to be verified to obtain the corresponding characteristic value to be verified; obtain the latest rule verification characteristic value in the cloud, and when the latest rule verification characteristic value is different from the characteristic value to be verified, obtain the latest routing rule data corresponding to the latest rule verification characteristic value from the cloud to complete the routing rule update; wherein, the latest rule verification characteristic value is determined by verifying and calculating the latest routing rule data through the preset verification algorithm. The technical solution of the embodiment of the present invention solves the problems of low efficiency and long time consumption of routing rule update in the prior art, and can automatically determine whether to update the routing rules after power-on, and remotely configure and update according to the cloud data when the routing rules need to be updated, thereby improving the efficiency and reliability of routing rule download.
[0062] In an optional implementation, the routing rule updating module 330 is specifically used for:
[0063] Download the latest routing rule data in the cloud; if the download is successful, store the latest routing rule data in a preset routing rule storage area that is in an inactivated state; change the working state of the preset routing rule storage area that is in an inactivated state to an activated state.
[0064] In an optional implementation, the routing rule updating module 330 is further used to:
[0065] Change the working state of the preset routing rule storage area in the activated state to the inactivated state.
[0066] In an optional implementation, the routing rule updating module 330 is further used to:
[0067] The check characteristic value of the rule to be confirmed corresponding to the latest routing rule data is calculated according to the preset check algorithm; when the check characteristic value of the latest rule is the same as the check characteristic value of the rule to be confirmed, the latest routing rule data is stored in the preset routing rule storage area in an inactivated state.
[0068] In an optional implementation, the routing rule updating module 330 is further used to:
[0069] In case of unsuccessful download, the working state of the preset routing rule storage area is not changed.
[0070] In an optional implementation, the number of preset routing rule storage areas is at least two, including at least one preset routing rule storage area in an activated state and at least one preset routing rule storage area in an inactivated state.
[0071] The routing rule updating device provided in the embodiment of the present invention can execute the routing rule updating method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0072] Figure 5 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Figure 5 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention. The computer device 12 can be any terminal device with computing capabilities, such as an intelligent controller and server, a mobile phone and other terminal devices.
[0073] like Figure 5 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0074] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0075] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0076] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0077] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0078] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RFID systems, tape drives, and data backup storage systems.
[0079] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing the routing rule updating method provided in the embodiment of the present invention, the method comprising:
[0080] After the gateway of the target vehicle is powered on, determine the preset routing rule storage area in an activated state, and obtain the routing rule data to be verified in the preset routing rule storage area in an activated state;
[0081] Based on the preset verification algorithm, the routing rule data to be verified is verified and calculated to obtain the corresponding characteristic value to be verified;
[0082] Obtain the latest rule verification feature value from the cloud, and when the latest rule verification feature value is different from the feature value to be verified, obtain the latest routing rule data corresponding to the latest rule verification feature value from the cloud to complete the routing rule update;
[0083] The latest rule verification characteristic value is determined by verifying and calculating the latest routing rule data through a preset verification algorithm.
[0084] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for updating routing rules provided in any embodiment of the present invention is implemented. The method includes:
[0085] After the gateway of the target vehicle is powered on, determine the preset routing rule storage area in an activated state, and obtain the routing rule data to be verified in the preset routing rule storage area in an activated state;
[0086] Based on the preset verification algorithm, the routing rule data to be verified is verified and calculated to obtain the corresponding characteristic value to be verified;
[0087] Obtain the latest rule verification feature value from the cloud, and when the latest rule verification feature value is different from the feature value to be verified, obtain the latest routing rule data corresponding to the latest rule verification feature value from the cloud to complete the routing rule update;
[0088] The latest rule verification characteristic value is determined by verifying and calculating the latest routing rule data through a preset verification algorithm.
[0089] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0090] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0091] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0092] Computer program code for performing the operation of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, Python, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0093] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements a routing rule updating method as provided in any embodiment of the present application.
[0094] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, Python, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0095] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0096] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A routing rule updating method, characterized in that: include: After the gateway of the target vehicle is powered on, determining the preset routing rule storage area in an activated state, and obtaining the routing rule data to be verified in the preset routing rule storage area in the activated state; Based on a preset verification algorithm, the routing rule data to be verified is verified and calculated to obtain a corresponding characteristic value to be verified; Obtaining the latest rule verification feature value from the cloud, and when the latest rule verification feature value is different from the feature value to be verified, obtaining the latest routing rule data corresponding to the latest rule verification feature value from the cloud to complete the routing rule update; The latest rule verification characteristic value is determined by verifying and calculating the latest routing rule data using the preset verification algorithm.
2. The method according to claim 1, characterized in that The obtaining the latest routing rule data corresponding to the latest rule verification feature value from the cloud to complete the routing rule update includes: Downloading the latest routing rule data in the cloud; If the download is successful, the latest routing rule data is stored in a preset routing rule storage area that is in an inactivated state; The working state of the preset routing rule storage area in the inactivated state is changed to the activated state.
3. The method according to claim 2, characterized in that After changing the working state of the preset routing rule storage area in the inactive state to the active state, the method further includes: The working state of the preset routing rule storage area in the activated state is changed to an inactivated state.
4. The method according to claim 2, characterized in that: The storing of the latest routing rule data in a preset routing rule storage area in an inactivated state includes: Calculate the check characteristic value of the rule to be confirmed corresponding to the latest routing rule data according to the preset check algorithm; In the case where the latest rule verification characteristic value is the same as the to-be-confirmed rule verification characteristic value, the latest routing rule data is stored in a preset routing rule storage area that is in an inactivated state.
5. The method according to claim 2, characterized in that: The method further comprises: In the case where the download is unsuccessful, the working state of the preset routing rule storage area is not changed.
6. The method according to any one of claims 1 to 5, characterized in that: The number of the preset routing rule storage areas is at least two, including at least one preset routing rule storage area in an activated state and at least one preset routing rule storage area in an inactivated state.
7. A routing rule updating device, characterized in that: include: A routing data acquisition module to be verified, used to determine the preset routing rule storage area in an activated state after the gateway of the target vehicle is powered on, and to obtain the routing rule data to be verified in the preset routing rule storage area in the activated state; A characteristic value calculation module to be verified, used to perform verification calculation on the routing rule data to be verified based on a preset verification algorithm to obtain a corresponding characteristic value to be verified; A routing rule updating module, used to obtain the latest rule verification feature value from the cloud, and when the latest rule verification feature value is different from the feature value to be verified, obtain the latest routing rule data corresponding to the latest rule verification feature value from the cloud to complete the routing rule update; The latest rule verification characteristic value is determined by verifying and calculating the latest routing rule data using the preset verification algorithm.
8. A computer device, characterized in that: The computer device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the routing rule updating method as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the routing rule updating method as described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the routing rule updating method as described in any one of claims 1 to 6.
Citation Information
Cited By
Gateway routing method and device, electronic equipment and medium
CN122120197A
