Vehicle-mounted language package updating method and device
By stripping the language packs in the car and using cloud push updates, the problem of lagging language pack updates caused by the long iteration cycle of the car software is solved, and the rapid update and data transmission of multi-language packs are achieved, meeting the usage needs of users in different countries.
Patent Information
- Application Number
- CN202510363612.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2025-07-08
AI Technical Summary
The iteration cycle of automotive software is long, which makes it impossible for user vehicles to iterate language translation and update quickly. Especially the particularity of the on-board operating system makes the data transmission method limited, and it is impossible to achieve rapid and timely update of multilingual packages.
By stripping the language package from the software package, pushing updates online in the cloud, and quickly updating and maintaining language package resources through message subscription methods between different operating systems. The specific steps include, upon detecting a cloud update, downloading the language package based on the application of the first operating system, and copying it into a folder of the storage area with open permissions through the application of the second operating system to achieve external access.
It realizes fast and timely updates of multi-language packages, taking into account data transmission between different operating systems, ensuring timely updates of language packages and multi-language display needs of vehicle users.
Smart Images

Figure CN120276752A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle control, and particularly to a method and device for updating an in-vehicle language pack. Background Art
[0002] Nowadays, the user group of automobiles is gradually expanding. Automobile brands need to meet the usage requirements of users in different countries and consider multi-language display solutions for the cockpit. The language pack needs to continuously iterate and optimize the translated copy according to different countries.
[0003] However, the iteration cycle of automobile software is long, and users' vehicles cannot achieve the function of quickly iterating language translation and updating. Summary of the Invention
[0004] In view of the above problems, the present invention provides a method and device for updating an in-vehicle language pack, by stripping the language pack from the software package to solve the problem of quickly and timely updating of multi-language packs of a second application.
[0005] According to a first aspect of the present invention, there is provided a method for updating an in-vehicle language pack, which is applied to a car head unit, and the method includes:
[0006] When it is detected that there is an updated language pack in the cloud, in response to an update operation input by a user, download the updated language pack based on a first application of a first operating system;
[0007] Based on a second application of a second operating system, obtain the updated language pack from the first application of the first operating system;
[0008] Based on the second application of the second operating system, copy the updated language pack to a first folder, where the first folder refers to a folder established in a storage area with open permissions of the second operating system for storing the language pack, and the first folder is used for external access to language pack data.
[0009] Optionally, before the step of copying the updated language pack to the first folder based on the second application of the second operating system, the method further includes:
[0010] After the car head unit is started, detect whether there is a first folder;
[0011] If the first folder does not exist, establish a first folder in the storage area with open permissions of the second operating system;
[0012] Copy the content of a second folder to the established first folder; where the second folder is located in a storage area with unopened permissions of the second operating system, and the second folder stores the language pack and the software package version number attached to the software package of the current version of the car head unit.
[0013] Optionally, the method further includes:
[0014] In the case where an updated software package exists in the cloud, in response to an update operation input by the user;
[0015] Copy the language package in the updated software package to a second folder, and copy and update the software package version number corresponding to the current version of the software package in the second folder; wherein, the second folder is located in a storage area where the second operating system permission is not open;
[0016] After each vehicle head unit startup, compare whether the software package version number in the second folder is consistent with the software package version number in the first folder; wherein, the software package version number of the first folder refers to the software package version number obtained when the first folder copies content from the second folder;
[0017] If the software package version number in the second folder is inconsistent with the software package version number in the first folder, copy the content in the second folder to the first folder.
[0018] Optionally, the method further includes:
[0019] Modify the external access path of the language package from accessing the folder storing the language package in the area where the second operating system permission is not open to accessing the first folder.
[0020] Optionally, the second application based on the second operating system obtains the updated language package from the first application of the first operating system, including:
[0021] The first application of the first operating system downloads the updated language package from the cloud and publishes the updated language package to a target topic;
[0022] The second application of the second operating system subscribes to the target topic and receives the updated language package.
[0023] Optionally: The operating system of the vehicle head unit includes a second operating system and is equipped with a first operating system virtual machine;
[0024] The first application runs on the first operating system simulated by the first operating system virtual machine;
[0025] The second application runs on the second operating system.
[0026] Optionally, before the step of in the case where an updated language package exists in the cloud, in response to an update operation input by the user, the method further includes:
[0027] Encrypt the updated language pack and upload it to the cloud.
[0028] According to a second aspect of the present invention, there is provided a vehicle-mounted language pack updating device, which is applied to a vehicle head unit. The device includes:
[0029] A release response module, configured to, when detecting that there is an updated language pack in the cloud, in response to an update operation input by a user, download the updated language pack based on a first application of a first operating system;
[0030] A receiving module, configured to obtain the updated language pack from the first application of the first operating system based on a second application of a second operating system;
[0031] An update module, configured to copy the updated language pack to a first folder based on the second application of the second operating system. The first folder refers to a folder established in a storage area with open permissions of the second operating system for storing language packs, and the first folder is used for external access to language pack data.
[0032] According to a third aspect of the present invention, there is provided a vehicle head unit, which includes a processor that runs a first operating system and a second operating system. The vehicle head unit further includes: a memory and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the foregoing vehicle-mounted language pack updating method is implemented.
[0033] According to a fourth aspect of the present invention, there is provided a storage medium on which a computer program is stored. When the computer program is executed by a processor, the foregoing vehicle-mounted language pack updating method is implemented.
[0034] One or more of the above technical solutions in the embodiments of this specification have at least the following technical effects:
[0035] A vehicle-mounted language pack update method and device provided by an embodiment of this specification, when it is detected that there is an updated language pack in the cloud, in response to an update operation input by a user, download the updated language pack based on a first application of a first operating system; a second application based on a second operating system obtains the updated language pack from the first application of the first operating system; based on the second application of the second operating system, copy the updated language pack to a first folder, where the first folder refers to a folder established in a storage area with open permissions of the second operating system for storing language packs, and the first folder is used for external access to language pack data. In this way, by stripping the language pack from the software package, rapid and timely update of multiple language packs of the second application can be achieved, and by establishing a first folder in the storage area with open permissions of the second operating system, data transmission between the first operating system and the second operating system can be realized.
[0036] The above description is only an overview of the technical solution of the present invention. In order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable, the specific embodiments of the present invention are specifically exemplified below. Brief Description of the Drawings
[0037] By reading the following detailed description of the preferred embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present invention. Moreover, throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:
[0038] Figure 1 A flowchart of a vehicle-mounted language pack update method of the present invention is shown.
[0039] Figure 2 A block diagram of a vehicle-mounted language pack update device of the present invention is shown. Detailed Embodiments
[0040] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. The components of the present invention described and shown in the drawings here can generally be arranged and designed in various different configurations.
[0041] Therefore, the following detailed description of the present invention provided in the drawings is not intended to limit the scope of the claimed present invention, but merely represents selected embodiments of the present invention. Based on the content of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0042] It should be noted that like reference numerals and letters refer to like items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0043] In the description of the present invention, it should also be noted that unless otherwise clearly defined and limited, the terms "set", "installed", "connected", and "coupled" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.
[0044] Currently, the user group of automobiles is gradually expanding. Automobile brands need to meet the usage requirements of users in different countries and need to consider the multi-language display solution for the cockpit. Language packs need to continuously iterate and optimize translation copy according to different countries. Also, because issues such as sensitive words, changes in Internet slang, and translation errors need to be considered, the iteration cycle of language packs is relatively short.
[0045] However, the iteration cycle of the software package of automobiles is generally long, resulting in a mismatch between the update cycles of the language pack and the software package. Furthermore, it causes the vehicle of the user to be unable to achieve the functions of quickly iterating language translation and updating. And due to the particularity of the in-vehicle operating system, the data transmission method within the in-vehicle operating system is restricted, and modifying resources under the in-vehicle operating system involves permissions.
[0046] Based on the above situation, the present invention provides a method for updating an in-vehicle language pack. By pushing the updated language pack or software package to the vehicle online through the cloud, the message subscription method is used between applications in different operating systems, so as to transmit the resources downloaded from the cloud to the second application. The second application realizes the rapid update and maintenance of the language pack resources by modifying the external access path of the language pack.
[0047] Specifically, in combination with Figure 1 the flowchart shown, the present invention provides a method for updating an in-vehicle language pack, which is applied to a car head unit. The method for updating an in-vehicle language pack includes steps 101 to 103:
[0048] Step 101: When it is detected that there is an updated language pack in the cloud, in response to the update operation input by the user, the first application based on the first operating system downloads the updated language pack;
[0049] In the present invention, the cloud refers to a network service platform built based on cloud computing technology. The cloud consists of a large number of servers, storage devices, and network infrastructure. These servers are distributed in data centers at different geographical locations and form a huge computing and storage cluster through high-speed network connections.
[0050] In the present invention, the cloud plays a key role in data storage and distribution. After an automobile manufacturer or a language service provider completes the development, optimization, and testing of a language pack, the updated language pack will be encrypted and uploaded to the cloud.
[0051] For example, the updated language pack data can be block-processed according to the regulations of the AES (Advanced Encryption Standard) algorithm, and each data block is regarded as an independent encryption unit. A unique encryption key is generated for each language pack. The key length is usually 128 bits, 192 bits, or 256 bits. The longer the key length, the higher the encryption strength. The selected key is used to perform an encryption operation on the block-processed language pack data, converting the original plaintext data into ciphertext form, so that the data appears as unreadable garbled characters during transmission and storage.
[0052] In the present invention, the in-vehicle unit will regularly send a query request to the cloud to detect whether there is an updated language pack in the cloud. Once it detects that there is an updated language pack in the cloud, the central control system of the in-vehicle unit will issue a reminder to the user in various ways. For example, an update prompt pop-up window will appear on the central control screen. The pop-up window will display in text "An updatable language pack is found", and the update content of this time can be further displayed in detail, such as "This update fixes 10 translation errors and adds translations of 3 common words", etc. At the same time, two buttons, "Update" and "Cancel", can be set on the pop-up window.
[0053] When the user clicks the "Update" button, it means that the user hopes to update the language pack. The in-vehicle unit will respond to the update operation input by the user, and the first application based on the first operating system will start the language pack download task.
[0054] It should be noted that the first operating system can be the Android system, the HarmonyOS system, or other common application operating systems. This embodiment does not limit this, but for the convenience of those skilled in the art to understand and implement, the following content of the present invention will take the Android system as an example for the first operating system.
[0055] When the first operating system is the Android system, the first application will call the network download framework built into the Android system to construct a request object, which contains the download link of the updated language pack. This download link is the exclusive download address allocated by the cloud for the in-vehicle computer. If the user needs to pause the download during the download process, the first application also provides corresponding operation buttons. The user can click the corresponding operation button to pause the download task. At this time, the download progress will remain unchanged. When the network environment improves or the user decides to continue the download again, click the "Resume" button to resume the download.
[0056] Step 102: The second application based on the second operating system obtains the updated language pack from the first application of the first operating system;
[0057] It should be noted that in the present invention, the operating system of the in-vehicle computer refers to the second operating system, and a virtual machine of the first operating system is installed. The first application runs on the first operating system simulated by the virtual machine of the first operating system; the second application runs on the second operating system.
[0058] For example, the second operating system can be the QNX system. QNX is a real-time operating system, which is commonly used in fields such as automobiles and medical devices that have high requirements for stability and real-time performance. It has the characteristics of high efficiency and stability and is generally used to process critical tasks. On the QNX system, an Android operating system can be run through virtual machine technology. The virtual machine allows the environment of another operating system to be simulated on one operating system, so Android applications can run in the QNX system.
[0059] In the present invention, the in-vehicle computer is installed with the second operating system and runs the second application, and at the same time runs the first operating system and the first application thereon through the virtual machine mechanism. When the first application completes the download of the updated language pack, it is ready to obtain the language pack for the second application. Since the first application and the second application run in different operating system environments, there are obstacles to direct data interaction, so the target topic method is used for data transmission.
[0060] Specifically, the first application will publish the updated software package under a specific target topic. For example, it is published under the target topic named "car_language_package_update". Among them, the language pack directly transmits the binary data of the file during transmission. Since the single target topic can transmit at most 64KB of data, if it exceeds 64KB, it can be sent in the form of sub-packets. The data header includes the file name, the total length of the file data, the total number of packets, the transmission status, the current packet number, the length of the single-packet file data, and the data check bit.
[0061] The second application continuously monitors the target topic. The second application receives the data published under the target topic through a subscription operation. Once the first application publishes an updated language pack under the target topic, the second application can receive the updated language pack.
[0062] Step 103: Based on the second application of the second operating system, copy the updated language pack to the first folder. The first folder refers to a folder established in the storage area with open permissions of the second operating system for storing language packs, and the first folder is used for external access to language pack data.
[0063] In the present invention, the second application creates a first folder to store the content of the updated language pack. The first folder is established in the storage area with open permissions of the second operating system. Therefore, the first folder can be edited. It is not difficult to understand that if the folder is located in the storage area with unopened permissions of the second operating system, the folder cannot be randomly edited. In the present invention, the second folder is located in the area with unopened permissions of the second operating system.
[0064] It should be noted that before copying, the second application will first detect whether the first folder exists. This detection can be performed before copying or at an earlier time. For example, when the in-vehicle computer starts up each time, it detects whether the first folder exists. The purpose of the detection is to prevent the translation and other functions from failing due to the non-existence of the first folder and the inability to access the language pack.
[0065] There are two results of the detection. The first is that the first folder exists, and the second is that the first folder does not exist. If it is detected that the first folder does not exist, the second application will create the first folder in the storage area with open permissions of the second operating system according to the permission management rules of the second operating system, and at the same time ensure that the path and naming of the first folder meet the system requirements, so that subsequent file operations can proceed smoothly.
[0066] It should be noted that after the first folder is established, the present invention will also modify the external access path of the language pack from accessing the folder (i.e., the second folder) storing the language pack in the area with unopened permissions of the second operating system to accessing the first folder.
[0067] Specifically, after the first folder is established, the in-vehicle computer needs to adjust the access path of the language pack data to ensure that the updated content can be accurately obtained when the language pack data is called subsequently.
[0068] For example, during actual implementation, the core control module in the in-vehicle computer will first receive an instruction to modify the path. This module is responsible for coordinating the work of various parts of the in-vehicle computer system. It will modify the file access paths of each sub-module responsible for language pack data reading and display according to the preset path modification rules. These sub-modules can be the display driver of the in-vehicle computer, the voice interaction module, the user interface application, etc.
[0069] Taking the display driver as an example for illustration, as a key module for controlling the display content of the in-vehicle computer screen, it is necessary to update the language pack data access path stored inside it. Then, the access path is changed from originally pointing to the folder (i.e., the second folder) storing the language pack in the area where the second operating system permission is not open to pointing to the first folder.
[0070] In the present invention, when it is confirmed that the first folder exists or is successfully created, the second application copies the content of the second folder to the first folder. Among them, the second folder stores the language packs attached to the software package of the current version of the in-vehicle computer, and also stores the software package version number. At this time, the content in the first folder includes the language packs attached to the software package of the current version, and also includes the software package version number. It should be noted that when performing a separate update of the language pack subsequently, only the updated language pack needs to be copied to the first folder, and the software package version number in the first folder will not be updated. That is to say, the software package version number in the first folder will only be updated along with the software package update. For the language pack updates occurring within the same software package cycle, the software package version number in the first folder remains unchanged.
[0071] In addition, in addition to separately updating the language pack, the language pack can also be updated by updating the software package. Because the software package includes the language pack, the updated software package also includes the updated language pack. Since in actual situations, the update cycle of the software package is relatively long, while the update cycle of the language pack is relatively short. In order to match the updates of the language pack and the software package with two different cycles, in the foregoing content of the present invention, the language pack is separated from the software package, so as to achieve rapid update of the language pack while taking into account the update of the software package.
[0072] Specifically, for the method of updating the software package, the steps of the foregoing method of the present invention further include:
[0073] In the case of detecting that there is an updated software package in the cloud, in response to the update operation input by the user;
[0074] Copy the language pack in the updated software package to the second folder, and copy and update the software package version number corresponding to the software package of the current version in the second folder; wherein, the second folder is located in the storage area where the second operating system permission is not open;
[0075] After each vehicle computer is started, comparing the software package version number in the second folder with the software package version number in the first folder to see if they are consistent; wherein the software package version number in the first folder refers to the software package version number obtained when the first folder copies the content from the second folder;
[0076] If the software package version number in the second folder is inconsistent with the software package version number in the first folder, the content in the second folder is copied to the first folder again.
[0077] In the present invention, the vehicle computer will continue to communicate with the cloud and detect whether there is an updated software package in the cloud. If the vehicle computer detects that there is an updated software package in the cloud, it will immediately prompt the user. There are many ways to prompt. For example, an update prompt pop-up window will pop up on the central control screen. The pop-up window can display detailed information about the updated software package, including the version number of the software package and an overview of the main contents of the update. For example, "This software package update optimizes system performance, fixes some known issues, and upgrades the language pack, adding new vocabulary and phrases in 6 languages, etc." At the same time, two buttons "Update" and "Cancel" are set on the pop-up window.
[0078] When the user clicks the "Update" button, it means that the user wants to update the software package. In response to the update operation input by the user, the car will start to execute the download task based on the first application of the first operating system.
[0079] It should be noted that the first operating system can be the Android system, the Hongmeng system, or other common application operating systems. This embodiment does not limit this. To facilitate understanding and implementation by technical personnel in this field, the following content of the present invention will illustrate the first operating system using the Android operating system as an example.
[0080] When the first operating system is an Android system, the first application will call the network download framework of the Android system to construct a request object, which includes a download link of the updated software package. The download link is a dedicated download address allocated by the cloud to the vehicle computer.
[0081] If the user needs to pause the download during the download process, the first application also provides a corresponding pause operation button. The user can click the corresponding pause operation button to pause the download task. At this time, the download progress will remain unchanged. When the network environment improves or the user decides to continue downloading again, click the "Continue" button to resume the download.
[0082] It should be noted that the in-vehicle computer runs a second operating system to execute a second application, and at the same time, it also runs a first operating system and the first application thereon through a virtual machine mechanism. The first application runs on the first operating system simulated by the first operating system virtual machine; while the second application runs on the second operating system. Since the two applications run in different operating system environments and there are obstacles to direct data interaction, a target topic method is adopted for data transmission.
[0083] The first application publishes the updated software package to a specific target topic. For example, it publishes it under the target topic named "car_software_package_update". Among them, the language package directly transmits the binary data of the file during transmission. Since a single target topic can transmit at most 64KB of data, if it exceeds 64KB, it can be sent in the form of sub-packets. The data header includes the file name, the total length of the file data, the total number of packets, the transmission status, the current packet number, the length of the file data in a single packet, and the data check bit.
[0084] The second application continuously monitors this target topic. It receives the data published under the target topic through a subscription operation. Once the first application publishes an updated software package under the target topic, the second application will receive the updated software package.
[0085] In the present invention, the second application stores the language package in the software package in a second folder, and copies the software package version number corresponding to the current version of the software package to the second folder. The second folder is located in an area where the permissions of the second operating system are not open. When the software package is updated, the second folder can be edited, and when the language package is updated separately, the second folder cannot be edited.
[0086] It is not difficult to understand that only when the software package is updated, the content in the second folder will be updated. When the content in the second folder is updated, the software package version number in the second folder also changes iteratively. However, when the language package is updated, the software package version number in the first folder does not change. The software package version number in the first folder is always the content at the initial copy. If the content in the first folder has not been updated during the period after the last copy update, then the software package version number in the first folder should be the same as that in the second folder. Correspondingly, if the content in the first folder has been updated during the period after the last copy update, then the software package version number in the second folder changes, resulting in the software package version number in the first folder being inconsistent with that in the second folder.
[0087] In the present invention, it is necessary to balance the update of language packs and software packs. Therefore, after each vehicle-mounted computer is started, the software pack version numbers in the second folder and the first folder are compared to check whether they are the same. If the software pack version numbers in the second folder and the first folder are the same, it indicates that the first folder and the second folder are at the same software pack version.
[0088] If the software pack version numbers in the second folder and the first folder are different, it indicates that the software pack in the second folder has been updated, and the first folder has not been updated synchronously yet. At this time, the content in the second folder needs to be copied to the first folder, and the copied content includes the language pack and the software pack version number in the updated software pack.
[0089] During the copying process, an efficient and reliable file copying algorithm can be adopted. For example, copying is performed in units of data blocks. Each time, a certain size of data block is copied, and the integrity of the data is verified in real time. After each data block is copied, the checksum (such as CRC checksum) of the data block is calculated and compared with the checksum of the source data block. If the two are the same, the next data block is copied; if they are different, the data block is copied again to ensure that the copied content does not have errors or losses during the copying process.
[0090] After the copying is completed, a notification will be sent to the user, informing the user that the software pack has been successfully updated and that a better language service experience can be enjoyed. If any error occurs during the copying process, the operating system of the vehicle-mounted computer will record detailed error information and try to copy again the next time the vehicle-mounted computer is started. At the same time, the user will be prompted with the reason for the error, such as "Software pack update failed. Please check the network connection or contact the customer service staff" to help the user solve the problem and ensure that the software pack can be updated in a timely and accurate manner.
[0091] In summary, for a vehicle-mounted language pack update method provided in an embodiment of this specification, when it is detected that there is an updated language pack in the cloud, in response to an update operation input by the user, a first application based on a first operating system downloads the updated language pack; a second application based on a second operating system obtains the updated language pack from the first application of the first operating system; the second application based on the second operating system copies the updated language pack to a first folder, where the first folder refers to a folder established in a storage area with open permissions of the second operating system for storing language packs, and the first folder is used for external access to language pack data. In this way, by separating the language pack from the software pack, rapid and timely update of multiple language packs of the second application can be achieved, and data transmission between the first operating system and the second operating system can be realized by establishing a first folder in the storage area with open permissions of the second operating system.
[0092] Based on the same inventive concept, in combination with Figure 2 As shown, the present invention further provides a vehicle-mounted language pack update device, which is applied to a vehicle head unit. The device includes: a release response module, a receiving module, and an update module.
[0093] The release response module is configured to, when detecting that there is an updated language pack in the cloud, in response to an update operation input by a user, download the updated language pack based on a first application of a first operating system.
[0094] The receiving module is configured to obtain the updated language pack from the first application of the first operating system based on a second application of a second operating system.
[0095] The update module is configured to copy the updated language pack to a first folder based on the second application of the second operating system. The first folder refers to a folder established in a storage area with open permissions of the second operating system for storing language packs, and the first folder is used for external access to language pack data.
[0096] Optionally, the update module further includes a detection sub-module, a creation sub-module, and a first copy sub-module;
[0097] The detection sub-module is configured to detect whether there is a first folder after the vehicle head unit is started.
[0098] The creation sub-module is configured to, if the first folder does not exist, create a first folder in the storage area with open permissions of the second operating system.
[0099] The first copy sub-module is configured to copy the content of a second folder to the created first folder. Wherein, the second folder is located in a storage area with unopened permissions of the second operating system, and the second folder stores the language packs and software package version numbers attached to the software package of the current version of the vehicle head unit.
[0100] Optionally, the update module further includes a response sub-module, a second copy sub-module, and a comparison sub-module:
[0101] The response sub-module is configured to, when detecting that there is an updated software package in the cloud, in response to an update operation input by a user;
[0102] The second copy sub-module is configured to copy the language packs in the updated software package to the second folder and copy and update the software package version number corresponding to the software package of the current version in the second folder. Wherein, the second folder is located in a storage area with unopened permissions of the second operating system;
[0103] A comparison sub-module, configured to compare whether the software package version numbers in the second folder are the same as those in the first folder after each vehicle head unit startup; wherein, the software package version number of the first folder refers to the software package version number obtained when the first folder copies content from the second folder; if the software package version numbers in the second folder are not the same as those in the first folder, copy the content in the second folder to the first folder.
[0104] Optionally, the update module further includes a modification sub-module:
[0105] The modification sub-module is configured to modify the external access path of the language package from accessing the folder storing the language package in the area where the permissions of the second operating system are not open to accessing the first folder.
[0106] Optionally, the receiving module further includes a download sub-module and a subscription sub-module;
[0107] The download sub-module is configured to download the updated language package from the cloud by a first application of the first operating system and publish the updated language package to a target topic;
[0108] The subscription sub-module is configured to subscribe to the target topic by a second application of the second operating system and receive the updated language package.
[0109] Optionally:
[0110] The operating system of the vehicle head unit includes a second operating system and is equipped with a first operating system virtual machine;
[0111] The first application runs on the first operating system simulated by the first operating system virtual machine;
[0112] The second application runs on the second operating system.
[0113] Optionally, the publishing response module is further configured to:
[0114] Encrypt the updated language package and upload it to the cloud.
[0115] In summary, an in-vehicle language pack update device provided by an embodiment of this specification, when detecting that there is an updated language pack in the cloud, in response to an update operation input by a user, downloads the updated language pack based on a first application of a first operating system; a second application based on a second operating system obtains the updated language pack from the first application of the first operating system; the second application based on the second operating system copies the updated language pack to a first folder, where the first folder refers to a folder established in a storage area with open permissions of the second operating system for storing language packs, and the first folder is used for external access to language pack data. In this way, by stripping the language pack from the software package, fast and timely update of multiple language packs of the second application can be achieved, and by establishing a first folder in the storage area with open permissions of the second operating system, data transmission between the first operating system and the second operating system can be realized.
[0116] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described in-vehicle language pack update device can refer to the corresponding process in the foregoing method, and will not be elaborated here too much.
[0117] Based on the same inventive concept, the present invention also provides a vehicle head unit, which includes a processor that runs a first operating system and a second operating system, and the vehicle head unit further includes: a memory and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the foregoing in-vehicle language pack update method is implemented.
[0118] Among them, the second operating system can be a QNX system, and the first operating system can be an Android system or a HarmonyOS, etc. The present invention takes the Android system as the first operating system and the QNX system as the second operating system as an example for illustration.
[0119] QNX is a real-time operating system, which is commonly used in fields such as automobiles and medical devices that have high requirements for stability and real-time performance. It has the characteristics of high efficiency and stability and is generally used to process critical tasks. On the QNX system, an Android operating system can be run through virtual machine technology. A virtual machine allows the environment of another operating system to be simulated on one operating system, so Android applications can run in the QNX system.
[0120] In the present invention, the vehicle head unit is equipped with a second operating system and runs a second application, and at the same time runs the first operating system and the first application thereon through a virtual machine mechanism.
[0121] The memory stores a computer program executable by the processor, and the processor and the memory communicate through a bus.
[0122] The components of the memory, the processor, and the communication unit are electrically connected to each other directly or indirectly to achieve signal transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The memory includes at least one software function module that can be stored in the memory in the form of software or firmware. The processor is used to execute the software function modules stored in the memory (for example, the software function module storing a computer program, and when running the computer program, the foregoing vehicle-mounted language pack update method is implemented).
[0123] Among them, the memory can be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc.
[0124] In some embodiments, the processor is used to execute one or more functions described in this embodiment. In some embodiments, the processor may include one or more processing cores (for example, a single-core processor (S) or a multi-core processor (S)).
[0125] The communication unit is used to establish a communication connection between the controller and other devices through a network, and is used to send and receive data through the network.
[0126] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described controller can refer to the corresponding process in the foregoing method, and will not be elaborated herein.
[0127] Based on the same inventive concept, the present invention also provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the foregoing vehicle-mounted language pack update method is implemented.
[0128] In summary, a vehicle-mounted language pack update method and device provided by the embodiments of this specification, when detecting that there is an updated language pack in the cloud, in response to an update operation input by a user, download the updated language pack based on a first application of a first operating system; a second application based on a second operating system obtains the updated language pack from the first application of the first operating system; based on the second application of the second operating system, copy the updated language pack to a first folder, where the first folder refers to a folder for storing language packs established in a storage area with open permissions of the second operating system, and the first folder is used for external access to language pack data. In this way, by separating the language pack from the software package, fast and timely update of multiple language packs of the second application can be achieved, and by establishing a first folder in the storage area with open permissions of the second operating system, data transmission between the first operating system and the second operating system can be realized.
[0129] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described storage medium can refer to the corresponding process in the foregoing method, and will not be elaborated herein.
[0130] The above are only various embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, and all should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A method for updating an in-vehicle language pack, characterized in that, Applied to a vehicle head unit, the method includes: When it is detected that there is an updated language pack in the cloud, in response to an update operation input by the user, download the updated language pack based on a first application of a first operating system; Based on a second application of a second operating system, obtain the updated language pack from the first application of the first operating system; Based on the second application of the second operating system, copy the updated language pack to a first folder, where the first folder refers to a folder established in a storage area with open permissions of the second operating system for storing language packs, and the first folder is used for external access to language pack data.
2. The method according to claim 1, characterized in that, Before the step of copying the updated language pack to the first folder based on the second application of the second operating system, the method further includes: After the vehicle head unit is started, detect whether there is a first folder; If the first folder does not exist, establish a first folder in the storage area with open permissions of the second operating system; Copy the content of a second folder to the established first folder; wherein, the second folder is located in a storage area with unopened permissions of the second operating system, and the second folder stores the language packs and software package version numbers attached to the software package of the current version of the vehicle head unit.
3. The method according to claim 1, wherein The method further includes: When it is detected that there is an updated software package in the cloud, in response to an update operation input by the user; Copy the language packs in the updated software package to the second folder, and copy and update the software package version number corresponding to the software package of the current version in the second folder; wherein, the second folder is located in a storage area with unopened permissions of the second operating system; After each startup of the vehicle head unit, compare whether the software package version number in the second folder is the same as the software package version number in the first folder; wherein, the software package version number of the first folder refers to the software package version number obtained when the content of the first folder is copied from the second folder; If the software package version number in the second folder is different from the software package version number in the first folder, copy the content of the second folder to the first folder.
4. The method according to claim 1, wherein The method further includes: Modify the external access path of the language pack from accessing the folder storing the language pack in the area with unopened permissions of the second operating system to accessing the first folder.
5. The method according to claim 1, wherein The second application of the second operating system obtaining the updated language pack from the first application of the first operating system includes: The first application of the first operating system downloads the updated language pack from the cloud and publishes the updated language pack to a target topic; The second application of the second operating system subscribes to the target topic and receives the updated language pack.
6. The method according to claim 1, characterized in that: The operating system of the vehicle head unit is the second operating system and is equipped with a first operating system virtual machine; The first application runs on the first operating system simulated by the first operating system virtual machine; The second application runs on the second operating system.
7. The method according to any one of claims 1-6, characterized in that Before responding to the update operation steps input by the user when it is detected that there is an updated language pack in the cloud, the method further includes: Encrypt the updated language pack and upload it to the cloud.
8. An in-vehicle language pack update device, characterized in that, Applied to a vehicle head unit, the device includes: A release response module, configured to, when it is detected that there is an updated language pack in the cloud, in response to an update operation input by the user, download the updated language pack based on a first application of a first operating system; A receiving module, configured to obtain the updated language pack from the first application of the first operating system based on a second application of a second operating system; An update module, configured to copy the updated language pack to a first folder based on the second application of the second operating system, where the first folder refers to a folder established in a storage area with open permissions of the second operating system for storing language packs, and the first folder is used for external access to language pack data.
9. A vehicle-mounted computer, characterized in that, The vehicle head unit includes a processor that runs a first operating system and a second operating system. The vehicle head unit further includes: a memory and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements the in-vehicle language pack update method according to any one of claims 1-7.
10. A storage medium, characterized in that, A computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the in-vehicle language pack update method according to any one of claims 1-7.