Code converter control method, device, vehicle, control equipment and medium

By controlling the working time and quantity of the converter when receiving an idle signal, the problems of poor user experience and vehicle startup failure caused by the converter's resource consumption are solved, and efficient resource utilization and user experience are achieved.

CN115469567BActive Publication Date: 2025-09-02BEIJING CO WHEELS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210619924.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-02
Publication Date
2025-09-02
Estimated Expiration
2042-06-02

AI Technical Summary

Technical Problem

When the vehicle screen is turned off, the code conversion process of the code converter consumes a lot of CPU resources and electricity, resulting in poor user experience and loss of power from the vehicle battery, which may lead to failure of the vehicle startup.

Method used

When receiving an idle signal, obtain the number of applications that need to be converted, set the target conversion time, and control the work of the converter, accumulate working time, and control the target and actual time to avoid excessive consumption of resources.

Benefits of technology

Improves user experience, avoids the vehicle battery loss, and prevents the vehicle from starting failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115469567B_ABST
    Figure CN115469567B_ABST
Patent Text Reader

Abstract

The present invention provides a transcoder control method, apparatus, vehicle, control device, and medium. The control method includes: upon receiving an idle signal, obtaining a first number of applications requiring source code conversion to machine code by the transcoder; determining a first target conversion time based on the first number, and controlling the transcoder to begin operation; accumulating the first operating time of the transcoder after each application's transcode conversion is completed; and controlling the transcoder based on the first target conversion time and the first operating time. This method controls the transcoder to perform transcoding upon receiving an idle signal, thereby improving the user experience. Furthermore, the method utilizes a target conversion time set based on the number of applications requiring source code conversion to machine code to control the transcoder, thereby preventing vehicle battery depletion and vehicle startup failure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a control method, device, vehicle, control equipment and medium for a code converter. Background Art

[0002] A transcoder is a tool that converts source code into machine code in order to speed up the execution of the code.

[0003] Usually, the code converter is triggered to execute when the vehicle screen is off. However, after the screen is off, the user is likely to still be listening to music, making Bluetooth calls, etc. through the vehicle. At this time, the code converter will consume a lot of CPU (Central Processing Unit) resources in the process of converting codes. This will cause operations such as music and Bluetooth calls to not have sufficient CPU resources, resulting in freezes and delays, and a poor user experience. At the same time, the code converter will consume a lot of power resources in the process of converting codes, which may cause the vehicle battery to run low, resulting in vehicle start failure. Summary of the Invention

[0004] The present invention aims to solve the technical problems in the related art to a certain extent.

[0005] To this end, a first object of the present invention is to propose a method for controlling a code converter, which controls the code converter to perform code conversion when an idle signal is received, thereby improving the user experience. At the same time, combined with the target conversion time set according to the number of applications that need to convert source code into machine code, the code converter is controlled to avoid vehicle battery depletion and prevent vehicle start-up failure.

[0006] A second object of the present invention is to provide a control device for a code converter.

[0007] A third object of the present invention is to provide a vehicle control device.

[0008] A fourth object of the present invention is to provide a vehicle.

[0009] A fifth object of the present invention is to provide a computer-readable storage medium.

[0010] A sixth object of the present invention is to provide a computer program product.

[0011] To achieve the above-mentioned objectives, an embodiment of a first aspect of the present invention provides a method for controlling a code converter, the method comprising the following steps: upon determining that an idle signal is received, obtaining a first number of applications that require source code to be converted into machine code by the code converter; determining a first target conversion time based on the first number, and controlling the code converter to start working; accumulating a first working time of the code converter after completing the code conversion of each application; and controlling the code converter based on the first target conversion time and the first working time.

[0012] According to an embodiment of the present invention, a transcoder control method, upon determining receipt of an idle signal, obtains a first number of applications requiring source code conversion to machine code by the transcoder, determines a first target conversion time based on the first number, and controls the transcoder to begin operation. After each application completes transcoding, the transcoder's first operating time is accumulated, and the transcoder is controlled based on the first target conversion time and the first operating time. Thus, this method controls the transcoder to perform transcoding upon receipt of an idle signal, improving the user experience. Furthermore, the method utilizes the target conversion time set based on the number of applications requiring source code conversion to machine code to control the transcoder, thereby preventing vehicle battery depletion and vehicle startup failure.

[0013] In addition, the control method of the code converter proposed in the embodiment of the first aspect of the present invention may also have the following additional technical features:

[0014] According to one embodiment of the present invention, controlling the transcoder based on the first target conversion duration and the first operating duration includes: controlling the transcoder to stop operating if the first operating duration is greater than or equal to the first target conversion duration; or controlling the transcoder to remain operating if the first operating duration is less than the first target conversion duration.

[0015] According to an embodiment of the present invention, there is a positive correlation between the first quantity and the first target conversion duration.

[0016] According to one embodiment of the present invention, after obtaining a first number of applications requiring source code to be converted into machine code by the code converter, the method further includes: obtaining historical data used by each functional unit in the application; obtaining a second number of functional units in the application requiring source code to be converted into machine code by the code converter based on the historical data; wherein the second number is greater than or equal to the first number; correspondingly, determining a first target conversion duration based on the first number includes: determining a second target conversion duration based on the second number; wherein the second target conversion duration is less than or equal to the first target conversion duration; accumulating the first operating duration of the code converter after each completion of code conversion of the application includes: accumulating the second operating duration of the code converter after each completion of code conversion of the functional unit; and controlling the code converter based on the first target conversion duration and the first operating duration includes: controlling the code converter based on the second target conversion duration and the second operating duration.

[0017] According to one embodiment of the present invention, after obtaining the second number of functional units in the application that need to convert source code into machine code, it also includes: sorting the priorities of the functional units according to the historical data to generate a sorting result; wherein, controlling the code converter to start working includes: controlling the code converter to start working according to the sorting result.

[0018] According to an embodiment of the present invention, the method for controlling the transcoder further includes: controlling the transcoder to stop working when confirming that the control signal of the application program is monitored.

[0019] To achieve the above-mentioned objectives, a second embodiment of the present invention provides a control device for a code converter, comprising: an acquisition module for determining, upon receiving an idle signal, a first number of application programs that require the code converter to convert source code into machine code; a determination module for determining a first target conversion time based on the first number and controlling the code converter to start operation; an accumulation module for accumulating the first operating time of the code converter after completing the code conversion of each application program; and a control module for controlling the code converter based on the first target conversion time and the first operating time.

[0020] According to an embodiment of the present invention, a transcoder control device, when receiving an idle signal, uses an acquisition module to determine a first number of applications requiring source code conversion to machine code by the transcoder. A determination module determines a first target conversion time based on the first number and controls the transcoder to begin operation. An accumulation module accumulates the first operating time of the transcoder after each completed transcode of an application. A control module controls the transcoder based on the first target conversion time and the first operating time. Thus, the device controls the transcoder to perform transcoding when receiving an idle signal, improving the user experience. Furthermore, the device, combined with the target conversion time set based on the number of applications requiring source code conversion to machine code, controls the transcoder to prevent vehicle battery depletion and prevent vehicle startup failure.

[0021] In addition, the control device of the code converter provided in the second embodiment of the present invention may also have the following additional technical features:

[0022] According to one embodiment of the present invention, the control module includes: a first control unit configured to control the code converter to stop operating when the first operating duration is greater than or equal to the first target conversion duration; or a second control unit configured to control the code converter to remain in operation when the first operating duration is less than the first target conversion duration.

[0023] According to an embodiment of the present invention, there is a positive correlation between the first quantity and the first target conversion duration.

[0024] According to one embodiment of the present invention, the acquisition module includes: a first acquisition unit for acquiring historical data used by each functional unit in the application; a second acquisition unit for acquiring, based on the historical data, a second number of functional units in the application that require conversion of source code into machine code by a transcoder; wherein the second number is greater than or equal to the first number; the determination module, when determining a first target conversion duration based on the first number, includes: determining a second target conversion duration based on the second number; wherein the second target conversion duration is less than or equal to the first target conversion duration; the accumulation module, when accumulating the first operating duration of the transcoder after each completion of transcoding of the application, includes: accumulating the second operating duration of the transcoder after each completion of transcoding of the functional unit; and the control module, when controlling the transcoder based on the first target conversion duration and the first operating duration, includes: controlling the transcoder based on the second target conversion duration and the second operating duration.

[0025] According to one embodiment of the present invention, the acquisition module further includes: a third acquisition unit, configured to sort the priorities of the functional units according to the historical data to generate a sorting result; wherein, when the control module controls the code converter to start working, it includes: controlling the code converter to start working according to the sorting result.

[0026] According to an embodiment of the present invention, the control module is further configured to control the code converter to stop working when confirming that the control signal of the application is monitored.

[0027] To achieve the above-mentioned purpose, an embodiment of the third aspect of the present invention proposes a vehicle control device, which includes: a processor and a memory; wherein, the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the control method of the code converter of the first aspect embodiment.

[0028] The vehicle control device of an embodiment of the present invention controls the code converter to perform code conversion when receiving an idle signal by executing the above-mentioned code converter control method, thereby improving the user experience. At the same time, combined with the target conversion time set according to the number of applications that need to convert source code into machine code, the code converter is controlled to avoid vehicle battery depletion and prevent vehicle startup failure.

[0029] To achieve the above-mentioned objectives, a fourth embodiment of the present invention provides a vehicle, which includes the vehicle control device of the third embodiment.

[0030] The vehicle of the embodiment of the present invention, through the above-mentioned vehicle control device, can control the code converter to perform code conversion when receiving an idle signal, thereby improving the user experience. At the same time, the target conversion time is set according to the number of applications that need to convert source code into machine code, thereby realizing control of the code converter, avoiding vehicle battery depletion, and preventing vehicle startup failure.

[0031] To achieve the above objectives, a fifth embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the control method of the code converter of the first embodiment.

[0032] The computer-readable storage medium of an embodiment of the present invention, by executing the above-mentioned code converter control method, can control the code converter to perform code conversion when receiving an idle signal, thereby improving the user experience. At the same time, the target conversion time is set according to the number of applications that need to convert source code into machine code, thereby realizing control of the code converter, avoiding vehicle battery depletion, and preventing vehicle start-up failure.

[0033] To achieve the above-mentioned object, a fifth embodiment of the present invention provides a computer program product. When an instruction processor in the computer program product executes the control method of the code converter of the first embodiment, the above-mentioned method is executed.

[0034] The computer program product of an embodiment of the present invention, by executing the above-mentioned code converter control method, can control the code converter to perform code conversion when receiving an idle signal, thereby improving the user experience. At the same time, the target conversion time is set according to the number of applications that need to convert source code into machine code, thereby achieving control of the code converter, avoiding vehicle battery depletion, and preventing vehicle startup failure.

[0035] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of the embodiments with reference to the accompanying drawings, in which:

[0037] Figure 1 is a flow chart of a control method of a code converter according to an embodiment of the present invention;

[0038] Figure 2 is a flow chart of a method for controlling a code converter according to an embodiment of the present invention;

[0039] Figure 3 is a flow chart of a method for controlling a code converter according to another embodiment of the present invention;

[0040] Figure 4 is a schematic diagram of a control device of a code converter according to an embodiment of the present invention;

[0041] Figure 5 is a structural block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

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

[0043] A method for controlling a transcoder, a device for controlling a transcoder, a vehicle control apparatus, a vehicle, and a computer-readable storage medium according to embodiments of the present invention will be described below with reference to the accompanying drawings.

[0044] Figure 1 is a flowchart of a control method of a code converter according to an embodiment of the present invention.

[0045] It should be noted that the execution subject of the embodiment of the present invention is a control device of the code converter, which can be configured in a vehicle control device such as a vehicle computer system, so that the vehicle control device can perform the control function of the code converter.

[0046] like Figure 1 As shown, the control method of the code converter according to the embodiment of the present invention includes the following steps:

[0047] S101: When it is determined that an idle signal is received, obtain a first number of application programs that require source code to be converted into machine code by a code converter.

[0048] Among them, applications may include map, music, video, weather and other applications.

[0049] As a way to realize the issuance of an idle signal, the idle signal can be automatically issued by the vehicle. For example, the vehicle system monitors the control signals of each functional module to determine whether each functional module is about to work or is working. If the control signals of each functional module are not monitored, the idle signal is issued.

[0050] As another way to send an idle signal, the idle signal can be sent by the user. For example, a button for starting a code converter can be set on the vehicle. When the user needs to use the code converter to convert the code of the application, the idle signal is sent by triggering the button.

[0051] As a method for obtaining the first number of applications that require conversion of source code into machine code, historical data used by each application installed on the vehicle (such as usage time, usage frequency) can be obtained, and based on the historical data used by each application, the first number of applications that require conversion of source code into machine code through a code converter can be obtained.

[0052] S102: Determine a first target conversion duration according to the first quantity, and control the code converter to start working.

[0053] As an achievable approach, the first quantity and the first target conversion time are positively correlated, such as in a positive proportional relationship. For example, when the first quantity is 10, the first target conversion time is 2 minutes; and when the first quantity is 20, the first target conversion time is 4 minutes.

[0054] As another possible implementation, the first target conversion duration is determined based on the first quantity by looking up a table (the table is used to represent the relationship between the level of the first quantity and the first target conversion duration). For example, when the first quantity is 15, its level is the first level (the level of a quantity less than or equal to 20 is the first level), and the first target conversion duration is determined to be 4 minutes by looking up the table; when the first quantity is 35, its level is the second level (the level of a quantity less than or equal to 40 is the second level), and the first target conversion duration is determined to be 8 minutes by looking up the table.

[0055] It should be noted that a maximum value of the first target conversion time can be set, such as 20 minutes, that is, the maximum working time of the code converter is 20 minutes.

[0056] S103: After completing the code conversion of each application, accumulate the first working time of the code converter.

[0057] The vehicle computer system controls the timer to start timing when the code converter starts working. During the working process of the code converter, after each code conversion of an application is completed, the accumulated first working time of the code converter is obtained.

[0058] S104: Control the transcoder according to the first target conversion duration and the first working duration.

[0059] In this step, after obtaining the first target conversion time and the first operating time, the magnitude relationship between the two is determined, and based on this magnitude relationship, whether to control the transcoder is determined. If the first operating time is greater than or equal to the first target conversion time, the transcoder is controlled to stop operating; if the first operating time is less than the first target conversion time, the transcoder is controlled to remain in operation.

[0060] As another case where the code converter needs to be controlled to stop working, when it is determined that a control signal of an application is monitored, that is, when an application is still running or is about to be started, the code converter is controlled to stop working.

[0061] Therefore, according to an embodiment of the present invention, a transcoder control method, upon determining receipt of an idle signal, obtains a first number of applications requiring source code to be converted to machine code by the transcoder, determines a first target conversion time based on the first number, and controls the transcoder to begin operation. After each application completes transcoding, the transcoder's first operating time is accumulated, and the transcoder is controlled based on the first target conversion time and the first operating time. Thus, this method controls the transcoder to perform transcoding upon receipt of an idle signal, thereby improving the user experience. Furthermore, the method utilizes the target conversion time set based on the number of applications requiring source code to be converted to machine code to control the transcoder, thereby preventing vehicle battery depletion and vehicle startup failure.

[0062] Figure 2 is a flowchart of a method for controlling a transcoder according to an embodiment of the present invention.

[0063] like Figure 2 As shown, the control method of the code converter according to the embodiment of the present invention includes:

[0064] S201 , when it is determined that an idle signal is received, obtain historical data used by each functional unit in the application.

[0065] It is understood that an application includes at least one functional unit. For example, a map application may provide maps with different functions (i.e., different functional units) based on user needs, such as a driving map with red areas (i.e., congested areas), a public transportation map with public transportation (subway, bus, etc.) marked, and a more vivid satellite map. Another example is a music application that provides different music types (i.e., different functional units) based on user needs, such as karaoke, popular, and knowledge.

[0066] In this step, when the vehicle system receives the idle signal, it obtains historical data such as the frequency and time used by each functional unit in the application.

[0067] S202 : Obtain, based on historical data, a second number of functional units in the application program that require conversion of source code into machine code by a code converter; wherein the second number is greater than or equal to the first number.

[0068] In this step, the vehicle system calculates the number of functional units in each application that require source code conversion to machine code based on historical data such as frequency and time. For example, for the Maps application, if the time data indicates that the user used the driving map, the driving map functional unit will be counted as a single quantity. Alternatively, for the Music application, if the user switches between Hot and Knowledge during use, both Hot and Knowledge will be counted as two quantities.

[0069] S203: Determine a second target conversion duration according to the second quantity, and control the code converter to start working.

[0070] The second target conversion duration is less than or equal to the first target conversion duration.

[0071] As an achievable approach, the second number and the second target conversion time are positively correlated, such as in a positive proportional relationship. For example, when the second number is 10, the second target conversion time is 1 minute; and when the second number is 20, the second target conversion time is 2 minutes.

[0072] As another possible implementation, the second target transition duration is determined based on the second quantity by looking up a table (the table is used to represent the relationship between the level of the second quantity and the second target transition duration). For example, when the second quantity is 30, its level is the first level (the level of a quantity less than or equal to 40 is the first level), and the second target transition duration is determined by looking up the table to be 4 minutes; when the second quantity is 70, its level is the second level (the level of a quantity less than or equal to 80 is the second level), and the second target transition duration is determined by looking up the table to be 8 minutes.

[0073] It should be noted that a maximum value of the second target conversion time can be set, such as 20 minutes, that is, the maximum working time of the code converter is 20 minutes.

[0074] S204: After completing the code conversion of each application, accumulate the second working time of the code converter.

[0075] The vehicle computer system controls the timer to start timing when the code converter starts working. During the working process of the code converter, after each code conversion of an application is completed, the accumulated second working time of the code conversion is obtained.

[0076] S205: Control the transcoder according to the second target conversion duration and the second working duration.

[0077] In this step, after obtaining the second target switching time and the second operating time, the relative magnitude between the two is determined, and based on this relative magnitude, whether to control the transcoder is determined. If the second operating time is greater than or equal to the second target switching time, the transcoder is controlled to stop operating; if the second operating time is less than the second target switching time, the transcoder is controlled to remain in operation.

[0078] Combine Figure 3 It can be seen that the vehicle-mounted system is always monitoring the signals of the entire vehicle (such as control signals or idle signals). If the vehicle sends an idle signal, the idle signal is first sent to the signal pool, and then sent from the signal pool to the vehicle-mounted system. In this way, the vehicle-mounted system can know that the vehicle is currently in an idle state. At this time, the control method of the code converter of the present invention is executed. That is, when it is determined that the idle signal is monitored, the vehicle-mounted system will obtain the second number of functional units in the application that need to convert the source code into machine code based on the historical data used by each functional unit in the application and send it to the code converter. The vehicle-mounted system then determines the second target conversion time based on the second number. At this time, the task is started, and after executing a task, it is determined whether it has timed out. If it has timed out, it indicates that the execution is completed; if it has not timed out, the next task is executed, and after executing the next task, it continues to determine whether the task has timed out. If it has timed out, the code of the functional unit will no longer be converted, and it can be executed next time; if it has not timed out, it continues to execute the next task.

[0079] When it is determined that the control signal is monitored, the code converter is also controlled to stop working.

[0080] Therefore, the transcoder control method of the present invention, upon determining receipt of an idle signal, obtains historical usage data for each functional unit in an application. Based on this historical data, it determines a second number of functional units in the application requiring source code conversion to machine code. A second target conversion time is determined based on the second number, and the transcoder is controlled to begin operation. After each application's transcode conversion is completed, the second transcode conversion operation time is accumulated, and the transcoder is controlled based on the second target conversion time and the second operation time. This eliminates the need to convert the code in each functional module in the application, further improving the user experience. Furthermore, the transcoder is controlled by combining the target conversion time set based on the number of functional units in the application requiring source code conversion to machine code, further preventing vehicle battery depletion and vehicle startup failure.

[0081] In order to further improve the user experience, after obtaining the number of functional units in the application that need to convert source code into machine code, it also includes: sorting the priorities of the functional units according to historical data to generate a sorting result; wherein, controlling the code converter to start working includes: controlling the code converter to start working according to the sorting result.

[0082] That is, the priority of each functional unit can be sorted based on historical data such as usage frequency (determined by the number of times it has been selected) and time. For example, if the knowledge functional unit in the music application has been used recently, the knowledge functional unit will be ranked first. Then, based on the ranking results of the functional units in each application, the codes of the functional units are converted in sequence. This can avoid the situation where the codes of frequently used functional units have not been converted when the second working time reaches the second target conversion time, thereby further improving the user experience.

[0083] In summary, according to the transcoder control method of an embodiment of the present invention, upon determining receipt of an idle signal, the method obtains a first number of applications requiring source code to be converted to machine code by the transcoder, determines a first target conversion time based on the first number, and controls the transcoder to begin operation. After each application completes transcoding, the method accumulates the first transcoder operation time and controls the transcoder based on the first target conversion time and the first operation time. Thus, the method controls the transcoder to perform transcoding upon receipt of an idle signal, improving the user experience. Furthermore, the method utilizes the target conversion time set based on the number of applications requiring source code to be converted to machine code to control the transcoder, thereby preventing vehicle battery depletion and vehicle startup failure.

[0084] Figure 4 FIG. 1 is a schematic diagram of a control device of a code converter according to an embodiment of the present invention.

[0085] like Figure 4 As shown, the control device 400 of the code converter according to the embodiment of the present invention includes: an acquisition module 401 , a determination module 402 , an accumulation module 403 and a control module 404 .

[0086] Acquisition module 401 is configured to determine a first number of applications requiring source code conversion to machine code upon receiving an idle signal. Determination module 402 is configured to determine a first target conversion duration based on the first number and control the transcoder to begin operation. Accumulation module 403 is configured to accumulate the first transcoding operation duration after completing transcoding of each application. Control module 404 is configured to control the transcoder based on the first target conversion duration and the first operation duration.

[0087] According to one embodiment of the present invention, the control module 404 includes: a first control unit for controlling the code converter to stop working when the first operating time is greater than or equal to the first target conversion time; or a second control unit for controlling the code converter to remain in operation when the first operating time is less than the first target conversion time.

[0088] According to an embodiment of the present invention, there is a positive correlation between the first quantity and the first target conversion duration.

[0089] According to one embodiment of the present invention, an acquisition module 401 includes: a first acquisition unit for acquiring historical data used by each functional unit in an application; a second acquisition unit for acquiring, based on the historical data, a second number of functional units in the application that require conversion of source code into machine code by a transcoder, wherein the second number is greater than or equal to the first number; a determination module 402, when determining a first target conversion duration based on the first number, includes: determining a second target conversion duration based on the second number, wherein the second target conversion duration is less than or equal to the first target conversion duration; an accumulation module 403, when accumulating the first operating duration of the transcoder after each completion of transcoding of an application, includes: accumulating the second operating duration of the transcoder after each completion of transcoding of a functional unit; and a control module 404, when controlling the transcoder based on the first target conversion duration and the first operating duration, includes: controlling the transcoder based on the second target conversion duration and the second operating duration.

[0090] According to one embodiment of the present invention, the acquisition module 401 further includes: a third acquisition unit, configured to sort the priorities of the functional units based on historical data to generate a sorting result; wherein, when the control module 404 controls the code converter to start working, it includes: controlling the code converter to start working according to the sorting result.

[0091] According to an embodiment of the present invention, the control module 404 is further configured to control the code converter to stop working when confirming that a control signal from the application is monitored.

[0092] It should be noted that for details not disclosed in the control device of the code converter in the embodiment of the present invention, please refer to the details disclosed in the control method of the code converter of the present invention, and the details will not be repeated here.

[0093] According to an embodiment of the present invention, a transcoder control device, when receiving an idle signal, uses an acquisition module to determine a first number of applications requiring source code conversion to machine code by the transcoder. A determination module determines a first target conversion time based on the first number and controls the transcoder to begin operation. An accumulation module accumulates the first operating time of the transcoder after each completed transcode of an application. A control module controls the transcoder based on the first target conversion time and the first operating time. Thus, the device controls the transcoder to perform transcoding when receiving an idle signal, improving the user experience. Furthermore, the device, combined with the target conversion time set based on the number of applications requiring source code conversion to machine code, controls the transcoder to prevent vehicle battery depletion and prevent vehicle startup failure.

[0094] Based on the above embodiments, the present invention further provides an electronic device.

[0095] The electronic device according to the embodiment of the present invention includes: a processor and a memory; wherein the processor reads the executable program code stored in the memory to run a program corresponding to the executable program code, so as to implement the above-mentioned code converter control method.

[0096] The vehicle control device of an embodiment of the present invention controls the code converter to perform code conversion when receiving an idle signal by executing the above-mentioned code converter control method, thereby improving the user experience. At the same time, combined with the target conversion time set according to the number of applications that need to convert source code into machine code, the code converter is controlled to avoid vehicle battery depletion and prevent vehicle startup failure.

[0097] Based on the above embodiments, the present invention also provides a vehicle.

[0098] The vehicle according to the embodiment of the present invention includes the above-mentioned vehicle control device.

[0099] The vehicle of the embodiment of the present invention, through the above-mentioned vehicle control device, can control the code converter to perform code conversion when receiving an idle signal, thereby improving the user experience. At the same time, the target conversion time is set in combination with the number of applications that need to convert source code into machine code, thereby realizing control of the code converter, avoiding vehicle battery depletion, and preventing vehicle startup failure.

[0100] Based on the above embodiments, the present invention further provides a computer-readable storage medium.

[0101] The computer-readable storage medium of the embodiment of the present invention stores a computer program, and when the computer program is executed by a processor, the control method of the transcoder is implemented.

[0102] The computer-readable storage medium of an embodiment of the present invention, by executing the above-mentioned code converter control method, can control the code converter to perform code conversion when receiving an idle signal, thereby improving the user experience. At the same time, the target conversion time is set according to the number of applications that need to convert source code into machine code, thereby realizing control of the code converter, avoiding vehicle battery depletion, and preventing vehicle start-up failure.

[0103] Based on the above embodiments, the present invention also proposes a computer program product.

[0104] The computer program product of the embodiment of the present invention executes the above-mentioned method for controlling a transcoder when instructions in the computer program product are executed by a processor.

[0105] The computer program product of an embodiment of the present invention, by executing the above-mentioned method for controlling a transcoder, can control the transcoder to perform transcoding upon receiving an idle signal, thereby improving the user experience. Furthermore, the target conversion time is set based on the number of applications that need to convert source code into machine code, thereby controlling the transcoder and preventing vehicle battery depletion and vehicle startup failure.

[0106] Figure 5 is a structural block diagram of an electronic device according to an embodiment of the present invention. Figure 5 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention.

[0107] like Figure 5 As shown, the electronic device 10 includes a processor 11, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 12 or a program loaded from a memory 16 into a random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 are also stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0108] The following components are connected to the I / O interface 15: a memory 16 including a hard disk, etc.; and a communication part 17 including a network interface card such as a LAN (Local Area Network) card, a modem, etc., which performs communication processing via a network such as the Internet; a drive 18 is also connected to the I / O interface 15 as needed.

[0109] In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present invention includes a computer program carried on a computer-readable medium, the computer program containing program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication unit 17. When the computer program is executed by the processor 11, the above-mentioned functions defined in the method of the present invention are performed.

[0110] In an exemplary embodiment, a storage medium including instructions is further provided, such as a memory 16 including instructions, and the instructions can be executed by the processor 11 of the electronic device 10 to perform the above method. Alternatively, the storage medium can be a computer-readable storage medium, such as a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

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

[0112] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

[0113] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention pertain.

[0114] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and a portable compact disc read-only memory (CDROM). Furthermore, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing it in another suitable manner if necessary, and then storing it in a computer memory.

[0115] It should be understood that various parts of the present invention can be implemented using hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0116] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.

[0117] In addition, the functional units in the various embodiments of the present invention may be integrated into a single module, each unit may exist physically separately, or two or more units may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.

[0118] The storage medium mentioned above may be a read-only memory, a magnetic disk, or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and are not to be construed as limiting the present invention. Persons skilled in the art may make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.

Claims

1. A method for controlling a code converter, characterized in that: The following steps are involved: When it is determined that an idle signal is received, obtaining a first number of application programs that require source code to be converted into machine code by the code converter; determining a first target conversion duration based on the first quantity, and controlling the code converter to start operation; After each completion of the code conversion of the application, accumulating a first working time of the code converter; controlling the transcoder according to the first target conversion duration and the first operating duration; After obtaining the first number of applications that require source code to be converted into machine code by the code converter, the method further includes: Obtain historical data used by each functional unit in the application; Obtaining, based on the historical data, a second number of functional units in the application program that require conversion of source code into machine code by a code converter; wherein the second number is greater than or equal to the first number; Determining a second target conversion duration based on the second number; wherein the second target conversion duration is less than or equal to the first target conversion duration; After completing the code conversion of each functional unit, accumulating a second working time of the code converter; The code converter is controlled according to the second target conversion duration and the second operating duration.

2. The method according to claim 1, characterized in that The controlling the transcoder according to the first target conversion duration and the first working duration includes: If the first operating duration is greater than or equal to the first target conversion duration, controlling the code converter to stop operating; or If the first operating time is less than the first target conversion time, the code converter is controlled to maintain an operating state.

3. The method according to claim 1 or 2, characterized in that in, There is a positive correlation between the first quantity and the first target conversion duration.

4. The method according to claim 1, wherein After obtaining the second quantity, the method further includes: sorting the priorities of the functional units according to the historical data to generate a sorting result; The step of controlling the code converter to start working comprises: According to the sorting result, the code converter is controlled to start working.

5. The method according to claim 1, characterized in that Also includes: When it is confirmed that the control signal of the application is monitored, the code converter is controlled to stop working.

6. A control device for a code converter, characterized in that include: an acquisition module, configured to acquire a first number of application programs that require source code to be converted into machine code by the code converter when determining that an idle signal is received; a determining module, configured to determine a first target conversion duration based on the first quantity, and control the code converter to start operation; an accumulation module, configured to accumulate the first working time of the code converter after completing the code conversion of each application; a control module, configured to control the transcoder according to the first target conversion duration and the first operating duration; After obtaining the first number of applications that require source code to be converted into machine code by the code converter, the apparatus is further configured to: Obtain historical data used by each functional unit in the application; Obtaining, based on the historical data, a second number of functional units in the application program that require conversion of source code into machine code by a code converter; wherein the second number is greater than or equal to the first number; Determining a second target conversion duration based on the second number; wherein the second target conversion duration is less than or equal to the first target conversion duration; After completing the code conversion of each functional unit, accumulating a second working time of the code converter; The code converter is controlled according to the second target conversion duration and the second operating duration.

7. A vehicle control device, characterized in that: include processor and memory; The processor reads the executable program code stored in the memory to run a program corresponding to the executable program code, so as to implement the control method of the code converter according to any one of claims 1 to 5.

8. A vehicle, characterized in that: include: The vehicle control device according to claim 7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the control method of the code converter according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Vehicle-mounted domain controller OTA software upgrading method and device, storage medium and terminal

    CN111158714A

  • Code compiling process monitoring method and device, equipment and medium

    CN113127001A