Method for managing vehicle-mounted hardware equipment, information processing system, vehicle-mounted terminal and storage medium
Through the dynamic library plug-in design, the cloud dynamic library pool is used to download and load dynamic libraries of hardware devices on demand, which solves the complex problem of hardware device management in the vehicle autonomous driving system, achieves efficient and reliable hardware device management, and reduces storage costs. space and power consumption.
Patent Information
- Application Number
- CN202080093037.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-07
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-07-07
AI Technical Summary
The management of hardware devices in existing vehicle autonomous driving systems is complex. There are many types of hardware devices with different parameters, resulting in a wide variety of management and driver programs. Moreover, the CPU, memory and storage space of autonomous vehicles are limited, making it difficult to manage and drive efficiently.
Adopt a dynamic library plug-in design, download and load the required dynamic libraries through the cloud dynamic library pool of the remote server, manage hardware devices on demand, realize plug-in and hot-swapping of dynamic libraries, and reduce storage space occupation and power consumption.
It achieves efficient, reliable, and low-power hardware device management under limited CPU, memory, and storage resources, improves the overall efficiency and reliability of the system, and reduces system operation risks.
Smart Images

Figure CN114938665B
Abstract
Description
Technical Field
[0001] The present application relates to a method for managing vehicle-mounted hardware equipment, an information processing system, a vehicle-mounted terminal and a storage medium. Background Art
[0002] There are many solutions for vehicle autonomous driving, and the vehicle autonomous driving system architecture includes various hardware devices, including but not limited to vehicle controller area network (CAN) wire control, camera, global navigation satellite system (GNSS), inertial measurement unit (IMU), radar, etc. Each type of hardware device has various subcategories. For example, cameras are divided into conventional cameras, wide-angle cameras, traffic light cameras, night vision cameras, etc., and radars are divided into laser radars, solid-state radars, acoustic radars, millimeter-wave radars, etc. Each subcategory has various manufacturers and models, and their corresponding parameters are different. As the computing control center of the embedded software system for vehicle autonomous driving, it is responsible for managing and driving these hardware devices and processing the corresponding data. Summary of the invention
[0003] According to various embodiments disclosed in the present application, a method, an information processing system, a vehicle-mounted terminal, and a storage medium for managing vehicle-mounted hardware devices are provided.
[0004] According to one aspect of the present application, a method for managing vehicle-mounted hardware devices is provided, wherein the vehicle has a plurality of hardware devices and is in communication connection with a remote server, wherein the remote server stores a cloud-based dynamic library pool including a plurality of dynamic libraries corresponding to the plurality of hardware devices, respectively, and the vehicle is adapted to download a required dynamic library from the cloud-based dynamic library pool, wherein the method comprises:
[0005] Obtaining hardware device configuration information of the multiple hardware devices;
[0006] Downloading the plurality of dynamic libraries from the cloud dynamic library pool to the vehicle according to the hardware device configuration information;
[0007] Acquire a first application scenario of the vehicle, and load a first group of dynamic libraries corresponding to a required first group of hardware devices from the downloaded multiple dynamic libraries according to the first group of hardware device configuration information corresponding to the first application scenario; and
[0008] The first group of required hardware devices are managed respectively through the loaded first group of dynamic libraries.
[0009] In one embodiment, the method further comprises:
[0010] A second application scenario of the vehicle is obtained, and according to the second group of hardware device configuration information corresponding to the second application scenario, a second group of dynamic libraries corresponding to the required second group of hardware devices is loaded from the downloaded multiple dynamic libraries.
[0011] In one embodiment, before loading the second group of dynamic libraries corresponding to the required second group of hardware devices from the downloaded multiple dynamic libraries, the method includes:
[0012] Uninstall the first set of dynamic libraries.
[0013] In one embodiment, before loading the second group of dynamic libraries corresponding to the required second group of hardware devices from the downloaded multiple dynamic libraries, the method includes:
[0014] The first set of hardware device configuration information is compared with the second set of hardware device configuration information, and some dynamic libraries in the first set of dynamic libraries that do not correspond to the second set of hardware device configuration information are uninstalled.
[0015] In one embodiment, the first group of hardware devices required for respectively managing the first group of dynamic libraries loaded includes:
[0016] Calling a driver of a corresponding hardware device through each dynamic library in the first group of dynamic libraries;
[0017] The data of the corresponding hardware device is acquired, and the data of the corresponding hardware device is abstracted into interface parameters.
[0018] In one embodiment, the method further comprises:
[0019] The multiple dynamic libraries downloaded from the cloud dynamic library pool to the vehicle are cleared.
[0020] In one embodiment, the plurality of hardware devices include a vehicle controller area network (CAN) wire control, a global navigation satellite system (GNSS), an inertial measurement unit (IMU), a camera, and a radar.
[0021] According to another aspect of the present application, an information processing system for managing vehicle-mounted hardware devices is also provided, wherein the vehicle has a plurality of hardware devices and is in communication connection with a remote server, wherein the remote server stores a cloud-based dynamic library pool including a plurality of dynamic libraries corresponding to the plurality of hardware devices, respectively, and the vehicle is adapted to download a required dynamic library from the cloud-based dynamic library pool, and the information processing system comprises:
[0022] An initialization module, used to obtain hardware device configuration information of the multiple hardware devices;
[0023] A dynamic library acquisition module, used for downloading the plurality of dynamic libraries from the cloud dynamic library pool to the vehicle according to the hardware device configuration information;
[0024] A computing control module is used to obtain a first application scenario of the vehicle, and load a first group of dynamic libraries corresponding to a required first group of hardware devices from the downloaded multiple dynamic libraries according to the configuration information of the first group of hardware devices corresponding to the first application scenario; and is used to manage the required first group of hardware devices respectively through the loaded first group of dynamic libraries.
[0025] According to another aspect of the present application, there is also provided an in-vehicle terminal for managing in-vehicle hardware devices, wherein the vehicle has a plurality of hardware devices and is in communication connection with a remote server, wherein the remote server stores a cloud dynamic library pool including a plurality of dynamic libraries corresponding to the plurality of hardware devices respectively, and the vehicle is adapted to download a required dynamic library from the cloud dynamic library pool, and the in-vehicle terminal comprises a memory and a processor, wherein the memory stores one or more computer executable instructions, and when the one or more computer executable instructions are executed by the processor, the processor performs the following steps:
[0026] Obtaining hardware device configuration information of the multiple hardware devices;
[0027] Downloading the plurality of dynamic libraries from the cloud dynamic library pool to the vehicle according to the hardware device configuration information;
[0028] Acquire a first application scenario of the vehicle, and load a first group of dynamic libraries corresponding to a required first group of hardware devices from the downloaded multiple dynamic libraries according to the first group of hardware device configuration information corresponding to the first application scenario; and
[0029] The first group of required hardware devices are managed respectively through the loaded first group of dynamic libraries.
[0030] According to another aspect of the present application, a non-volatile storage medium for managing vehicle-mounted hardware devices is provided. The vehicle has a plurality of hardware devices and is in communication connection with a remote server. The remote server stores a cloud-based dynamic library pool including a plurality of dynamic libraries corresponding to the plurality of hardware devices respectively. The vehicle is adapted to download a required dynamic library from the cloud-based dynamic library pool. One or more computer-executable instructions are stored in the non-volatile storage medium. When the one or more computer-executable instructions are executed by the processor, the processor performs the following steps:
[0031] Obtaining hardware device configuration information of the multiple hardware devices;
[0032] Downloading the plurality of dynamic libraries from the cloud dynamic library pool to the vehicle according to the hardware device configuration information;
[0033] Acquire a first application scenario of the vehicle, and load a first group of dynamic libraries corresponding to a required first group of hardware devices from the downloaded multiple dynamic libraries according to the first group of hardware device configuration information corresponding to the first application scenario; and
[0034] The first group of required hardware devices are managed respectively through the loaded first group of dynamic libraries.
[0035] According to yet another aspect of the present application, a vehicle is provided, comprising the information processing system of the aforementioned aspect.
[0036] The details of one or more embodiments of the present application are set forth in the following drawings and description. Other features and advantages of the present application will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 It is an application scenario diagram of a method for managing vehicle-mounted hardware devices, an information processing system, a vehicle-mounted terminal, and a storage medium according to one or more embodiments;
[0039] Figure 2 A flowchart of a method for managing vehicle-mounted hardware devices in one embodiment;
[0040] Figure 3 A schematic diagram of a dynamic library change process in one embodiment;
[0041] Figure 4 A flowchart of a method for managing vehicle-mounted hardware devices in another embodiment;
[0042] Figure 5 A flowchart of a method for managing vehicle-mounted hardware devices in another embodiment;
[0043] Figure 6 A schematic diagram of a process for managing a first group of required hardware devices respectively by loading a first group of dynamic libraries in another embodiment;
[0044] Figure 7A flowchart of a method for managing vehicle-mounted hardware devices in another embodiment;
[0045] Figure 8 A schematic block diagram of the structure of an information processing system for managing vehicle-mounted hardware devices in one embodiment;
[0046] Fig. 9 is a schematic block diagram of a storage architecture of an information processing system in one embodiment;
[0047] Fig.10 The present invention is a schematic block diagram of the internal structure of an in-vehicle terminal for managing in-vehicle hardware devices in one embodiment. DETAILED DESCRIPTION
[0048] As described in the background technology section, there are currently a variety of hardware devices for vehicle autonomous driving, and the corresponding management, driving, and data processing programs are diverse, while the onboard CPU, running memory, and storage space of unmanned vehicles are limited. Therefore, this application proposes an efficient, reliable, low-power, and low-cost dynamically loaded plug-in embedded software system architecture.
[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] The various embodiments of the present application are applicable to providing unmanned driving, automatic driving, assisted driving or remote driving solutions for vehicles and even other applicable means of transportation. For the convenience of description, the vehicle is taken as an example below. The vehicle has multiple hardware devices, including but not limited to the vehicle controller area network (CAN) wire control, including but not limited to controlling the throttle, brake, gear, lights, etc.; the global navigation satellite system (GNSS) in this application refers to a GNSS device that uses a global navigation system to obtain three-dimensional coordinate positioning, speed, and time information; an inertial measurement unit (IMU), that is, a device for measuring the three-axis attitude angle (or angular rate) and acceleration of an object; a camera; and a radar, etc. The same category of hardware will also have different types of models. For example, a camera can be any image sensor used to perceive the vehicle's surrounding environment, including but not limited to conventional cameras, wide-angle cameras, traffic light cameras, night vision cameras, object detection artificial intelligence cameras, etc.; a radar can be any radar sensor used to perceive the vehicle's surrounding environment, including but not limited to lidar, solid-state radar, millimeter-wave radar, sonic radar, etc. As Figure 1The vehicle 100 including these hardware devices is connected to the remote server 200 through network communication. The remote server stores a cloud dynamic library pool including multiple dynamic libraries corresponding to multiple hardware devices, which is a container for centralized management and storage of dynamic libraries. The vehicle is suitable for downloading the required dynamic library from the cloud dynamic library pool. The dynamic library is a library program that can be dynamically loaded at runtime of a software execution program. The dynamic library in this application is a dynamic library designed with a plug-in design concept.
[0051] like Figure 2 Flowchart of a method for managing vehicle-mounted hardware devices in one embodiment. An embodiment of the present application provides a method for managing vehicle-mounted hardware devices. The method comprises the following steps:
[0052] Step S10, obtaining hardware device configuration information of multiple hardware devices.
[0053] Specifically, when the vehicle system is initialized, the relevant main program obtains the hardware device configuration information of multiple hardware devices currently configured in the vehicle. For example, the configuration interface parameters of multiple hardware devices are obtained. At this time, no dynamic library is stored in the vehicle's storage device to occupy the local (i.e., the vehicle) storage space. The main program pulls the dependencies of the dynamic library from the remote server to the local storage space when the system is initialized. Figure 3 The change process of the dynamic library in this embodiment is shown, as shown in FIG. Figure 3 As shown, at this time, the remote server cloud dynamic library pool stores the dependencies of dynamic library A, dynamic library B, dynamic library C and dynamic library D corresponding to the four hardware devices A, hardware device B, hardware device C and hardware device D respectively, but no dynamic library is downloaded.
[0054] Step S12, downloading multiple dynamic libraries from the cloud dynamic library pool to the vehicle according to the hardware device configuration information.
[0055] Specifically, the main program downloads the required multiple dynamic libraries from the cloud dynamic library pool of the remote server to the local storage space according to the obtained hardware device configuration information. Since the storage resources of the vehicle are limited, this can reduce the storage space occupied by the vehicle as much as possible. Figure 3 For example, according to the above hardware device configuration information, the hardware devices of this vehicle include hardware device A, hardware device C and hardware device D, so the main program downloads the corresponding dynamic library A, dynamic library C and dynamic library D from the cloud dynamic library pool of the remote server.
[0056] Step S14, obtaining a first application scenario of the vehicle, and loading a first group of dynamic libraries corresponding to the required first group of hardware devices from the downloaded multiple dynamic libraries according to the first group of hardware device configuration information corresponding to the first application scenario.
[0057] Specifically, the main program of the vehicle enters an application scenario. Each application scenario will use a corresponding set of hardware devices, and thus there will be a corresponding set of hardware device configuration information. The hardware device configuration information is used to notify which hardware devices are needed. The hardware device configuration information of this group of hardware devices is sent down, for example, to a plug-in manager, so that these first set of hardware devices are registered in the plug-in manager, and then the first set of dynamic libraries corresponding to the first set of hardware devices are loaded from the local storage space to the memory. Application scenarios may include, for example, unmanned driving, automatic driving, remote driving, assisted driving, and so on. Figure 3 As shown, according to the needs of the first scenario, hardware device A and hardware device C will be used, so dynamic library A and dynamic library C are loaded accordingly. Although the vehicle is equipped with hardware device D, hardware device D will not be used in the first scenario, so although dynamic library D is downloaded, it is not loaded this time.
[0058] Step S16: managing the required first group of hardware devices respectively by loading the first group of dynamic libraries.
[0059] Specifically, one or more dynamic libraries in the first group of dynamic libraries may be queried and called according to the status query interface of the plug-in manager to control one or more corresponding hardware devices in the first group of registered hardware devices, thereby obtaining data of the one or more hardware devices.
[0060] like Figure 2 As shown, according to another embodiment of the present application, the above method further includes:
[0061] Step S18, obtaining a second application scenario of the vehicle, and loading a second group of dynamic libraries corresponding to the required second group of hardware devices from the downloaded multiple dynamic libraries according to the second group of hardware device configuration information corresponding to the second application scenario.
[0062] Specifically, the second application scenario is different from the first application scenario, and the hardware devices required are also different, so it is necessary to obtain a second set of hardware device configuration information corresponding to the second application scenario. The hardware device configuration information of the group of hardware devices is sent down, for example, to the plug-in manager again, so as to register these second set of hardware devices in the plug-in manager, and then load the second set of dynamic libraries corresponding to the second set of hardware devices. Continue to refer to Figure 3 For example, the hardware devices to be used in the second application scenario are hardware device A and hardware device D, so dynamic library A and dynamic library D are loaded accordingly.
[0063] According to the above-mentioned method for managing vehicle-mounted hardware devices, an embedded software system architecture for dynamically loading plug-in dynamic libraries is proposed for the management, driving and data processing of current vehicle hardware devices under the background of limited CPU, memory and storage resources. The system architecture can download dynamic libraries to local storage space on demand, and then load dynamic libraries to memory on demand, realizing the plug-in and hot-swappable dynamic libraries, which saves more memory and local storage space than traditional methods, and thus has the advantages of low power consumption and low cost.
[0064] Figure 4 FIG. 1 is a flow chart of a method for managing vehicle-mounted hardware devices in another embodiment. Figure 4 As shown, in another embodiment, before the step of loading the second group of dynamic libraries corresponding to the required second group of hardware devices from the downloaded multiple dynamic libraries in the above step S18, the following steps are included:
[0065] Step S17A, uninstalling the first group of dynamic libraries.
[0066] Specifically, after one application scenario ends and before another application scenario is started, the dynamic library corresponding to the previous application scenario should be cleaned up to further improve the utilization efficiency of local storage resources. For example, the group of dynamic libraries can be uninstalled in the plug-in manager. In this step, the dynamic libraries A and C loaded in step S14 are all uninstalled, which is equivalent to returning to step S14. Figure 3 The status of the dynamic library in step 12.
[0067] Figure 5 FIG. 1 is a flow chart of a method for managing vehicle-mounted hardware devices in another embodiment. Figure 5 As shown, in another embodiment, before loading the second group of dynamic libraries corresponding to the required second group of hardware devices from the downloaded multiple dynamic libraries in the above step S18, the following steps are included:
[0068] Step S17B: compare the first set of hardware device configuration information with the second set of hardware device configuration information, and uninstall some dynamic libraries in the first set of dynamic libraries that do not correspond to the second set of hardware device configuration information.
[0069] Specifically, as mentioned above, after one application scenario ends and before another application scenario is started, the dynamic library corresponding to the previous application scenario should be cleaned up to further improve the utilization efficiency of local storage resources. However, different application scenarios may use the same hardware devices, so the dynamic libraries of these hardware devices can continue to be used, so there is no need to clear the dynamic libraries of these hardware devices and then download them again. This solution can avoid wasting traffic and speed up response time. For example, in the plug-in manager, uninstall the dynamic libraries that are no longer needed. Continue to refer to Figure 3 In this step, the dynamic library C loaded in step S14 is not used in the new application scenario, so it is uninstalled, while the already loaded dynamic library A continues to be used.
[0070] Figure 6 FIG. 1 is a flow chart of managing the first set of hardware devices required by the first set of dynamic libraries loaded in another embodiment. Figure 6 As shown, according to another embodiment, managing the first group of required hardware devices respectively by loading the first group of dynamic libraries in step S16 specifically includes:
[0071] Step S160, calling a driver of a corresponding hardware device through each dynamic library in the first group of dynamic libraries; and
[0072] Step S162, obtaining data of the corresponding hardware device, and abstracting the data of the corresponding hardware device into interface parameters.
[0073] Specifically, as mentioned above, a dynamic library is a library program that can be dynamically loaded at runtime, rather than a real software program or driver. Each hardware device has its own hardware device driver, which is a software program that drives and controls the hardware device and is also a bridge between the application and the hardware device. The main program can issue commands to the corresponding hardware device through the hardware device driver. The hardware device will generate relevant operating data or status data. The relevant data of each hardware device is different, and the data format applicable to each hardware device may also be different. In order to facilitate unified processing, the data obtained from different hardware devices are abstracted and abstracted into interface parameters.
[0074] Through the solution of the above embodiment, the interfaces of various hardware devices are unified, which improves the efficiency of software and hardware development integration and reduces the operating risk of the system, thus having the advantages of high efficiency and reliability.
[0075] Figure 7 FIG. 1 is a flow chart of a method for managing vehicle-mounted hardware devices in another embodiment. Figure 7 As shown, according to a further embodiment, the above method may further include:
[0076] In step S20, multiple dynamic libraries downloaded from the cloud dynamic library pool to the vehicle are cleared.
[0077] Specifically, when necessary, reset the system and the system will delete multiple dynamic libraries downloaded from the cloud dynamic library pool to the vehicle from the local storage space to reduce local storage usage and restore the system to its original state. Figure 3 In this step, the storage areas used to store dynamic library A, dynamic library B, dynamic library C and dynamic library D are all cleared.
[0078] It should be understood that although Figures 2 to 7 The steps in the flowchart are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps can be executed in other orders. Moreover, Figures 2 to 7 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0079] like Figure 8 As shown, one embodiment of the present application also provides an information processing system for managing vehicle-mounted hardware devices. The corresponding storage architecture of this embodiment can be further referenced Fig. 9 , Fig. 9 The present invention is a schematic block diagram of the storage architecture of an information processing system in one embodiment, wherein the storage architecture of the information processing system includes: a memory 80 having a storage area for running a main program 800 and a cache 802; and a storage device 84 used as a local storage space, wherein the storage space includes a storage area suitable for storing executable instructions 840 and a storage area suitable for storing a dynamic library 842 when the dynamic library is downloaded. Fig. 9 Also shown is a cloud dynamic library pool 82 stored in the remote server 1 and stored in the remote server 1, which is located outside the information processing system and cooperates with the memory 80 and the storage device 84. The information processing system includes:
[0080] The initialization module 10 is used to obtain hardware device configuration information of multiple hardware devices.
[0081] Specifically, when the information processing system is initialized, the relevant main program 800 obtains the hardware device configuration information of multiple hardware devices currently configured in the vehicle. For example, it obtains the configuration interface parameters of multiple hardware devices. At this time, no dynamic library is stored in the local storage space. Fig. 9 As shown, the main program pulls the dependencies of the dynamic library from the remote server 100 to the storage device 84 when the system is initialized. Figure 3 The change process of the dynamic library in the embodiment of the information processing system is shown as follows: Figure 3As shown, at this time, the remote server cloud dynamic library pool stores the dependencies of dynamic library A, dynamic library B, dynamic library C and dynamic library D corresponding to the four hardware devices A, hardware device B, hardware device C and hardware device D respectively, but no dynamic library is downloaded.
[0082] The dynamic library acquisition module 12 is used to download multiple dynamic libraries from the cloud dynamic library pool to the vehicle according to the hardware device configuration information.
[0083] Specifically, the main program 800 obtains the hardware device configuration information and refers to Fig. 9 As shown, the required multiple dynamic libraries are downloaded from the cloud dynamic library pool 82 of the remote server 100 to the storage device 84. Since the storage resources of the vehicle are limited, this can reduce the storage space occupied by the vehicle as much as possible. Figure 3 According to the above hardware device configuration information, the hardware devices of this vehicle include hardware device A, hardware device C and hardware device D, so the main program downloads the corresponding dynamic library A, dynamic library C and dynamic library D from the cloud dynamic library pool of the remote server.
[0084] The computing control module 14 is used to obtain a first application scenario of the vehicle, and load a first group of dynamic libraries corresponding to the required first group of hardware devices from the downloaded multiple dynamic libraries according to the first group of hardware device configuration information corresponding to the first application scenario; and to manage the required first group of hardware devices respectively through the loaded first group of dynamic libraries.
[0085] Specifically, the main program of the vehicle enters an application scenario. Each application scenario will use a corresponding set of hardware devices, and thus have a corresponding set of hardware device configuration information. The hardware device configuration information is used to notify which hardware devices are needed. The computing control module 14 sends the hardware device configuration information of the set of hardware devices, for example, to a plug-in manager 15, so as to register these first set of hardware devices in the plug-in manager 15, and then Fig. 9 As shown, the first group of dynamic libraries corresponding to the first group of hardware devices are loaded from the storage device 84 to the memory 80. Application scenarios may include, for example, unmanned driving, automatic driving, remote driving, assisted driving, and the like. Figure 3 As shown, according to the needs of the first scenario, hardware device A and hardware device C will be used, so dynamic library A and dynamic library C are loaded accordingly. Although the vehicle is equipped with hardware device D, hardware device D will not be used in the first scenario, so although dynamic library D is downloaded, it is not loaded this time.
[0086] In addition, one or more dynamic libraries in the first group of dynamic libraries may be queried and called according to the status query interface of the plug-in manager 15 to control one or more corresponding hardware devices in the registered first group of hardware devices, thereby obtaining data of the one or more hardware devices.
[0087] As shown, according to one embodiment, the computing control module 14 is also used to obtain a second application scenario of the vehicle, and based on the second group of hardware device configuration information corresponding to the second application scenario, register a second group of hardware devices required for the second application scenario from multiple hardware devices, and load a second group of dynamic libraries corresponding to the required second group of hardware devices from the downloaded multiple dynamic libraries.
[0088] Specifically, the second application scenario is different from the first application scenario, and the hardware devices required are also different, so it is necessary to obtain a second set of hardware device configuration information corresponding to the second application scenario. The hardware device configuration information of the group of hardware devices is sent, for example, to the plug-in manager 15 again, so that the second set of hardware devices are registered in the plug-in manager 15, and then the second set of dynamic libraries corresponding to the second set of hardware devices are loaded. Figure 3 For example, the hardware devices to be used in the second application scenario are hardware device A and hardware device D, so dynamic library A and dynamic library D are loaded accordingly.
[0089] According to the above-mentioned method for managing vehicle-mounted hardware devices, an embedded software system architecture for dynamically loading plug-in dynamic libraries is proposed for the management, driving and data processing of current vehicle hardware devices under the background of limited CPU, memory and storage resources. The system architecture can download dynamic libraries to local storage space on demand, and then load dynamic libraries to memory on demand, realizing the plug-in and hot-swappable dynamic libraries, which saves more memory and local storage space than traditional methods, and thus has the advantages of low power consumption and low cost.
[0090] According to one embodiment, Figure 8 As shown, the calculation control module 14 specifically includes:
[0091] The application scenario comparison unit 140 is used to compare the first set of hardware device configuration information with the second set of hardware device configuration information before loading the second set of dynamic libraries corresponding to the required second set of hardware devices from the downloaded multiple dynamic libraries, and unload some dynamic libraries in the first set of dynamic libraries that do not correspond to the second set of hardware device configuration information.
[0092] Specifically, as mentioned above, after one application scenario ends and before another application scenario is started, the dynamic library corresponding to the previous application scenario should be cleaned up to further improve the utilization efficiency of local storage resources. However, different application scenarios may use the same hardware devices, so the dynamic libraries of these hardware devices can continue to be used, so there is no need to clear the dynamic libraries of these hardware devices and then download them again. This solution can avoid wasting traffic and speed up response time. For example, in the plug-in manager, uninstall the dynamic libraries that are no longer needed. Continue to refer to Figure 3 In this operation, the dynamic library C previously loaded in the computing control module 14 is not used in the new application scenario, so it is unloaded, while the already loaded dynamic library A continues to be used.
[0093] like Figure 8 As shown, in one embodiment, the computing control module 14 further includes:
[0094] The unified data processing interface 142 is used to call the driver of the corresponding hardware device through each dynamic library in the first group of dynamic libraries, obtain the data of the corresponding hardware device, and abstract the data of the corresponding hardware device into interface parameters.
[0095] Specifically, as mentioned above, a dynamic library is a library program that can be dynamically loaded at runtime, rather than a real software program or driver. Each hardware device has its own hardware device driver, which is a software program that drives and controls the hardware device and is also a bridge between the application and the hardware device. Figure 8 As shown, the computing control module 14 can issue commands to the corresponding hardware devices through the hardware device driver. For example, Class A represents a camera, Class B represents a GNSS, etc., and the description method of Class A Type 1 Type 2 is used to express different types of hardware of the same category. For example, Class A Type 1 represents a wide-angle camera of a certain manufacturer, and Class N Type N represents a night vision camera of another manufacturer. The hardware device will generate relevant operating data or status data. The relevant data of each hardware device is different, and the data format applicable to each hardware device may also be different. In order to facilitate unified processing, the data of different hardware devices obtained in the computing control module 14 are all abstracted and abstracted into interface parameters.
[0096] Through the solution of the above embodiment, the interfaces of various hardware devices are unified, which improves the efficiency of software and hardware development integration and reduces the operating risk of the system, thus having the advantages of high efficiency and reliability.
[0097] For other limitations on the information processing system for managing vehicle-mounted hardware devices, please refer to the limitations on the method for managing vehicle-mounted hardware devices mentioned above, which will not be repeated here. Each module in the above-mentioned information processing system can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0098] The embodiment of the present application also provides an in-vehicle terminal for managing in-vehicle hardware devices, wherein the vehicle has multiple hardware devices and is in communication connection with a remote server, wherein the remote server stores a cloud dynamic library pool including multiple dynamic libraries corresponding to the multiple hardware devices, respectively, and the vehicle is adapted to download the required dynamic library from the cloud dynamic library pool, and the in-vehicle terminal includes a memory and a processor, wherein the memory stores one or more computer executable instructions, and when the one or more computer executable instructions are executed by the processor, the processor executes the steps of the method of the above embodiment. The details will not be repeated here.
[0099] The embodiment of the present application also provides a non-volatile storage medium for managing vehicle-mounted hardware devices, wherein the vehicle has multiple hardware devices and is in communication connection with a remote server, the remote server stores a cloud dynamic library pool including multiple dynamic libraries corresponding to the multiple hardware devices, the vehicle is suitable for downloading the required dynamic library from the cloud dynamic library pool, and the non-volatile storage medium stores one or more computer executable instructions, and when the one or more computer executable instructions are executed by a processor, the processor executes the steps of the method of the above embodiment. The details are not repeated here.
[0100] Fig.10 A schematic block diagram of the internal structure of a vehicle-mounted terminal for managing vehicle-mounted hardware devices in an embodiment is shown. The vehicle-mounted terminal includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the vehicle-mounted terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer executable program. The internal memory provides an environment for the operation of the operating system and the computer executable program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer executable program is executed by the processor, a method for managing vehicle-mounted hardware devices is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc. Those skilled in the art can understand that Fig.10The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0101] An embodiment of the present application further provides a vehicle, which includes the information processing system or vehicle-mounted terminal of each embodiment, and can implement the methods of each of the above embodiments.
[0102] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer executable program, and the computer executable program can be stored in a non-volatile computer-readable storage medium. When the computer executable program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0103] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0104] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for managing vehicle-mounted hardware devices, wherein the vehicle has a plurality of hardware devices and is in communication connection with a remote server, wherein the remote server stores a cloud-based dynamic library pool including a plurality of dynamic libraries corresponding to the plurality of hardware devices, and the vehicle is adapted to download a required dynamic library from the cloud-based dynamic library pool, characterized in that: The method comprises: Obtaining hardware device configuration information of the multiple hardware devices; Downloading the plurality of dynamic libraries from the cloud dynamic library pool to the vehicle according to the hardware device configuration information; Acquire a first application scenario of the vehicle, and load a first group of dynamic libraries corresponding to a required first group of hardware devices from the downloaded multiple dynamic libraries according to the first group of hardware device configuration information corresponding to the first application scenario; and The first group of required hardware devices are managed respectively through the loaded first group of dynamic libraries.
2. The method according to claim 1, characterized in that: Also includes: A second application scenario of the vehicle is obtained, and according to the second group of hardware device configuration information corresponding to the second application scenario, a second group of dynamic libraries corresponding to the required second group of hardware devices is loaded from the downloaded multiple dynamic libraries.
3. The method according to claim 2, characterized in that The step of loading the second group of dynamic libraries corresponding to the required second group of hardware devices from the downloaded multiple dynamic libraries includes: Uninstall the first set of dynamic libraries.
4. The method according to claim 2, characterized in that: The step of loading the second group of dynamic libraries corresponding to the required second group of hardware devices from the downloaded multiple dynamic libraries includes: The first set of hardware device configuration information is compared with the second set of hardware device configuration information, and some dynamic libraries in the first set of dynamic libraries that do not correspond to the second set of hardware device configuration information are uninstalled.
5. The method according to claim 1, characterized in that The first group of hardware devices required for respectively managing the first group of dynamic libraries loaded include: Calling a driver of a corresponding hardware device through each dynamic library in the first group of dynamic libraries; The data of the corresponding hardware device is acquired, and the data of the corresponding hardware device is abstracted into interface parameters.
6. The method according to claim 1, characterized in that The method further comprises: The multiple dynamic libraries downloaded from the cloud dynamic library pool to the vehicle are cleared.
7. The method according to claim 1, characterized in that The multiple hardware devices include vehicle controller area network (CAN) wire control, global navigation satellite system (GNSS), inertial measurement unit (IMU), camera and radar.
8. An information processing system for managing vehicle-mounted hardware devices, wherein the vehicle has a plurality of hardware devices and is in communication connection with a remote server, wherein the remote server stores a cloud-based dynamic library pool including a plurality of dynamic libraries corresponding to the plurality of hardware devices, and the vehicle is adapted to download a required dynamic library from the cloud-based dynamic library pool, characterized in that: The information processing system comprises: An initialization module, used to obtain hardware device configuration information of the multiple hardware devices; A dynamic library acquisition module, used for downloading the plurality of dynamic libraries from the cloud dynamic library pool to the vehicle according to the hardware device configuration information; A computing control module is used to obtain a first application scenario of the vehicle, and load a first group of dynamic libraries corresponding to a required first group of hardware devices from the downloaded multiple dynamic libraries according to the first group of hardware device configuration information corresponding to the first application scenario, and to manage the required first group of hardware devices respectively through the loaded first group of dynamic libraries.
9. The information processing system according to claim 8, characterized in that: The computing control module is also used to obtain a second application scenario of the vehicle, and based on the second group of hardware device configuration information corresponding to the second application scenario, register a second group of hardware devices required for the second application scenario from the multiple hardware devices, and load a second group of dynamic libraries corresponding to the required second group of hardware devices from the downloaded multiple dynamic libraries.
10. The information processing system according to claim 9, characterized in that: The computing control module further includes: An application scenario comparison unit is used to compare the first set of hardware device configuration information with the second set of hardware device configuration information before loading the second set of dynamic libraries corresponding to the required second set of hardware devices from the multiple downloaded dynamic libraries, and to unload some dynamic libraries in the first set of dynamic libraries that do not correspond to the second set of hardware device configuration information.
11. The information processing system according to claim 8, characterized in that: The computing control module further includes: The unified data processing interface is used to call the driver of the corresponding hardware device through each dynamic library in the first group of dynamic libraries, and to obtain the data of the corresponding hardware device and abstract the data of the corresponding hardware device into interface parameters.
12. An in-vehicle terminal for managing in-vehicle hardware devices, wherein the vehicle has a plurality of hardware devices and is in communication connection with a remote server, wherein the remote server stores a cloud dynamic library pool including a plurality of dynamic libraries corresponding to the plurality of hardware devices, wherein the vehicle is adapted to download a required dynamic library from the cloud dynamic library pool, wherein the in-vehicle terminal comprises a memory and a processor, wherein the memory stores one or more computer executable instructions, wherein: When the one or more computer executable instructions are executed by the processor, the processor performs the following steps: Obtaining hardware device configuration information of the multiple hardware devices; Downloading the plurality of dynamic libraries from the cloud dynamic library pool to the vehicle according to the hardware device configuration information; Acquire a first application scenario of the vehicle, and load a first group of dynamic libraries corresponding to a required first group of hardware devices from the downloaded multiple dynamic libraries according to the first group of hardware device configuration information corresponding to the first application scenario; as well as The first group of required hardware devices are managed respectively through the loaded first group of dynamic libraries.
13. The vehicle-mounted terminal according to claim 12, characterized in that: When the one or more computer executable instructions are executed by the processor, the processor further causes the processor to perform the following steps: A second application scenario of the vehicle is obtained, and according to the second group of hardware device configuration information corresponding to the second application scenario, a second group of dynamic libraries corresponding to the required second group of hardware devices is loaded from the downloaded multiple dynamic libraries.
14. The vehicle-mounted terminal according to claim 13, characterized in that: The step of loading the second group of dynamic libraries corresponding to the required second group of hardware devices from the downloaded multiple dynamic libraries includes: The first set of hardware device configuration information is compared with the second set of hardware device configuration information, and some dynamic libraries in the first set of dynamic libraries that do not correspond to the second set of hardware device configuration information are uninstalled.
15. The vehicle-mounted terminal according to claim 12, characterized in that: The first group of hardware devices required for respectively managing the first group of dynamic libraries loaded include: Calling a driver of a corresponding hardware device through each dynamic library in the first group of dynamic libraries; and The data of the corresponding hardware device is acquired, and the data of the corresponding hardware device is abstracted into interface parameters.
16. A non-volatile storage medium for managing vehicle-mounted hardware devices, wherein the vehicle has a plurality of hardware devices and is in communication connection with a remote server, wherein the remote server stores a cloud-based dynamic library pool including a plurality of dynamic libraries corresponding to the plurality of hardware devices, wherein the vehicle is adapted to download a required dynamic library from the cloud-based dynamic library pool, wherein the non-volatile storage medium stores one or more computer executable instructions, wherein: When the one or more computer executable instructions are executed by the processor, the processor performs the following steps: Obtaining hardware device configuration information of the multiple hardware devices; Downloading the plurality of dynamic libraries from the cloud dynamic library pool to the vehicle according to the hardware device configuration information; Acquire a first application scenario of the vehicle, and load a first group of dynamic libraries corresponding to a required first group of hardware devices from the downloaded multiple dynamic libraries according to the first group of hardware device configuration information corresponding to the first application scenario; as well as The first group of required hardware devices are managed respectively through the loaded first group of dynamic libraries.
17. The storage medium according to claim 16, characterized in that When the one or more computer executable instructions are executed by the processor, the processor further causes the processor to perform the following steps: A second application scenario of the vehicle is obtained, and according to the second group of hardware device configuration information corresponding to the second application scenario, a second group of dynamic libraries corresponding to the required second group of hardware devices is loaded from the downloaded multiple dynamic libraries.
18. The storage medium according to claim 17, characterized in that The step of loading the second group of dynamic libraries corresponding to the required second group of hardware devices from the downloaded multiple dynamic libraries includes: The first set of hardware device configuration information is compared with the second set of hardware device configuration information, and some dynamic libraries in the first set of dynamic libraries that do not correspond to the second set of hardware device configuration information are uninstalled.
19. The storage medium according to claim 17, characterized in that The first group of hardware devices required for respectively managing the first group of dynamic libraries loaded include: Calling a driver of a corresponding hardware device through each dynamic library in the first group of dynamic libraries; and The data of the corresponding hardware device is acquired, and the data of the corresponding hardware device is abstracted into interface parameters.
20. A vehicle, characterized in that: An information processing system comprising the information processing system of claim 8.
