Method and device for improving expansibility of remote control module of car networking system

By abstracting remote control processing instructions into policy classes and injecting remote control modules into the Internet of Vehicles system, the problem of transforming the original functions when adding remote control instructions is solved, and the system maintainability and scalability is improved.

CN119536699APending Publication Date: 2025-02-28CHERY AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411637317.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The existing remote control module of the Internet of Vehicles system needs to be modified when adding remote control instructions, resulting in poor code readability, high risk and poor scalability.

Method used

By abstracting the remote control processing instructions into a policy class and instantiating the policy class with an automatic constructor, the policy number and instantiated policy class are injected into the remote control module of the Internet of Vehicles system.

Benefits of technology

Reduces maintenance workload caused by modifying existing code, improves system maintainability and flexibility, and enhances system scalability and performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536699A_ABST
    Figure CN119536699A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Internet of Vehicles, in particular to a method and device for improving the expansibility of a remote control module of an Internet of Vehicles system, and the method comprises the steps: obtaining a newly-added remote control processing instruction; the remote control processing instruction is abstracted into a strategy class, a strategy number corresponding to the strategy class is created, and the strategy class inherits from a common abstract base class; instantiating the strategy class based on the automatic constructor, and injecting the strategy number and the instantiated strategy class into a remote control module of the Internet of Vehicles system. Therefore, the problems of poor code readability, high risk, poor expansibility and the like due to the fact that the original function needs to be modified when a remote control instruction is newly added in the related technology are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle networking technology, and in particular to a method and device for improving the scalability of a remote control module of a vehicle networking system. Background Art

[0002] The remote control module is the core function of the entire system, acting as a bridge between the car owner and the vehicle. It is the most frequently used module with the richest functions and the most modifications and additions. As new models are constantly added to the system, each model may have a unique remote control instruction set, which requires the system to have a high degree of adaptability and expansion capabilities. Therefore, improving the remote control module to improve development efficiency, enhance the system's modifiability and reduce long-term maintenance costs has become a task of great practical significance.

[0003] In related technologies, remote control functions are usually implemented through a series of complex conditional judgment logic. As the number of supported vehicle models increases, the number of these conditional judgment statements increases dramatically, resulting in a significant decrease in the readability and maintainability of the code. Whenever a new remote control instruction needs to be added, the existing code must be modified, which not only increases the risk of introducing errors, but also violates the "open-closed principle" in software engineering, that is, closed modifications. In addition, a system may be modified and maintained by multiple people at the same time, which is prone to code merge conflicts, poor scalability, and high testing complexity. Summary of the invention

[0004] The present application provides a method and device for improving the scalability of a remote control module of a connected vehicle system, so as to solve the problems in the related art that when adding a new remote control instruction, the original function needs to be modified, and there are problems such as poor code readability, high risk and poor scalability.

[0005] The first aspect of the present application provides a method for improving the scalability of a remote control module of a vehicle networking system, comprising the following steps: obtaining newly added remote control processing instructions; abstracting the remote control processing instructions into a policy class, and creating a policy number corresponding to the policy class, wherein the policy class inherits from a common abstract base class; instantiating the policy class based on an automatic constructor, and injecting the policy number and the instantiated policy class into the remote control module of the vehicle networking system.

[0006] Optionally, injecting the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system includes: adding the policy number in a configuration file of the Internet of Vehicles system to identify the instantiated policy class as a remote control processing policy that is allowed to be used.

[0007] Optionally, before obtaining the newly added remote control processing instructions, it also includes: creating a factory class, the factory class includes: a first mapping table, a second mapping table and a target set, wherein the first mapping table stores all policy numbers and policy class instances in the form of key-value pairs, the second mapping table stores the allowed policy numbers and policy class instances filtered out from the first mapping table, and the target set stores the allowed policy numbers.

[0008] Optionally, after injecting the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system, it also includes: obtaining the user's remote control instructions; determining the target policy number according to the remote control instructions, querying the second mapping table according to the target policy number to determine the policy class instance, and executing the policy class instance to implement the remote control instructions.

[0009] Optionally, the abstract base class contains at least one abstract method, and the strategy class inherits the abstract base class to implement the abstract method.

[0010] Optionally, before injecting the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system, it also includes: performing a functional test on the instantiated policy class.

[0011] The second aspect of the present application provides a device for improving the scalability of a remote control module of a vehicle networking system, including: a first acquisition module, used to acquire newly added remote control processing instructions; a processing module, used to abstract the remote control processing instructions into a policy class, and create a policy number corresponding to the policy class, wherein the policy class inherits from a common abstract base class; an extension module, used to instantiate the policy class based on an automatic constructor, and inject the policy number and the instantiated policy class into the remote control module of the vehicle networking system.

[0012] Optionally, the extension module is further used to: add a policy number to a configuration file of the Internet of Vehicles system to identify the instantiated policy class as a remote control processing policy that is allowed to be used.

[0013] Optionally, the device for improving the scalability of the remote control module of the Internet of Vehicles system also includes: a creation module, used to create a factory class before obtaining the newly added remote control processing instructions, the factory class including: a first mapping table, a second mapping table and a target set, wherein the first mapping table stores all policy numbers and policy class instances in the form of key-value pairs, the second mapping table stores the allowed policy numbers and policy class instances screened out from the first mapping table, and the target set stores the allowed policy numbers.

[0014] Optionally, the device for improving the scalability of the remote control module of the Internet of Vehicles system also includes: a second acquisition module, used to inject the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system, and then obtain the user's remote control instructions; an execution module, used to determine the target policy number according to the remote control instructions, query the second mapping table according to the target policy number to determine the policy class instance, and execute the policy class instance to implement the remote control instructions.

[0015] Optionally, the abstract base class contains at least one abstract method, and the strategy class inherits the abstract base class to implement the abstract method.

[0016] Optionally, the device for improving the scalability of the remote control module of the Internet of Vehicles system also includes: a testing module, which is used to perform functional testing on the instantiated policy class before injecting the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system.

[0017] The third aspect of the present application provides a server, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the program to implement a method for improving the scalability of a remote control module of a vehicle networking system as described in the above embodiment.

[0018] The fourth aspect of the present application provides a computer-readable storage medium on which a computer program or instruction is stored. When the computer program or instruction is executed, it is used to implement the method for improving the scalability of the remote control module of the Internet of Vehicles system as described in the above embodiment.

[0019] The fifth aspect of the present application provides a computer program product, including: a computer program or instructions, which, when executed, implements the method for improving the scalability of the remote control module of the Internet of Vehicles system as described in the above embodiment.

[0020] Therefore, this application has at least the following beneficial effects:

[0021] The embodiment of the present application can reduce the maintenance workload caused by modifying the existing code by abstracting the remote control processing instruction into a policy class, using the automatic constructor to instantiate the policy class, and injecting the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system, which not only improves the maintainability and flexibility of the system, but also enhances the scalability and performance of the system. Thus, the problems in the related art that when adding a new remote control instruction, the original function needs to be modified, and there are problems such as poor code readability, high risk and poor scalability are solved.

[0022] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0024] Figure 1 A flowchart of a method for improving the scalability of a remote control module of a vehicle networking system provided according to an embodiment of the present application;

[0025] Figure 2 A relationship class diagram of an extended remote control module provided according to an embodiment of the present application;

[0026] Figure 3 is a block diagram of a device for improving the scalability of a remote control module of a vehicle networking system according to an embodiment of the present application;

[0027] Figure 4 Schematic diagram of the structure of a server according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0029] The following describes the method and device for improving the scalability of the remote control module of the Internet of Vehicles system according to the embodiment of the present application with reference to the accompanying drawings. In response to the problems mentioned in the above background technology, the present application provides a method for improving the scalability of the remote control module of the Internet of Vehicles system. In this method, by abstracting the remote control processing instructions into a policy class, and using the automatic constructor to instantiate the policy class, and injecting the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system, the maintenance workload caused by modifying the existing code is reduced, which not only improves the maintainability and flexibility of the system, but also enhances the scalability and performance of the system. As a result, the problems in the related technology that when adding new remote control instructions, the original functions need to be modified, and there are problems such as poor code readability, high risk and poor scalability are solved.

[0030] Specifically, Figure 1 A flowchart of a method for improving the scalability of a remote control module of a connected vehicle system provided in an embodiment of the present application.

[0031] like Figure 1 As shown, the method for improving the scalability of the remote control module of the Internet of Vehicles system includes the following steps:

[0032] In step S101, a newly added remote control processing instruction is obtained.

[0033] It is understandable that the remote control module is the core component of the Internet of Vehicles system, acting as a bridge between the car owner and the vehicle. With the development of Internet of Vehicles technology and the diversification of user needs, its functions need to be continuously updated and expanded. On the one hand, each new car may be equipped with different on-board hardware and software to support new functions or improve existing functions. In order to support these new models, corresponding remote control processing instructions need to be added to control these new functions. On the other hand, as the living standards of users improve, users want to remotely control more aspects of the vehicle, such as remote start, preheating / cooling, locking / unlocking doors, etc. In order to meet these needs, the system needs to be able to quickly add new remote control instructions to implement these new functions.

[0034] In one embodiment of the present application, before obtaining the newly added remote control processing instructions, it also includes: creating a factory class, the factory class includes: a first mapping table, a second mapping table and a target set, wherein the first mapping table stores all policy numbers and policy class instances in the form of key-value pairs, the second mapping table stores the allowed policy numbers and policy class instances filtered out from the first mapping table, and the target set stores the allowed policy numbers.

[0035] In the embodiments of the present application, Figure 2 The upper right AfterContext shown in the figure plays the role of the strategy context class. This class provides a process method, which is called by the principle remote control module to execute the remote control processing logic. The input eventData encapsulates the remote control number and the specific content of the cached remote control instruction. It contains an AfterFactory reference. Using this factory class, the corresponding remote control instruction processing class can be created according to the input eventData, and the method of the processing class is called to actually execute the remote control instruction. AfterStrategy is an abstract base class that acts as the strategy abstract interface of the strategy pattern. This class contains an abstract method doAfter(). Any specific remote control business class in the embodiment of the present application needs to inherit this abstract class and override the doAfter() method to process its own real remote control logic. Another isFinishSuceess() method is the processing of some common codes. Here is the judgment of the remote control status. This method will be called in the strategy context, and the doAfter business processing will only be performed for the remote control instructions that have been processed. As a result, it is avoided that each remote control strategy class has to repeat such a judgment logic. The AfterFactory class plays the role of a factory method and is used to create a strategy. This class contains three attributes: strategyMaps first mapping table, strategyNameMap second mapping table, and strategyNames target collection.

[0036] Among them, Map<String,AfterStrategy> strategyMaps is injected through the @Autoworied annotation. Using springboot's automatic constructor injection, all subclasses of AfterStragegy will be automatically injected into this map. strategyNameMap is the map that will actually be used in the application. It will obtain the strategy bean for processing this remote control according to the remote control number. strategyNames is a storage configuration strategy, that is, the remote control allowed by this system, which is used to increase the flexibility of the system. Not all remote controls need to be processed, but the strategies we allow can be configured. When the function is initialized, according to the remote control number configured in strategyNames, the strategies we need are filtered out from strategyMaps and stored in strategyNameMap for the actual use of the system. This factory method, based on the remote control number, uses the fast query feature of the hash map to directly obtain the strategy bean corresponding to the remote control, completing the decoupling between the object creation logic and the business code.

[0037] In step S102, the remote control processing instruction is abstracted into a policy class, and a policy number corresponding to the policy class is created, wherein the policy class inherits from a common abstract base class.

[0038] The abstract base class contains at least one abstract method, and the strategy class inherits the abstract base class to implement the abstract method.

[0039] It can be understood that the embodiments of the present application can abstract remote control processing into individual strategies, use strategy patterns to improve the maintainability of the system, isolate different vehicle control processes, and use a common abstract base class to process common content to reduce duplicate code.

[0040] In step S103, the strategy class is instantiated based on the automatic constructor, and the strategy number and the instantiated strategy class are injected into the remote control module of the Internet of Vehicles system.

[0041] It is understandable that before injecting the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system, the present application can perform functional testing on the instantiated policy class. The test only needs to test the newly added class. The newly added content has no effect on the original system, which reduces the difficulty of testing. At the same time, it elegantly eliminates a large number of IF ELSE judgment branch codes, improving the readability and maintainability of the program.

[0042] Specifically, the policy number and the instantiated policy class are injected into the remote control module of the Internet of Vehicles system, including: adding the policy number in the configuration file of the Internet of Vehicles system to identify the instantiated policy class as a remote control processing policy that is allowed to be used. This makes it simple to add new instructions without interfering with the stability of the existing system. By creating a new policy class and registering it with the system, new functions can be easily added without modifying the existing code base. This not only improves the flexibility of the system, but also reduces maintenance costs, and ensures the stability and reliability of the system.

[0043] Furthermore, after the policy number and the instantiated policy class are injected into the remote control module of the Internet of Vehicles system, it also includes: obtaining the user's remote control instructions; determining the target policy number according to the remote control instructions, querying the second mapping table according to the target policy number to determine the policy class instance, and executing the policy class instance to implement the remote control instructions.

[0044] It is understandable that the embodiments of the present application can send remote control instructions to the Internet of Vehicles system through mobile applications, web pages or other means. The instructions usually include a specific remote control number (strategy number) and other necessary parameters, such as vehicle identifier, executed operations, etc. When the Internet of Vehicles system receives the user's remote control instruction, it first parses the remote control number in the instruction, uses the target strategy number obtained by the parsing, and searches for the corresponding AfterStrategy instance in strategyNameMap. Among them, strategyNameMap is a mapping that has been filtered according to the configuration. It associates the remote control number with the corresponding strategy class instance. In this way, the system can quickly locate the correct processing logic without traversing all possible strategies.

[0045] Furthermore, once a matching AfterStrategy instance is found, the system will call the doAfter() method of the instance to execute specific business logic. The doAfter() method contains the specific implementation of processing a specific type of remote control instruction.

[0046] The following is a detailed description of the method for improving the scalability of the remote control module of the Internet of Vehicles system according to the embodiment of the present application with reference to specific examples, including the following aspects:

[0047] Create the EventData class, which encapsulates the remote control message, remote control number, and cached remote control object.

[0048] Create an abstract class AfterStrategy, which implements some common contents of remote control operations, such as remote control operation status judgment, etc. Open an abstract method doAfter, which is used by various specific remote control subclasses to implement specific business functions.

[0049] Create an AfterFactory factory class, which caches all strategy classes that can handle remote control through springboot constructor injection and configuration files. At the same time, it provides a factory method for the context environment class to call and obtain the strategy bean.

[0050] Create an AfterContext class, which provides a method. This method obtains remote control information based on EventData, calls the factory class to obtain the strategy bean for handling this remote control based on the remote control number, executes the business functions implemented by the bean itself, and truly handles the remote control business. This method replaces the large number of bloated if else statements in the original system. The system only needs to be modified once, and the encapsulated beans passed in can be reused all the time. No matter whether the remote control function is added or modified in the future, there is no need to modify it again.

[0051] Specifically, the embodiment of the present application takes a newly added remote control process as an example. For example, according to the TBOX protocol, a new remote control process for the pet mode is to be added, and the remote control number is 5A0F. First, according to the naming convention, a strategy class for the remote control process is created, and the name starts with Strategy and is added with the remote control number: Strategy5A0F. As long as this class inherits the abstract class AfterStrategy, the business content of the pet mode is overwritten in the doAfter method, and finally the configuration of this remote control number is added to the configuration file to complete the processing of adding a new remote control signal.

[0052] It should be noted that different R&D personnel in the embodiments of the present application can develop in parallel and only focus on their newly created remote control functions, which are isolated from each other. They do not even need to understand how these strategies are used inside the program. They can simply create a remote control processing function by simply defining the strategy rules, which greatly reduces the difficulty and cost of research and development. At the same time, if the system blocks certain operations, you only need to remove the encoding of this remote control signal in the configuration. Compared with the previous modification of the newly added IFELSE, the conflict between the merged codes and the introduction of unknown errors, the architectural model of the embodiments of the present application can elegantly improve scalability and maintainability. It naturally conforms to the "open and closed principle" and can flexibly switch and add new remote control signals without modifying the original system. The code is concise, maintainable and readable.

[0053] According to the method for improving the scalability of the remote control module of the Internet of Vehicles system proposed in the embodiment of the present application, by abstracting the remote control processing instructions into a policy class, using the automatic constructor to instantiate the policy class, and injecting the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system, the maintenance workload caused by modifying the existing code is reduced, which not only improves the maintainability and flexibility of the system, but also enhances the scalability and performance of the system. As a result, the problems in the related technology that when adding remote control instructions, the original functions need to be modified, and there are problems such as poor code readability, high risk and poor scalability are solved.

[0054] Next, a device for improving the scalability of a remote control module of a connected vehicle system according to an embodiment of the present application will be described with reference to the accompanying drawings.

[0055] Figure 3 It is a block diagram of a device for improving the scalability of a remote control module of a vehicle networking system according to an embodiment of the present application.

[0056] like Figure 3 As shown, the device 10 for improving the expansibility of the remote control module of the Internet of Vehicles system includes: a first acquisition module 100, a processing module 200 and an expansion module 300.

[0057] Among them, the first acquisition module 100 is used to obtain the newly added remote control processing instructions; the processing module 200 is used to abstract the remote control processing instructions into a policy class and create a policy number corresponding to the policy class, wherein the policy class inherits from a common abstract base class; the extension module 300 is used to instantiate the policy class based on the automatic constructor, and inject the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system.

[0058] In one embodiment of the present application, the extension module is further used 300 to add a policy number to a configuration file of the Internet of Vehicles system to identify the instantiated policy class as a remote control processing policy that is allowed to be used.

[0059] In one embodiment of the present application, the device 10 for improving the scalability of the remote control module of the Internet of Vehicles system also includes: a creation module, which is used to create a factory class before obtaining the newly added remote control processing instructions, and the factory class includes: a first mapping table, a second mapping table and a target set, wherein the first mapping table stores all policy numbers and policy class instances in the form of key-value pairs, the second mapping table stores the allowed policy numbers and policy class instances screened out from the first mapping table, and the target set stores the allowed policy numbers.

[0060] In one embodiment of the present application, the device 10 for improving the scalability of the remote control module of the Internet of Vehicles system also includes: a second acquisition module, which is used to inject the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system, and then obtain the user's remote control instructions; an execution module, which is used to determine the target policy number according to the remote control instructions, query the second mapping table according to the target policy number to determine the policy class instance, and execute the policy class instance to implement the remote control instructions.

[0061] In one embodiment of the present application, the abstract base class includes at least one abstract method, and the strategy class inherits the abstract base class to implement the abstract method.

[0062] In one embodiment of the present application, the device for improving the scalability of the remote control module of the Internet of Vehicles system also includes: a testing module, which is used to perform functional testing on the instantiated policy class before injecting the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system.

[0063] It should be noted that the aforementioned explanation of the method embodiment for improving the scalability of the remote control module of the Internet of Vehicles system is also applicable to the device for improving the scalability of the remote control module of the Internet of Vehicles system of this embodiment, and will not be repeated here.

[0064] According to the device for improving the scalability of the remote control module of the Internet of Vehicles system proposed in the embodiment of the present application, by abstracting the remote control processing instructions into a policy class, using the automatic constructor to instantiate the policy class, and injecting the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system, the maintenance workload caused by modifying the existing code is reduced, which not only improves the maintainability and flexibility of the system, but also enhances the scalability and performance of the system. As a result, the problems in the related art that when adding remote control instructions, the original functions need to be modified, and there are problems such as poor code readability, high risk and poor scalability.

[0065] Figure 4 A schematic diagram of the structure of a server provided in an embodiment of the present application. The server may include:

[0066] Memory 401 , processor 402 , and a computer program stored in the memory 401 and executable on the processor 402 .

[0067] When the processor 402 executes the program, the method for improving the scalability of the remote control module of the Internet of Vehicles system provided in the above embodiment is implemented.

[0068] Furthermore, the server also includes:

[0069] The communication interface 403 is used for communication between the memory 401 and the processor 402 .

[0070] The memory 401 is used to store computer programs that can be executed on the processor 402 .

[0071] The memory 401 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0072] If the memory 401, the processor 402 and the communication interface 403 are implemented independently, the communication interface 403, the memory 401 and the processor 402 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0073] Optionally, in a specific implementation, if the memory 401, the processor 402 and the communication interface 403 are integrated on a chip, the memory 401, the processor 402 and the communication interface 403 can communicate with each other through an internal interface.

[0074] The processor 402 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0075] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above method for improving the scalability of a remote control module of a vehicle networking system.

[0076] The embodiment of the present application also provides a computer program product, including: a computer program or instructions, which, when executed, implements the method for improving the scalability of the remote control module of the Internet of Vehicles system as described in the above embodiment.

[0077] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0078] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0079] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0080] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.

[0081] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0082] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for improving the scalability of a remote control module of a vehicle networking system, characterized in that: The following steps are involved: Get the newly added remote control processing instructions; Abstracting the remote control processing instruction into a policy class, and creating a policy number corresponding to the policy class, wherein the policy class inherits from a common abstract base class; The strategy class is instantiated based on the automatic constructor, and the strategy number and the instantiated strategy class are injected into the remote control module of the Internet of Vehicles system.

2. The method for improving the scalability of the remote control module of the Internet of Vehicles system according to claim 1, characterized in that: The step of injecting the strategy number and the instantiated strategy class into the remote control module of the Internet of Vehicles system includes: The policy number is added to the configuration file of the Internet of Vehicles system to identify the instantiated policy class as a remote control processing policy that is allowed to be used.

3. The method for improving the scalability of the remote control module of the Internet of Vehicles system according to claim 1, characterized in that: Before obtaining the newly added remote control processing instructions, it also includes: Create a factory class, which includes: a first mapping table, a second mapping table and a target set, wherein the first mapping table stores all policy numbers and policy class instances in the form of key-value pairs, the second mapping table stores the allowed policy numbers and policy class instances screened from the first mapping table, and the target set stores the allowed policy numbers.

4. The method for improving the scalability of the remote control module of the Internet of Vehicles system according to claim 3, characterized in that: After injecting the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system, the method further includes: Obtain the user's remote control instructions; The target policy number is determined according to the remote control instruction, the second mapping table is queried according to the target policy number to determine the policy class instance, and the policy class instance is executed to implement the remote control instruction.

5. The method for improving the scalability of the remote control module of the Internet of Vehicles system according to claim 1, characterized in that: The abstract base class contains at least one abstract method, and the strategy class inherits the abstract base class to implement the abstract method.

6. The method for improving the scalability of the remote control module of the Internet of Vehicles system according to claim 1, characterized in that: Before injecting the policy number and the instantiated policy class into the remote control module of the Internet of Vehicles system, the method further includes: Perform functional testing on the instantiated strategy class.

7. A device for improving the scalability of a remote control module of a vehicle networking system, characterized in that: include: A first acquisition module, used to acquire a newly added remote control processing instruction; A processing module, used for abstracting the remote control processing instruction into a policy class and creating a policy number corresponding to the policy class, wherein the policy class inherits from a common abstract base class; The extension module is used to instantiate the strategy class based on the automatic constructor, and inject the strategy number and the instantiated strategy class into the remote control module of the Internet of Vehicles system.

8. A server, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for improving the scalability of a remote control module of a vehicle networking system as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed, the method for improving the scalability of the remote control module of the Internet of Vehicles system as described in any one of claims 1 to 6 is implemented.

10. A computer program product comprising: A computer program or instruction, characterized in that when the computer program or instruction is executed, it implements the method for improving the scalability of the remote control module of the Internet of Vehicles system as described in any one of claims 1-6.