Disclosure of Invention
The invention mainly aims to provide a configuration method and a configuration device of a vehicle-mounted system, which are convenient for differential configuration.
In order to achieve the above object, the present invention provides a configuration method of an on-board system, including:
when the vehicle-mounted system is started, automatically searching whether the vehicle-mounted system is connected with a plug-in device;
if yes, importing a first configuration file appointed in the plug-in equipment, wherein the first configuration file is a configuration file generated when other vehicle-mounted systems learn appointed configuration;
loading the first configuration file in the vehicle-mounted system.
Further, the first configuration file is a file for configuring one or more of a startup logo, a virtual key and a screen coordinate parameter in the vehicle-mounted system.
Further, the step of importing the first configuration file specified in the plug-in device into the vehicle-mounted system includes:
searching the first configuration file in the plug-in equipment according to a preset path;
and copying the searched first configuration file into the vehicle-mounted system.
Further, before the step of copying the found first configuration file to the vehicle-mounted system, the method includes:
judging whether the first configuration file is matched with the version of the current vehicle-mounted system;
and if so, generating an import command for importing the first configuration file.
Further, after the step of determining whether the version of the first configuration file matches the version of the current vehicle-mounted system, the method includes:
and if not, generating reminding information and displaying the reminding information on a display interface of the vehicle-mounted system.
Further, before the step of copying the found first configuration file to the vehicle-mounted system, the method includes:
acquiring a check code of the first configuration file;
judging whether the first configuration file is loaded by the vehicle-mounted system or not according to the check code;
and if not, generating an import command for importing the first configuration file.
Further, after the step of loading the first configuration file in the vehicle-mounted system, the method includes:
and generating a second configuration file which can be exported to the plug-in device according to the new configuration learned by the vehicle-mounted system.
The invention also provides a configuration device of the vehicle-mounted system, which comprises the following components:
the searching unit is used for automatically searching whether the vehicle-mounted system is connected with the plug-in equipment or not when the vehicle-mounted system is started;
the external device comprises an importing unit, a configuration unit and a configuration unit, wherein the importing unit is used for importing a first configuration file appointed in the external device if the external device is found, and the first configuration file is a configuration file generated when other vehicle-mounted systems learn appointed configuration;
and the loading unit loads the first configuration file in the vehicle-mounted system.
Further, the first configuration file is a file for configuring one or more of a startup logo, a virtual key and a screen coordinate parameter in the vehicle-mounted system.
Further, the import unit includes:
the searching module is used for searching the first configuration file in the plug-in equipment according to a preset path;
and the copying module is used for copying the searched first configuration file into the vehicle-mounted system.
Further, the import unit includes:
the first judgment module is used for judging whether the version of the first configuration file is matched with that of the current vehicle-mounted system;
and the first generation module is used for generating an import command for importing the first configuration file if the first configuration file is matched with the version of the current vehicle-mounted system.
Further, the import unit includes:
and the display module is used for generating reminding information and displaying the reminding information on a display interface of the vehicle-mounted system if the first configuration file is not matched with the version of the current vehicle-mounted system.
Further, the import unit includes:
the acquisition module is used for acquiring the check code of the first configuration file;
the second judgment module is used for judging whether the first configuration file is loaded in the vehicle-mounted system or not according to the check code;
and the second generation module is used for generating an import command for importing the first configuration file if the first configuration file is not loaded by the vehicle-mounted system.
Further, the configuration device of the vehicle-mounted system further comprises:
and the learning configuration unit is used for generating a second configuration file which can be exported to the plug-in equipment according to the new configuration learned by the vehicle-mounted system.
According to the configuration method and device of the vehicle-mounted system, the vehicle-mounted system automatically searches the first configuration file designated in the plug-in equipment when the vehicle-mounted system is started, if the first configuration file is found, the first configuration file is automatically imported into the vehicle-mounted system to be loaded, the first configuration file can be a configuration file generated when the vehicle-mounted equipment learns the designated configuration, a scheme company does not need to provide a new vehicle-mounted system version, the workload of the scheme company is reduced, the difficulty of the scheme company in managing the versions of the vehicle-mounted system is reduced, a dealer or a manufacturer can conveniently and autonomously perform differentiated function configuration on the vehicle-mounted system, and the configuration process is convenient and rapid. For example, when a dealer or a manufacturer downstream from the solution company needs to perform differential setting, a first configuration file may be generated through configuration learning of one vehicle-mounted system, and the first configuration file may be stored in a plug-in device such as a U-disk or an SD card, and the plug-in device may be inserted when another vehicle-mounted system is debugged, so that the another vehicle-mounted system may automatically complete the required configuration.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, an embodiment of the present invention provides a configuration method of a vehicle-mounted system, including:
s1, when the vehicle-mounted system is started, automatically searching whether the vehicle-mounted system is connected with a plug-in device;
s2, if yes, importing a first configuration file appointed in the plug-in device, wherein the first configuration file is a configuration file generated when other vehicle-mounted systems learn appointed configuration;
s3, loading the first configuration file in the vehicle-mounted system.
As described in step S1, the plug-in device is a device, such as a usb disk or an SD card, that has a function of storing data and can export the storage device to another device. The vehicle-mounted system is a system for operating vehicle-mounted equipment, and can operate navigation, radio, music, browser and the like, and can also correspondingly control the vehicle, such as controlling a vehicle-mounted air conditioner and the like. In this embodiment, the vehicle-mounted system is based on an android system. When the vehicle-mounted system is started, the plug-in equipment is automatically searched without manual control, so that the speed of the configuration process is increased.
As described in step S2, the first configuration file is not a file newly configured by the solution company, but a configuration file generated by a dealer or a manufacturer when learning a new configuration on one vehicle-mounted system, for example, the position of a virtual key of the vehicle-mounted system needs to be changed, configuration learning may be performed on one vehicle-mounted system, the first configuration file may be generated during configuration learning, and the first configuration file may be imported into the plug-in device, or the configuration file may be used by another vehicle-mounted system. The specified first configuration file is generally stored in a specified storage space of the plug-in device, so that the plug-in device is convenient to find and use. The external hanging device may store a plurality of first configuration files, but only one specific configuration file can be searched according to configuration requirements, and the external hanging device can be searched through a specific path or a specific package name in the searching process.
As described in step S3, the in-vehicle system loads the first configuration file, that is, the contents of the first configuration file are configured into the in-vehicle system.
In this embodiment, the first configuration file is a file for configuring one or more of a boot logo, a virtual key, and a screen coordinate parameter in the vehicle-mounted system. For example, the boot logo is a first pattern, the configuration in the first configuration file is a second pattern, and after loading, the boot pattern is changed to the second pattern. Similarly, the positions of the virtual keys, the screen coordinate parameters, and the like can be reconfigured. In other embodiments, as long as the function can be realized through learning, the first configuration file may be generated in the learning process for configuration and use by other devices.
Referring to fig. 2, in this embodiment, the step S2 of importing the first configuration file specified in the plug-in device into the vehicle-mounted system includes:
s201, searching the first configuration file in the plug-in device according to a preset path;
s202, copying the searched first configuration file to the vehicle-mounted system.
As described in the foregoing steps S201 and S202, the first configuration file is stored in the designated location of the external device, and the vehicle-mounted system can find the first configuration file only according to the preset path, and does not need to search for the external device, so as to improve the speed of obtaining the first configuration file.
In this embodiment, before the step S202 of copying the found first configuration file to the vehicle-mounted system, the method includes:
s203, judging whether the first configuration file is matched with the version of the current vehicle-mounted system;
and S204, if the configuration files are matched, generating an import command for importing the first configuration file.
As described in steps S203 and S204, since the vehicle-mounted systems have different carriers, such as different screen sizes and different shapes, and the versions of the vehicle-mounted systems used by the vehicle-mounted systems are different, when the first configuration file is imported, it is first determined whether the version of the vehicle-mounted system configurable by the first configuration file is the same as the version of the vehicle-mounted system itself, and the first configuration file is only imported if the version of the vehicle-mounted system configurable by the first configuration file is the same.
In this embodiment, after the step S203 of determining whether the version of the first configuration file matches the version of the current vehicle-mounted system, the method includes:
and S205, if the information is not matched, generating reminding information and displaying the reminding information on a display interface of the vehicle-mounted system.
As described in step S205, when the first configuration file is different from the current version of the vehicle-mounted system, the process of loading is stopped, and a reminding message is generated to notify the staff, so that the staff can adjust the configuration file in time. In other embodiments, the user may be further prompted in a voice broadcast form with a message that the first profile does not match the version of the current in-vehicle system.
Referring to fig. 3, in another embodiment, before the step S202 of copying the found first profile into the in-vehicle system, the method includes:
s206, acquiring a check code of the first configuration file;
s207, judging whether the first configuration file is loaded by the vehicle-mounted system or not according to the check code;
and S208, if not, generating an import command for importing the first configuration file.
As described in the above steps S206, S207, and S208, before importing the first configuration file into the vehicle-mounted system, it is determined whether the vehicle-mounted system has loaded the first configuration file, and if the first configuration file has been configured, the first configuration file does not need to be imported into the vehicle-mounted system again, otherwise, the vehicle-mounted system does not load the first configuration file, and the first configuration file is imported into the vehicle-mounted system for loading and configuring. The judging method is to check whether the check code of the first configuration file is the same as the check code stored in the vehicle-mounted system, if so, the vehicle-mounted system is indicated to have loaded the first configuration file, and if not, the vehicle-mounted system is indicated to have not loaded the first configuration file. The check code is identification information generated by generating the configuration file, and can be a string of specified character strings and the like, and the check code can be analyzed and stored when the configuration file is loaded by the vehicle-mounted system, so that comparison with the check code of the configuration file in the plug-in equipment is facilitated, and whether the vehicle-mounted system is configured with the corresponding configuration file or not is distinguished. And if the vehicle-mounted system is judged to be configured with the first configuration file, generating reminding information to inform workers.
Referring to fig. 4, in this embodiment, after the step S3 of loading the first configuration file in the vehicle-mounted system, the method includes:
s4, generating a second configuration file which can be exported to the plug-in device according to the new configuration learned by the vehicle-mounted system;
and S5, exporting the second configuration file to the plug-in device.
As described in steps S4 and S5 above, the in-vehicle system may be used as a new learning source to generate a new second configuration file. For example, a dealer needs to change the function of the virtual key, change the virtual key to the next song virtual key, perform configuration learning in the vehicle-mounted system, form a corresponding second configuration file in the configuration learning process, export the second configuration file to the external device, and store the second configuration file in the external device at the same location as the first configuration file. After the plug-in device is inserted into another vehicle-mounted system, the other vehicle-mounted device can import the first configuration file and the second configuration file into the system for loading, and new configuration is obtained.
According to the configuration method of the vehicle-mounted system, the vehicle-mounted system automatically searches the first configuration file designated in the plug-in device when the vehicle-mounted system is started, if the first configuration file is found, the first configuration file is automatically imported into the vehicle-mounted system to be loaded, the first configuration file can be a configuration file generated when the vehicle-mounted device is configured by learning, a scheme company does not need to provide a new vehicle-mounted system version, the workload of the scheme company is reduced, the difficulty of the scheme company in managing the version of the vehicle-mounted system is reduced, a dealer or a manufacturer can conveniently and autonomously perform differentiated function configuration on the vehicle-mounted system, and the configuration process is convenient and rapid. For example, when a dealer or a manufacturer downstream from the solution company needs to perform differential setting, a first configuration file may be generated through configuration learning of one vehicle-mounted system, and the first configuration file may be stored in a plug-in device such as a U-disk or an SD card, and the plug-in device may be inserted when another vehicle-mounted system is debugged, so that the another vehicle-mounted system may automatically complete the required configuration.
Referring to fig. 5, an embodiment of the present invention further provides a configuration apparatus for a vehicle-mounted system, including:
the searching unit 10 is used for automatically searching whether the vehicle-mounted system is connected with the plug-in equipment or not when the vehicle-mounted system is started;
the importing unit 20 is configured to import a first configuration file specified in the external device if the external device is found, where the first configuration file is a configuration file generated when other vehicle-mounted systems learn a specified configuration;
and the loading unit 30 is used for loading the first configuration file in the vehicle-mounted system.
In the search unit 10, the plug-in device refers to a device, such as a usb disk or an SD card, which has a data storage function and can export a storage device to another device. The vehicle-mounted system is a system for operating vehicle-mounted equipment, and can operate navigation, radio, music, browser and the like, and can also correspondingly control the vehicle, such as controlling a vehicle-mounted air conditioner and the like. In this embodiment, the vehicle-mounted system is based on an android system. When the vehicle-mounted system is started, the plug-in equipment is automatically searched without manual control, so that the speed of the configuration process is increased.
In the import unit 20, the first configuration file is not a file newly configured by the solution company, but a configuration file generated by a dealer or a manufacturer when learning a new configuration on one vehicle-mounted system, for example, a position of a virtual key of the vehicle-mounted system needs to be changed, configuration learning may be performed on one vehicle-mounted system, the first configuration file may be generated in the configuration learning process, and the first configuration file may be imported into the plug-in device, or the configuration file may be used by another vehicle-mounted system. The specified first configuration file is generally stored in a specified storage space of the plug-in device, so that the plug-in device is convenient to find and use. The external hanging device may store a plurality of first configuration files, but only one specific configuration file can be searched according to configuration requirements, and the external hanging device can be searched through a specific path or a specific package name in the searching process.
In the loading unit 30, the in-vehicle system loads the first configuration file, that is, the content of the first configuration file is configured in the in-vehicle system.
In this embodiment, the first configuration file is a file for configuring one or more of a boot logo, a virtual key, and a screen coordinate parameter in the vehicle-mounted system. For example, the boot logo is a first pattern, the configuration in the first configuration file is a second pattern, and after loading, the boot pattern is changed to the second pattern. Similarly, the positions of the virtual keys, the screen coordinate parameters, and the like can be reconfigured. In other embodiments, as long as the function can be realized through learning, the first configuration file may be generated in the learning process for configuration and use by other devices.
Referring to fig. 6, in this embodiment, the introducing unit 20 includes:
the searching module 201 is configured to search for the first configuration file in the plug-in device according to a preset path;
a copying module 202, configured to copy the found first configuration file to the vehicle-mounted system.
In the search module 201 and the copy module 202, the first configuration file is stored in the designated location of the external device, and the search module 201 can find the first configuration file only according to the preset path without searching in the external device, so that the speed of obtaining the first configuration file is increased.
In this embodiment, the importing unit 20 further includes:
the first judging module 203 is configured to judge whether the first configuration file is matched with the version of the current vehicle-mounted system;
the first generating module 204 is configured to generate an import command for importing the first configuration file if the first configuration file matches the version of the current vehicle-mounted system.
In the first determining module 203 and the first generating module 204, since the in-vehicle systems used in the in-vehicle systems have different versions due to different device models, such as different screen sizes and different shapes, when the first configuration file is imported, the first determining module 203 determines whether the version of the in-vehicle system configurable by the first configuration file is the same as the version of the in-vehicle system itself, and the first configuration file is imported only when the version of the in-vehicle system configurable by the first configuration file is the same.
In this embodiment, the importing unit 20 further includes:
the display module 205 is configured to generate a reminding message and display the reminding message on a display interface of the vehicle-mounted system if the first configuration file is not matched with the version of the current vehicle-mounted system.
In the display module 205, when the first configuration file is different from the current version of the vehicle-mounted system, the process of loading is stopped, and a reminding message is generated by the display module 205 to notify the staff, so that the staff can adjust in time. In other embodiments, the user may be further prompted in a voice broadcast form with a message that the first profile does not match the version of the current in-vehicle system.
Referring to fig. 7, in another embodiment, the importing unit 20 includes:
an obtaining module 206, configured to obtain a check code of the first configuration file;
the second judging module 207 is configured to judge whether the first configuration file is loaded in the vehicle-mounted system according to the check code;
the second generating module 208 is configured to generate an import command for importing the first configuration file if the first configuration file is not loaded in the vehicle-mounted system.
In the obtaining module 206, the second determining module 207, and the second generating module 208, before the first configuration file is imported into the vehicle-mounted system, it is determined whether the first configuration file is loaded by the vehicle-mounted system, and if the first configuration file is configured, the first configuration file does not need to be imported into the vehicle-mounted system again, otherwise, the first configuration file is imported into the vehicle-mounted system for loading and configuration. The judging method is to check whether the check code of the first configuration file is the same as the check code stored in the vehicle-mounted system, if so, the vehicle-mounted system is indicated to have loaded the first configuration file, and if not, the vehicle-mounted system is indicated to have not loaded the first configuration file. The check code is identification information generated by generating the configuration file, and can be a string of specified character strings and the like, and the check code can be analyzed and stored when the configuration file is loaded by the vehicle-mounted system, so that comparison with the check code of the configuration file in the plug-in equipment is facilitated, and whether the vehicle-mounted system is configured with the corresponding configuration file or not is distinguished. And if the vehicle-mounted system is judged to be configured with the first configuration file, generating reminding information to inform workers.
Referring to fig. 8, the configuration device of the onboard system further includes:
a learning configuration unit 40, configured to generate a second configuration file that can be exported to a plug-in device according to the new configuration learned by the vehicle-mounted system;
an exporting unit 50, configured to export the second configuration file to the external hanging device.
In the learning configuration unit 40 and the export unit 50, the on-board system may serve as a new learning source to generate a new second configuration file. For example, a dealer needs to change the function of the virtual key, change the virtual key to the next song virtual key, perform configuration learning in the vehicle-mounted system, form a corresponding second configuration file in the configuration learning process, export the second configuration file to the external device, and store the second configuration file in the external device at the same location as the first configuration file. After the plug-in device is inserted into another vehicle-mounted system, the other vehicle-mounted device can import the first configuration file and the second configuration file into the system for loading, and new configuration is obtained.
According to the configuration device of the vehicle-mounted system, the vehicle-mounted system automatically searches the first configuration file specified in the plug-in device when the vehicle-mounted system is started, if the first configuration file is found, the first configuration file is automatically introduced into the vehicle-mounted system to be loaded, the first configuration file can be a configuration file generated when the vehicle-mounted device is configured by learning, a scheme company is not required to provide a new vehicle-mounted system version, the workload of the scheme company is reduced, the difficulty of managing the version of the vehicle-mounted system by the scheme company is reduced, a dealer or a manufacturer can conveniently and autonomously perform differentiated function configuration on the vehicle-mounted system, and the configuration process is convenient and rapid. For example, when a dealer or a manufacturer downstream from the solution company needs to perform differential setting, a first configuration file may be generated through configuration learning of one vehicle-mounted system, and the first configuration file may be stored in a plug-in device such as a U-disk or an SD card, and the plug-in device may be inserted when another vehicle-mounted system is debugged, so that the another vehicle-mounted system may automatically complete the required configuration.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.