Control method and device and electronic equipment
By monitoring the accumulated error values of eMMC in the on-board terminal and restarting the MPU and eMMC if necessary, the problem of interrupt failure of eMMC firmware and MPU is solved, ensuring the stability and safety of the on-board system.
Patent Information
- Application Number
- CN202410123470.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-29
- Publication Date
- 2025-07-29
AI Technical Summary
When an accidental voltage drop occurs, eMMC firmware and MPU will be interrupted and invalidated, causing the MPU to be unable to read and write stored files, affecting the driving user's car use experience.
In the case where there is a specified error in the embedded multimedia controller during the current driving cycle, the target identification is obtained and the accumulated value of the error is counted. When the accumulated value is greater than the preset threshold and the target identification indicates that the eMMC has not restarted, the restart information is sent to the eMMC and the microprocessor unit is controlled to restart.
Quickly restore the normal functions of MPU and eMMC, ensure that the on-board terminal can continue to operate correctly when there is a specified error in the eMMC, and ensure driving safety and user experience.
Smart Images

Figure CN120386558A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of vehicle-mounted controllers, and in particular, to a control method, device, and electronic device. Background Art
[0002] In the system of a vehicle-mounted controller, a system architecture of multi-core heterogeneous of a Micro Processor Unit (MPU) and a Mirco Controller Unit (MCU) is adopted. The upper-layer application of the MPU performs input / output operation interaction with an Embedded MultiMedia Card (eMMC) hardware storage device through the file system interface provided by the operating system Linux installed on the MPU.
[0003] However, when the eMMC encounters an accidental voltage drop, a failure scenario where the eMMC firmware and the MPU are interrupted will occur, so that the MPU cannot read and write the eMMC storage files, affecting the driving experience of users. Summary of the Invention
[0004] To solve the above technical problems, the present disclosure provides a control method, device, and electronic device.
[0005] To achieve the above object, the present disclosure adopts the following technical solutions:
[0006] In a first aspect, the present disclosure provides a control method, which is applied to a vehicle-mounted terminal. The vehicle-mounted terminal includes a microprocessor unit and an embedded multimedia controller, and includes: when a specified error exists in the embedded multimedia controller within the current driving cycle, obtaining a target identifier and counting an accumulated value of the specified error; wherein the specified error includes any one of an input error and an output error, and the target identifier is used to indicate whether the embedded multimedia controller has been restarted; when the target identifier is used to indicate that the embedded multimedia controller has not been restarted and the accumulated value is greater than a preset threshold, sending a restart message to the embedded multimedia controller and controlling the microprocessor unit to restart; wherein the restart message is used to indicate the embedded multimedia controller to restart.
[0007] In some feasible examples, the vehicle-mounted terminal further includes a microcontroller unit. Obtaining the target identifier includes: sending an obtaining message to the microcontroller unit; wherein the obtaining message is used to indicate the microcontroller unit to query the target identifier corresponding to the embedded multimedia controller; receiving the target identifier sent by the microcontroller unit.
[0008] In some implementable examples, controlling the restart of the microprocessor unit includes: after sending indication information to the microcontroller unit and stop information for indicating to stop the heartbeat between the microcontroller unit, controlling the restart of the microprocessor unit; wherein, the indication information is used to indicate that the microcontroller unit sets the target identifier to that the embedded multimedia controller has been restarted.
[0009] In some implementable examples, controlling the restart of the microprocessor unit includes: when controlling the restart of the microprocessor unit, obtaining interaction data with the embedded multimedia controller within a preset time period and storing the interaction data in the system memory; after controlling the restart of the microprocessor unit, obtaining the interaction data from the system memory and writing the interaction data into the embedded multimedia controller.
[0010] Controlling the restart of the microprocessor unit. In some implementable examples, the system memory is a memory directory specified for power change storage.
[0011] In some implementable examples, after obtaining the interaction data from the system memory, the control method provided by the present disclosure further includes: reporting the interaction data to the cloud server.
[0012] In a second aspect, the present disclosure provides a control device applied to an in-vehicle terminal, where the in-vehicle terminal includes a microprocessor unit and an embedded multimedia controller, including: a processing unit, configured to control the transceiver unit to obtain a target identifier and count the cumulative value of a specified error when there is a specified error in the embedded multimedia controller during the current driving cycle; wherein, the specified error includes any one of an input error and an output error, and the target identifier is used to indicate whether the embedded multimedia controller has been restarted; the processing unit is further configured to, when the target identifier obtained by the transceiver unit is used to indicate that the embedded multimedia controller has not been restarted and the cumulative value counted by the transceiver unit is greater than a preset threshold, control the transceiver unit to send a restart message to the embedded multimedia controller and control the restart of the microprocessor unit; wherein, the restart message is used to indicate the restart of the embedded multimedia controller.
[0013] In some implementable examples, the processing unit is specifically configured to control the transceiver unit to send acquisition information to the microcontroller unit; wherein, the acquisition information is used to indicate that the microcontroller unit queries the target identifier corresponding to the embedded multimedia controller; the transceiver unit is specifically configured to receive the target identifier sent by the microcontroller unit.
[0014] In some implementable examples, the processing unit is specifically configured to control the transceiver unit to send indication information and stop information for indicating to stop the heartbeat between the microcontroller unit, and then control the restart of the microprocessor unit; wherein, the indication information is used to indicate that the microcontroller unit sets the target identifier to that the embedded multimedia controller has been restarted.
[0015] In some feasible examples, the processing unit is specifically configured to control the transceiver unit to obtain the interaction data with the embedded multimedia controller within a preset time period when controlling the restart of the microprocessor unit, and store the interaction data obtained by the transceiver unit into the system memory; the processing unit is specifically configured to obtain the interaction data from the system memory after controlling the restart of the microprocessor unit, and write the interaction data into the embedded multimedia controller.
[0016] Control the restart of the microprocessor unit. In some feasible examples, the system memory is a memory directory designated for power change storage.
[0017] In some feasible examples, the processing unit is further configured to control the transceiver unit to report the interaction data to the cloud server.
[0018] In a third aspect, the present disclosure provides an electronic device, including: a memory and a processor, the memory is used for storing a computer program; the processor is used for, when executing the computer program, enabling the electronic device to implement the control method provided in the first aspect as described above.
[0019] In a fourth aspect, the present disclosure provides a computer-readable storage medium, including: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a computing device, enabling the computing device to implement the control method provided in the first aspect as described above.
[0020] In a fifth aspect, the present disclosure provides a vehicle, including any one of the control devices provided in the second aspect.
[0021] In the present disclosure, the names of the above control devices do not constitute a limitation to the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear under other names. As long as the functions of each device or functional module are similar to those of the present disclosure and fall within the scope of the claims of the present disclosure and their equivalent technologies.
[0022] These aspects or other aspects of the present disclosure will be more clearly understood in the following description.
[0023] The technical solution provided by the present disclosure has the following advantages compared with the prior art:
[0024] The control method provided by the present disclosure, in the case that a specified error exists in the embedded multimedia controller within the current driving cycle, obtains a target identifier and counts the cumulative value of the specified error. Thus, the in-vehicle terminal can determine whether to restart the eMMC and the MPU based on the target identifier and the cumulative value. For example, when the target identifier is used to indicate that the eMMC has not been restarted and the cumulative value is greater than a preset threshold, it means that the eMMC has not been restarted and the cumulative value is greater than the preset threshold. In this case, the problem of the specified error of the in-vehicle eMMC can be solved by restarting the eMMC and the MPU. In this way, when a specified error exists between the MPU and the eMMC, restarting the MPU and the eMMC ensures that the in-vehicle terminal can quickly recover when the eMMC has a specified error, thereby ensuring the reading and writing of the files stored in the eMMC by the MPU, and solving the failure scenario where the eMMC firmware and the MPU are interrupted when the eMMC encounters an accidental voltage drop. As a result, the MPU cannot read and write the files stored in the eMMC, affecting the driving experience of the user. Brief Description of the Drawings
[0025] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure and, together with the specification, are used to explain the principles of the present disclosure.
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0027] Figure 1 One of the flow diagrams of a control method provided by an embodiment of the present disclosure;
[0028] Figure 2 The structural diagram of an in-vehicle terminal of a control method provided by an embodiment of the present disclosure;
[0029] Figure 3 Another flow diagram of a control method provided by an embodiment of the present disclosure;
[0030] Figure 4 Another flow diagram of a control method provided by an embodiment of the present disclosure;
[0031] Figure 5 Another flow diagram of a control method provided by an embodiment of the present disclosure;
[0032] Figure 6 Another flow diagram of a control method provided by an embodiment of the present disclosure;
[0033] Figure 7Schematic diagram of a control device provided by an embodiment of the present disclosure;
[0034] Figure 8 Schematic diagram of a vehicle terminal provided by an embodiment of the present disclosure;
[0035] Figure 9 Schematic diagram of a computer program product of a control method provided by an embodiment of the present disclosure. Detailed implementation manners
[0036] In order to more clearly understand the above objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.
[0037] In the following description, many specific details are set forth in order to fully understand the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all of the embodiments.
[0038] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.
[0039] As Figure 1 shown, the control method provided by the embodiment of the present disclosure is applied to a vehicle terminal, and the vehicle terminal includes a microprocessor unit and an embedded multimedia controller. The method includes the following steps S11 and S12:
[0040] S11. When a specified error exists in the embedded multimedia controller during the current driving cycle, obtain a target identifier and count the cumulative value of the specified error; wherein, the specified error includes any one of an input error and an output error, and the target identifier is used to indicate whether the embedded multimedia controller has been restarted.
[0041] In some examples, the in-vehicle terminal includes a Micro Processor Unit (MPU), a Micro Controller Unit (MCU), and an Embedded Multi MediaCard (eMMC). The MPU and the MUC can communicate with each other, and the MPU and the eMMC can communicate with each other.
[0042] In some examples, the MPU periodically communicates with the I / O of the eMMC. For example, the MPU periodically sends a request for information to the I / O of the eMMC. After receiving the request for information, the eMMC sends feedback information to the MPU through the I / O, such as the data stored in the eMMC. When the MPU does not receive the feedback information returned by the eMMC within a preset time period, the MPU determines that there is a specified error in the embedded multimedia controller during the current driving cycle. When the MPU receives the feedback information returned by the eMMC within the preset time period, the MPU determines that there is no specified error in the embedded multimedia controller during the current driving cycle.
[0043] In some examples, the MCU stores a target identifier for indicating whether the embedded multimedia controller has been restarted. Therefore, when the MPU determines that there is a specified error in the embedded multimedia controller during the current driving cycle, it can obtain the target identifier from the MUC. For example, when the target identifier feedback by the MCU indicates that the embedded multimedia controller has not been restarted, the MPU can instruct the eMMC to restart. Alternatively, when the target identifier feedback by the MCU indicates that the embedded multimedia controller has been restarted, a prompt message is generated. The prompt message is used to inform the user that there is a problem with the eMMC.
[0044] In some examples, after the in-vehicle terminal is powered on, the target identifier in the MCU is set to the initial state. For example, the MCU sets the target identifier to indicate that the embedded multimedia controller has not been restarted. After that, when the MPU instructs the eMMC to restart, the MPU sends update information to the eMMC. Based on the update information sent by the MPU, the eMMC sets the target identifier from the initial state to the restart state. For example, the MCU sets the target identifier to indicate that the embedded multimedia controller has been restarted. Until the in-vehicle terminal is powered off, the target identifier is in the restart state.
[0045] In some cases, the eMMC chip vendor may experience a failure scenario where the eMMC firmware and the MPU chip are disconnected due to an unexpected voltage drop or internal defect. This can cause the MPU to be unable to read or write files to the eMMC storage, resulting in file system access failures for the current drive cycle. This can lead to malfunctions in the configuration file reading application, and log files cannot be written to disk, impacting the driver's experience. Furthermore, the current MPU system design stores log data on the eMMC. If the eMMC fails, this log data cannot be recorded, leaving no data for subsequent analysis. It also makes it impossible to record vehicle data from the current drive cycle and track vehicle operations performed during the drive cycle. Furthermore, if access to the MPU and eMMC fails, the vehicle terminal will detect an I / O request error, but this failure cannot be effectively corrected. The eMMC failure does not affect malfunctions in programs already loaded into memory, such as the MCU monitoring and MPU heartbeat monitoring. This drive cycle can cause malfunctions in lighting and air conditioning control, requiring the user to complete the drive cycle and power the vehicle back on before the eMMC malfunction is resolved, impacting driving safety and the user's driving experience.
[0046] In some examples, the MPU includes a storage block read and write request module (e.g., a block_rep module) for interacting with the I / O of the eMMC. The block_rep module monitors for specified errors when interacting with the I / O of the eMMC. If the failure count (i.e., cumulative value) of the specified errors in a drive cycle reaches an upper limit (i.e., a preset threshold), an eMMC restart is triggered.
[0047] S12: If the target identifier indicates that the embedded multimedia controller has not been restarted and the accumulated value is greater than a preset threshold, send restart information to the embedded multimedia controller and control the microprocessor unit to restart. The restart information is used to instruct the embedded multimedia controller to restart.
[0048] In some examples, the preset threshold is equal to 5.
[0049] In some examples, the control method provided by the embodiments of the present disclosure obtains a target identifier and counts the cumulative value of the specified error when a specified error exists in the embedded multimedia controller during the current driving cycle. When the target identifier is used to indicate that the eMMC has not been restarted and the cumulative value is greater than a preset threshold, a restart message is sent to the eMMC and the MPU is restarted. In this way, when a specified error exists between the MPU and the eMMC, restarting the MPU and eMMC ensures that the vehicle terminal can recover quickly even when a specified error exists in the eMMC, thereby providing protection for the continued correct operation of the vehicle terminal and driving safety.
[0050] In some examples, for the control method provided by the embodiments of the present disclosure, when a specified error exists in the embedded multimedia controller within the current driving cycle, a target identifier is obtained, and the cumulative value of the specified error is counted. When the target identifier is used to indicate that the eMMC has been restarted, at this time, the MPU does not restart again, but generates a prompt message for indicating to the user that there is a problem with the eMMC. Thus, the user can repair the eMMC in a timely manner based on the prompt message to ensure the normal operation of the eMMC.
[0051] In some examples, when the eMMC has a permanent failure, when restarting the MPU and the eMMC at this time, the problem that the MPU determines that there is a specified error in the eMMC cannot be solved. For this reason, for the control method provided by the embodiments of the present disclosure, when it is determined that the target identifier is used to indicate that the eMMC has not been restarted and the cumulative value is greater than a preset threshold, the MPU and the eMMC are restarted. After restarting the MPU and the eMMC, if there is still a specified error between the MPU and the eMMC, at this time, the MPU does not restart again, but generates a prompt message for indicating to the user that there is a problem with the eMMC. Thus, the user can repair the eMMC in a timely manner based on the prompt message to ensure the normal operation of the eMMC. At the same time, it avoids frequent restarting of the MPU and the eMMC, which affects driving safety.
[0052] In some examples, when a specified error occurs in the eMMC, it may not be recoverable even after restarting the eMMC. In order to avoid a more unsafe driving risk caused by frequent restarting of the MPU within a driving cycle, the characteristic that data can still be saved after restarting by using a Static Random Access Memory (SRAM) is utilized. The block_rep module writes the target identifier into the SRMA after restarting the eMMC within one power-on cycle of the vehicle terminal. After the eMMC is restarted, the MPU determines whether the eMMC has been restarted by querying the target identifier in the MCU. If the target identifier is used to indicate that the eMMC has been restarted, the block_rep module no longer restarts the eMMC and the MPU even if it continuously obtains the specified error.
[0053] As can be seen from the above, for the control method provided by the embodiments of the present disclosure, when a specified error exists in the embedded multimedia controller within the current driving cycle, a target identifier is obtained, and the cumulative value of the specified error is counted. When the target identifier is used to indicate that the eMMC has not been restarted and the cumulative value is greater than a preset threshold, a restart message is sent to the eMMC, and the MPU is restarted. In this way, when there is a specified error between the MPU and the eMMC, restarting the MPU and the eMMC ensures that the vehicle terminal can quickly recover when there is a specified error in the eMMC, providing guarantee for the continuous correct operation of the vehicle terminal and the driving safety officer.
[0054] In some feasible examples, in combination with Figure 1, such as Figure 3 shown, the above S11 can be specifically implemented by the following S110 and S111.
[0055] S110. When there is a specified error in the embedded multimedia controller during the current driving cycle, send a request for information to the microcontroller unit; wherein, the request for information is used to instruct the microcontroller unit to query the target identifier corresponding to the embedded multimedia controller.
[0056] S111. Receive the target identifier sent by the microcontroller unit and count the cumulative value of the specified error.
[0057] In some examples, when there is a specified error in the embedded multimedia controller during the current driving cycle, the block_rep module sends a request for information to the microcontroller unit. The block_rep module receives the target identifier sent by the microcontroller unit and counts the cumulative value of the specified error.
[0058] In some examples, when the MPU determines that there is a specified error in the eMMC during the current driving cycle, the MPU starts to count the specified error and accumulates it to obtain the cumulative value of the specified error.
[0059] In some implementable examples, in combination with Figure 3 , such as Figure 4 shown, the above S12 can be specifically implemented by the following S120.
[0060] S120. When the target identifier is used to indicate that the embedded multimedia controller has not been restarted and the cumulative value is greater than a preset threshold, send a restart message to the embedded multimedia controller, send an indication message to the microcontroller unit, and send a stop message for instructing to stop the heartbeat with the microcontroller unit, and then control the microprocessor unit to restart; wherein, the indication message is used to instruct the microcontroller unit to set the target identifier as the embedded multimedia controller has been restarted.
[0061] In some examples, in order to avoid repeated restart of the MPU, after restarting the MPU, the IPCF of the MPU can send a preset identifier for indicating that the microprocessor unit has been controlled to restart to the MCU, so that during the subsequent startup process, the MPU can determine whether the MPU has been restarted based on the preset identifier stored in the MCU, thereby avoiding repeated restart of the MPU.
[0062] In some examples, when the target identifier is used to indicate that the embedded multimedia controller has not been restarted and the cumulative value is greater than a preset threshold, the block_rep module sends a restart message to the embedded multimedia controller, sends the target identifier indicating that the embedded multimedia controller has been restarted to the microcontroller unit, and sends an indication message for restarting the MPU to the inter-core interaction framework module of the MPU (such as called IPCF). At this time, after receiving the indication message for restarting the MPU sent by the block_rep module, the IPCF restarts the MPU through panic. At the same time, the IPCF sends a stop message indicating to stop the heartbeat between the MCU and the microcontroller unit to the MCU. In this way, the restart of both the eMMC and the MPU is completed.
[0063] In some implementable examples, in combination with Figure 3 , such as Figure 5 shown, the above S12 can be specifically implemented by the following S121 and S122.
[0064] S121. When the target identifier is used to indicate that the embedded multimedia controller has not been restarted and the cumulative value is greater than a preset threshold, after sending a restart message to the embedded multimedia controller, sending an indication message to the microcontroller unit, and a stop message for indicating to stop the heartbeat between the microcontroller unit, when controlling the restart of the microprocessor unit, obtain the interaction data with the embedded multimedia controller within a preset time period and store the interaction data in the system memory.
[0065] In some examples, taking the operating system running on the MPU as Linux as an example, when the Linux kernel enables the pstore configuration and the block_rep module determines that there is a specified error in the eMMC, after the MPU restarts, the power change storage module of the MPU (such as called pstore) cooperates with Linux to actively panic. For example, reserve the system memory of Linux to store the log information at the moment of system panic. When there is a specified error in the eMMC, the MPU records the interaction data between Linux and the eMMC within a preset time period. For example, write the preset number (such as 10) of log information in the preset time period before the reporting time of the specified error in the eMMC into the system memory of Linux. After using Linux to actively call the panic method, the pstore mechanism is triggered to store the log in the system memory. For example, the system memory is the memory directory specified for pstore. After the eMMC restarts and recovers and reads the recorded log information from the pstore node, the log information is written to the eMMC for storage, and then use the log service program deployed in Linux to transfer the log information written to the eMMC to the cloud server. The cloud server searches for key information and extracts the log information of the eMMC exception for the eMMC manufacturer to analyze the problem.
[0066] In some examples, the preset time period can be a time period composed of the start time at a preset step length from the end time corresponding to the restart of the control microprocessor unit. For example, if the preset step length is 10s and the time corresponding to the restart of the control microprocessor unit is 17:44:23 on January 26, 2024, then the start time is 17:34:23 on January 26, 2024. That is, the start time of the preset time period is 17:34:23 on January 26, 2024, and the end time is 17:44:23 on January 26, 2024.
[0067] S122. After restarting the control microprocessor unit, obtain the interaction data from the system memory and write the interaction data into the embedded multimedia controller.
[0068] Restart the control microprocessor unit. Restart the control microprocessor unit. Restart the control microprocessor unit. In some feasible examples, the system memory is a memory directory specified for power change storage.
[0069] In some feasible examples, in combination with Figure 5 , such as Figure 6 shown, the control method provided by the embodiments of the present disclosure further includes: S13.
[0070] S13. Report the interaction data to the cloud server.
[0071] In some examples, the cloud server parses the reported log information to determine whether it is triggered by a specified error in the eMMC, finds the specified log information, and generates a notification card for the R & D personnel. The R & D personnel collect the logs and contact the eMMC chip supplier to analyze the problem, so as to ensure that the eMMC can better provide services for users.
[0072] The above mainly introduces the solution provided by the embodiments of the present disclosure from the perspective of methods. To implement the above functions, it includes the corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.
[0073] In the embodiments of the present disclosure, the control device may be divided into functional modules according to the above method examples. For example, each functional module may be corresponding to each function, or two or more functions may be integrated into one processing module. The above integrated module may be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiments of the present disclosure is illustrative, and is only a logical function division. There may be other division methods in actual implementation.
[0074] As Figure 7 shown, it is a schematic structural diagram of a control device 10 provided by an embodiment of the present disclosure. Applied to a vehicle-mounted terminal, the vehicle-mounted terminal includes a microprocessor unit and an embedded multimedia controller, and includes a processing unit 101 and a transceiver unit 102.
[0075] The processing unit 101 is configured to control the transceiver unit 102 to obtain a target identifier and count the cumulative value of a specified error when there is a specified error in the embedded multimedia controller during the current driving cycle; wherein the specified error includes any one of an input error and an output error, and the target identifier is used to indicate whether the embedded multimedia controller has been restarted; the processing unit 101 is further configured to control the transceiver unit 102 to send a restart message to the embedded multimedia controller and control the microprocessor unit to restart when the target identifier obtained by the transceiver unit 102 is used to indicate that the embedded multimedia controller has not been restarted and the cumulative value counted by the transceiver unit 102 is greater than a preset threshold; wherein the restart message is used to indicate the embedded multimedia controller to restart.
[0076] In some feasible examples, the processing unit 101 is specifically configured to control the transceiver unit 102 to send an acquisition message to the microcontroller unit; wherein the acquisition message is used to indicate the microcontroller unit to query the target identifier corresponding to the embedded multimedia controller; the transceiver unit 102 is specifically configured to receive the target identifier sent by the microcontroller unit.
[0077] In some feasible examples, the processing unit 101 is specifically configured to control the transceiver unit 102 to send an indication message and a stop message for indicating to stop the heartbeat between the transceiver unit 102 and the microcontroller unit, and then control the microprocessor unit to restart; wherein the indication message is used to indicate the microcontroller unit to set the target identifier to the embedded multimedia controller has been restarted.
[0078] In some feasible examples, the processing unit 101 is further configured to control the transceiver unit 102 to obtain the interaction data with the embedded multimedia controller within a preset time period when controlling the microprocessor unit to restart, and store the interaction data obtained by the transceiver unit 102 into the system memory; the processing unit 101 is further configured to obtain the interaction data from the system memory after controlling the microprocessor unit to restart, and write the interaction data into the embedded multimedia controller.
[0079] Controlling the microprocessor unit to restart Controlling the microprocessor unit to restart In some feasible examples, the system memory is a memory directory specified for power change storage.
[0080] In some feasible examples, the processing unit 101 is further configured to control the transceiver unit 102 to report the interaction data to the cloud server.
[0081] Wherein, all relevant contents of each step involved in the above method embodiment can be cited to the function description of the corresponding functional module, and its function will not be elaborated here.
[0082] Of course, the control device 10 provided in the embodiments of the present disclosure includes but is not limited to the above modules. For example, the control device 10 may further include a storage unit 103. The storage unit 103 may be used to store the program code of the control device 10, and may also be used to store the data generated during the operation of the control device 10, such as the data in the write request, etc.
[0083] Figure 8 Schematic diagram of the structure of a vehicle-mounted terminal provided by an embodiment of the present disclosure, as Figure 8 shown, the vehicle-mounted terminal may include: at least one processor 51, a memory 52, a communication interface 53, and a communication bus 54.
[0084] The following combines Figure 8 to specifically introduce each component of the vehicle-mounted terminal:
[0085] Among them, the processor 51 is the control center of the electronic device 10, and may be a single processor or a collective term for multiple processing elements. For example, the processor 51 is a central processing unit (CPU), or may be an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present disclosure, such as: one or more DSPs, or one or more field programmable gate arrays (FPGAs).
[0086] In a specific implementation, as an example, the processor 51 may include one or more CPUs, such as Figure 8 CPU0 and CPU1 shown in Figure 8 . Also, as an example, the electronic device may include multiple processors, such as
[0087] the processor 51 and the processor 55 shown in
[0088] . Each of these processors may be a single-core processor (Single-CPU) or a multi-core processor (Multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0089] The communication interface 53 uses any device such as a transceiver to communicate with other devices or communication networks, such as a Radio Access Network (RAN), a Wireless Local Area Networks (WLAN), a terminal, the cloud, etc. The communication interface 53 may include an acquisition unit 101 to implement the acquisition function.
[0090] The communication bus 54 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience in representation, Figure 8 it is only represented by a thick line in Figure 8 , but it does not mean that there is only one bus or one type of bus.
[0091] As an example, in combination with Figure 7 , the functions implemented by the transceiver unit 102 in the control device 10 are the same as those of the communication interface 53 in Figure 8 , the functions implemented by the processing unit 101 in the control device 10 are the same as those of the processor 51 in Figure 8 , and the functions implemented by the storage unit 103 in the control device 10 are the same as those of the memory 52 in Figure 8 .
[0092] Another embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a computing device, the computing device is caused to execute the mode switching method shown in the above method embodiment.
[0093] In some embodiments, the disclosed method may be implemented as computer program instructions encoded in a computer-readable storage medium in a machine-readable format or encoded in other non-transitory media or articles.
[0094] Figure 9 Schematically shows a conceptual partial view of a computer program product provided by an embodiment of the present disclosure. The computer program product includes a computer program for executing a computer process on a computing device.
[0095] In one embodiment, the computer program product is provided using a signal-bearing medium 410. The signal-bearing medium 410 may include one or more program instructions, which when run by one or more processors can provide the functions or partial functions described above for Figure 1 . Thus, for example, referring to the embodiment shown in Figure 1 , one or more features of S11 and S12 may be borne by one or more instructions associated with the signal-bearing medium 410. In addition, Figure 9 the program instructions in also describe example instructions.
[0096] In some examples, the signal-bearing medium 410 may include a computer-readable medium 411, such as, but not limited to, a hard disk drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a read-only memory (ROM), or a random access memory (RAM), and so on.
[0097] In some embodiments, the signal-bearing medium 410 may include a computer-recordable medium 412, such as, but not limited to, a memory, a read / write (R / W) CD, a R / W DVD, and so on.
[0098] In some embodiments, the signal-bearing medium 410 may include a communication medium 413, such as, but not limited to, digital and / or analog communication media (e.g., fiber optic cables, waveguides, wired communication links, wireless communication links, and so on).
[0099] The signal-bearing medium 410 may be conveyed by a wireless form of the communication medium 413 (e.g., a wireless communication medium compliant with the IEEE 802.41 standard or other transmission protocols). One or more program instructions may be, for example, computing device-executable instructions or logic-implemented instructions.
[0100] In some examples, such as for Figure 7 the control device 10 described, it may be configured to provide various operations, functions, or actions in response to one or more program instructions via the computer-readable medium 411, the computer-recordable medium 412, and / or the communication medium 413.
[0101] From the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0102] In several embodiments provided by the present disclosure, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical functional division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point, the displayed or discussed couplings or direct couplings or communication connections to each other may be through some interfaces. The indirect couplings or communication connections of the devices or units may be in electrical, mechanical, or other forms.
[0103] The unit described as a separation component may or may not be physically separated. The component shown as a unit may be a single physical unit or multiple physical units, that is, it may be located in one place or may be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0104] In addition, each functional unit in various embodiments of the present disclosure may be integrated in a processing unit, may exist separately as individual physical units, or two or more units may be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0105] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present disclosure, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs that can store program codes.
[0106] The above are only specific implementation manners of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A control method, characterized in that, Applied to a vehicle terminal, the vehicle terminal includes a microprocessor unit and an embedded multimedia controller, and includes: When a specified error exists in the embedded multimedia controller within the current driving cycle, obtain a target identifier and count the cumulative value of the specified error; wherein, the specified error includes any one of an input error and an output error, and the target identifier is used to indicate whether the embedded multimedia controller has been restarted; When the target identifier is used to indicate that the embedded multimedia controller has not been restarted and the cumulative value is greater than a preset threshold, send a restart message to the embedded multimedia controller and control the microprocessor unit to restart; wherein, the restart message is used to indicate the embedded multimedia controller to restart.
2. The control method according to claim 1, wherein The vehicle terminal further includes a microcontroller unit, and the obtaining of the target identifier includes: Send an obtaining message to the microcontroller unit; wherein, the obtaining message is used to indicate the microcontroller unit to query the target identifier corresponding to the embedded multimedia controller; Receive the target identifier sent by the microcontroller unit.
3. The control method according to claim 2, wherein The restarting of the microprocessor unit includes: After sending an indication message and a stop message for indicating to stop the heartbeat with the microcontroller unit to the microcontroller unit, control the microprocessor unit to restart; wherein, the indication message is used to indicate the microcontroller unit to set the target identifier to that the embedded multimedia controller has been restarted.
4. The control method according to claim 2, wherein The controlling the microprocessor unit to restart includes: When controlling the microprocessor unit to restart, obtain the interaction data with the embedded multimedia controller within a preset time period and store the interaction data in the system memory; After controlling the microprocessor unit to restart, obtain the interaction data from the system memory and write the interaction data into the embedded multimedia controller.
5. The control method according to claim 4, characterized in that The system memory is a memory directory specified for power change storage.
6. The control method according to claim 4, characterized in that, After obtaining the interaction data from the system memory, the method further includes: Report the interaction data to a cloud server.
7. A control device, characterized in that, Applied to a vehicle terminal, the vehicle terminal includes a microprocessor unit and an embedded multimedia controller, and includes: A processing unit, configured to control a transceiver unit to obtain a target identifier and count the cumulative value of a specified error when a specified error exists in the embedded multimedia controller within the current driving cycle; wherein, the specified error includes any one of an input error and an output error, and the target identifier is used to indicate whether the embedded multimedia controller has been restarted; The processing unit is further configured to control the transceiver unit to send a restart message to the embedded multimedia controller and control the microprocessor unit to restart when the target identifier obtained by the transceiver unit is used to indicate that the embedded multimedia controller has not been restarted and the cumulative value counted by the transceiver unit is greater than a preset threshold; wherein, the restart message is used to indicate the embedded multimedia controller to restart.
8. An electronic device, characterized in that, Includes: A memory and a processor, the memory being used for storing a computer program; the processor being used for, when executing the computer program, enabling the electronic device to implement the control method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, Comprising: A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a computing device, the computing device is enabled to implement the control method according to any one of claims 1-6.
10. A vehicle comprising the control device according to claim 7.