Chip restarting method and device, equipment, storage medium and product
By obtaining the input voltage and CAN chip information when the vehicle is powered on, determining the CAN chip protection mode and controlling its restart, the problem of power supply of some functions interrupted when the basic chip of the system is undervoltage, ensuring the normal operation of the vehicle function.
Patent Information
- Application Number
- CN202411300457.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-01-07
AI Technical Summary
When the system basic chip is undervoltage, some CAN chips cannot be restarted, resulting in the vehicle function not operating normally.
When the vehicle is powered on, obtain the input voltage of the system basic chip and the chip information of the CAN chip, determine the protection mode of the CAN chip based on the voltage value and chip information, and control the CAN chip to enter sleep or normal mode through the system basic chip to achieve restart .
It ensures that the system basic chip provides rapid power supply to each embedded system, ensures that the function returns to normal after the abnormality disappears, and solves the problem of power supply of some functions interrupted when the system basic chip is undervoltage.
Smart Images

Figure CN119271457A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip restart technology, and in particular to a chip restart method, device, equipment, storage medium and product. Background Art
[0002] When the system base chip is undervoltage, the communication with the embedded systems connected to it will be interrupted. At this time, the CAN chip needs to be restarted to ensure the normal communication between the system base chip and each embedded system. In the traditional CAN chip restart mechanism, when the system base chip is undervoltage, the power supply to all embedded systems is interrupted at the same time. At this time, some CAN chips that meet the restart trigger conditions are restarted, while some CAN chips that do not meet the trigger conditions cannot be restarted, so the power supply cannot be restored, resulting in the corresponding functions of the vehicle not being able to operate normally.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a chip restart method, device, equipment, storage medium and product, aiming to solve the technical problem that when the system basic chip is under-voltage, the power supply of some functions is stopped, resulting in the inability to realize some functions of the vehicle.
[0005] To achieve the above object, the present invention provides a chip restart method, the method comprising:
[0006] When the vehicle is powered on, obtaining the input terminal voltage of the system basis chip and the chip information of the CAN chip connected to the system basis chip;
[0007] When the input terminal voltage is less than a first preset voltage value, determining a corresponding CAN chip protection mode according to the chip information;
[0008] According to the CAN chip protection mode, the CAN chip corresponding to the CAN chip protection mode is controlled by the system basic chip to restart.
[0009] In one embodiment, the chip information includes a high-speed CAN chip, the CAN chip protection mode includes a high-speed CAN chip protection mode, and the step of determining the corresponding CAN chip protection mode according to the chip information includes:
[0010] When the chip information is a high-speed CAN chip, determining that the CAN chip protection mode is the high-speed CAN chip protection mode;
[0011] Correspondingly, the step of controlling the CAN chip corresponding to the CAN chip protection mode to restart by the system basis chip according to the CAN chip protection mode includes:
[0012] Performing bus detection on the high-speed CAN chip, and when the bus is in an activated state, disconnecting the high-speed communication circuit between the system basis chip and the high-speed CAN chip through the system basis chip, so that the high-speed CAN chip enters a sleep mode;
[0013] When the high-speed CAN chip enters the sleep mode, obtaining the input terminal voltage, and detecting whether the input terminal voltage reaches the first preset voltage value;
[0014] If yes, controlling the system basic chip to start the high-speed communication circuit so that the high-speed CAN chip enters a normal mode;
[0015] If not, the high-speed CAN chip is kept in sleep mode.
[0016] In one embodiment, the chip information includes a low-speed CAN chip, the CAN chip protection mode includes a low-speed CAN chip protection mode, and the step of determining the corresponding CAN chip protection mode according to the chip information includes:
[0017] When the chip information is a low-speed CAN chip, determining that the CAN chip protection mode is the low-speed CAN chip protection mode;
[0018] Correspondingly, the step of controlling the CAN chip corresponding to the CAN chip protection mode to restart by the system basis chip according to the CAN chip protection mode includes:
[0019] Obtaining an output voltage of the system basis chip;
[0020] When the output voltage is less than a second preset voltage value, disconnecting the low-speed communication circuit between the system basis chip and the low-speed CAN chip through the system basis chip, and making the low-speed CAN chip enter a sleep mode;
[0021] When the low-speed CAN chip enters the sleep mode, obtaining the input terminal voltage, and detecting whether the input terminal voltage reaches the first preset voltage value;
[0022] If yes, controlling the system base chip to start the low-speed communication circuit so that the low-speed CAN chip enters a normal mode;
[0023] If not, the low-speed CAN chip is kept in sleep mode.
[0024] In one embodiment, before the step of determining the corresponding CAN chip protection mode according to the chip information when the input terminal voltage is less than the first preset voltage value, the step includes:
[0025] When the input terminal voltage reaches the first preset voltage value, determining that the system base system chip is in a normal state, and starting timing;
[0026] When the timing duration reaches a preset duration, the system basic chip is controlled to start the high-speed communication circuit and the low-speed communication circuit, so that the CAN chip enters a normal mode.
[0027] In one embodiment, before the step of obtaining the input terminal voltage of the system basis chip and the chip information of the CAN chip connected to the system basis chip, the step includes:
[0028] Initialize the system basis chip, control the output voltage of the system basis chip and send messages to the CAN chip.
[0029] In one embodiment, after the step of controlling the CAN chip corresponding to the CAN chip protection mode to restart by the system basis chip according to the CAN chip protection mode, the method further includes:
[0030] When the CAN chip enters the normal mode, the vehicle is controlled to allow starting.
[0031] In addition, to achieve the above object, the present invention also provides a chip restart device, the device comprising:
[0032] A detection module, when the vehicle is powered on, obtains the input terminal voltage of the system basic chip and the chip information of the CAN chip connected to the system basic chip;
[0033] A judgment module, used for determining a corresponding CAN chip protection mode according to the chip information when the input terminal voltage is less than a first preset voltage value;
[0034] The execution module is used to enable the system basic chip to control the CAN chip corresponding to the CAN chip protection mode to restart according to the CAN chip protection mode.
[0035] In addition, to achieve the above-mentioned purpose, the present invention also proposes a chip restart device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the chip restart method described above.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the chip restart method described above are implemented.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the chip restart method described above are implemented.
[0038] One or more technical solutions proposed in the present invention have at least the following technical effects:
[0039] The present invention obtains the input terminal voltage of the system basic chip and the chip information of the CAN chip connected to the system basic chip when the vehicle is powered on; when the input terminal voltage is less than the first preset voltage value, the corresponding CAN chip protection mode is determined according to the chip information; according to the CAN chip protection mode, the CAN chip corresponding to the CAN chip protection mode is controlled by the system basic chip to restart. Since the present invention uses different modes of protection methods for the CAN chips in each embedded system to restart the CAN chip, it ensures that the system basic chip can quickly power each embedded system and ensure that the functions are restored to normal after the abnormality disappears. Therefore, compared with the prior art, the present invention executes the corresponding CAN chip protection mode for different CAN chip types of all embedded systems connected to the system basic chip, solving the problem that the power supply of some functions is stopped when the system basic chip is undervoltage, resulting in the inability to realize some functions of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1 A schematic diagram of a process flow provided for a first embodiment of a chip restart method of the present invention;
[0043] Figure 2 A schematic diagram of a flow chart of a second embodiment of a chip restart method of the present invention;
[0044] Figure 3A schematic diagram of a process flow provided in Embodiment 3 of the chip restart method of the present invention;
[0045] Figure 4 This is a schematic diagram of the module structure of a chip restart device according to an embodiment of the present invention;
[0046] Figure 5 The figure is a schematic diagram of the device structure of the hardware operating environment involved in the chip restart method in the embodiment of the present invention.
[0047] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present invention and are not used to limit the present invention.
[0049] In order to better understand the technical solution of the present invention, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0050] The main solution of the embodiment of the present invention is: when the vehicle is powered on, the input terminal voltage of the system basic chip and the chip information of the CAN chip connected to the system basic chip are obtained; when the input terminal voltage is less than a first preset voltage value, the corresponding CAN chip protection mode is determined according to the chip information; according to the CAN chip protection mode, the CAN chip corresponding to the CAN chip protection mode is controlled by the system basic chip to restart.
[0051] In this embodiment, for the convenience of description, the following description is made with the identification controller as the execution subject.
[0052] Because the prior art cuts off power to all embedded systems when the system base chip is under-voltage, some CAN chips that meet the restart trigger conditions are restarted, while some CAN chips that do not meet the trigger conditions cannot be restarted, and thus the power supply cannot be restored, causing the corresponding functions of the vehicle to fail to operate normally.
[0053] The present invention provides a solution, which implements different modes of protection methods for the CAN chips in various embedded systems to restart the CAN chips, thereby ensuring that the system base chip can quickly power each embedded system, ensuring that the functions are restored to normal after the abnormality disappears. Therefore, compared with the prior art, the present invention executes corresponding CAN chip protection modes for different CAN chip types of all embedded systems connected to the system base chip, solving the problem that the power supply of some functions of the vehicle is stopped when the system base chip is undervoltage, resulting in the inability to realize some functions of the vehicle.
[0054] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The controller is taken as an example to illustrate this embodiment and the following embodiments.
[0055] Based on this, the embodiment of the present invention provides a chip restart method, referring to Figure 1 , Figure 1 FIG. 4 is a flow chart of a first embodiment of a chip restart method according to the present invention.
[0056] In this embodiment, the chip restart method includes steps S10 to S30:
[0057] Step S10, when the vehicle is powered on, obtaining the input terminal voltage of the system basis chip and the chip information of the CAN chip connected to the system basis chip.
[0058] It should be noted that the system basic chip can be a Lite series or a FS series, etc., and this embodiment does not limit this.
[0059] It should be noted that the above-mentioned input terminal voltage may be the voltage provided by the power supply;
[0060] It should be noted that the above-mentioned CAN chip may be a high-speed CAN chip or a low-speed CAN chip, etc., and this embodiment does not impose any limitation on this.
[0061] It is understandable that in different types of vehicles, the system basic chip, the input terminal voltage and the CAN chip are all different, and this embodiment does not limit this.
[0062] In a specific implementation, when the vehicle is powered on, the voltage provided by the power supply connected to the system base chip and the chip information of the CAN chips of each embedded system connected to the system base chip are obtained.
[0063] Step S20: when the input terminal voltage is less than a first preset voltage value, determining a corresponding CAN chip protection mode according to the chip information.
[0064] It should be noted that the first preset voltage value may be 4.6V or 5V, etc., and may be calibrated, and this embodiment does not limit this.
[0065] It should be noted that the above chip information may be high-speed CAN chip information or low-speed CAN chip information, etc., and this embodiment does not limit this.
[0066] It should be noted that the above-mentioned CAN chip protection mode may be a high-speed CAN chip protection mode or a low-speed CAN chip protection mode, etc., and this embodiment does not limit this.
[0067] It is understandable that, in different types of vehicles, the first preset voltage value, the chip information and the CAN chip protection mode are all different, and this embodiment does not impose any limitation on this.
[0068] In a specific implementation, when the input terminal voltage does not reach the first preset voltage value, it indicates that the system basic chip is under-voltage. At this time, the system basic chip cannot normally supply power to the various embedded systems connected to it through the CAN chip. If the time is too long, the vehicle will not be able to run the corresponding functions of the various embedded systems. Since different CAN chips have different corresponding startup methods, it is necessary to determine the chip type based on the above chip information, and then adopt the corresponding CAN chip protection mode according to the corresponding chip type.
[0069] Step S30: According to the CAN chip protection mode, the CAN chip corresponding to the CAN chip protection mode is controlled by the system basic chip to restart.
[0070] In the specific implementation, after the corresponding CAN chip protection mode is determined according to the above-mentioned CAN chip information, the above-mentioned system basic chip will restart according to the corresponding CAN chip using the corresponding CAN chip, so that the above-mentioned system basic chip can provide normal power supply to each embedded system, so that the vehicle can normally operate the corresponding functions of each embedded system.
[0071] The present invention provides a solution, which implements different modes of protection methods for the CAN chips in various embedded systems to restart the CAN chips, thereby ensuring that the system base chip can quickly power each embedded system, ensuring that the functions are restored to normal after the abnormality disappears. Therefore, compared with the prior art, the present invention executes corresponding CAN chip protection modes for different CAN chip types of all embedded systems connected to the system base chip, solving the problem that the power supply of some functions of the vehicle is stopped when the system base chip is undervoltage, resulting in the inability to realize some functions of the vehicle.
[0072] Based on the first embodiment of the present invention, in the second embodiment of the present invention, the same or similar contents as those in the first embodiment can refer to the above introduction, and will not be repeated in the following. Figure 2 , Figure 2 This is a flow chart of a second embodiment of a chip restart method according to the present invention.
[0073] In this embodiment, the step S20 includes step S201, and the step S30 includes S301 to S304:
[0074] Step S201: when the chip information is a high-speed CAN chip, determining that the CAN chip protection mode is the high-speed CAN chip protection mode.
[0075] It should be noted that the high-speed CAN chip may be TJA1043 or TJA1042, etc., and this embodiment does not limit this.
[0076] It should be noted that the high-speed CAN chip protection mode may be a CAN chip protection mode that is only effective for the high-speed CAN chip but not effective for the low-speed CAN chip.
[0077] It is understandable that the high-speed CAN chips mentioned above are different in different types of vehicles, and this embodiment does not impose any limitation on this.
[0078] In a specific implementation, when it is detected that the CAN chip with an abnormal fault is the high-speed CAN chip, the protection mode of the CAN chip is switched to the high-speed CAN chip protection mode.
[0079] Step S301, performing bus detection on the high-speed CAN chip, when the bus is in an activated state, disconnecting the high-speed communication circuit between the system basis chip and the high-speed CAN chip through the system basis chip, so that the high-speed CAN chip enters a sleep mode.
[0080] It should be noted that the above bus detection may be a detection method for the above high-speed CAN chip;
[0081] It should be noted that the high-speed communication circuit can be a circuit for transmitting information and supplying power to the high-speed CAN chip in the system base system;
[0082] It should be noted that the above sleep mode may be a stop working state.
[0083] In a specific implementation, the above-mentioned bus detection is performed on the above-mentioned high-speed CAN chip, that is, when the node sends a message in a normal sending mode and an error occurs in the message sending and the error counter count is greater than 255, the above-mentioned high-speed communication circuit between the above-mentioned system basic chip and the above-mentioned high-speed CAN chip is disconnected through the above-mentioned system basic chip, and the sending of messages and power supply to the above-mentioned high-speed CAN chip are stopped, so that the above-mentioned high-speed CAN chip enters a sleep mode, that is, the above-mentioned high-speed CAN chip enters preparation before restarting.
[0084] Step S302, when the high-speed CAN chip enters the sleep mode, obtaining the input terminal voltage, and detecting whether the input terminal voltage reaches the first preset voltage value.
[0085] In a specific implementation, when the high-speed CAN chip enters the sleep mode, the input terminal voltage continues to be detected, and whether the input terminal voltage reaches the first preset voltage value is detected, that is, whether the system basic chip is out of the undervoltage state.
[0086] Step S303: If yes, control the system basic chip to start the high-speed communication circuit to make the high-speed CAN chip enter the normal mode.
[0087] In a specific implementation, when the detection result is that the input terminal voltage reaches the first preset voltage value, it is determined that the system basic chip has left the undervoltage state. At this time, the high-speed communication circuit between the system basic chip and the high-speed CAN chip is restored, and the system basic chip normally sends messages and supplies power to the high-speed CAN chip, so that the high-speed CAN chip enters normal mode.
[0088] Step S304: if not, keep the high-speed CAN chip in sleep mode.
[0089] In a specific implementation, when the detection result is that the input terminal voltage is less than the first preset voltage value, it is determined that the system basic chip is still in an undervoltage state, and at this time, the high-speed CAN chip remains in the sleep mode.
[0090] Based on the second embodiment of the present invention, in the third embodiment of the present invention, the same or similar contents as those in the second embodiment can be referred to the above introduction, and will not be described in detail later. Figure 3 , Figure 3 This is a flow chart of a third embodiment of a chip restart method according to the present invention.
[0091] In this embodiment, the step S20 includes step S202, and the step S30 includes steps S305 to S309:
[0092] Step S202: when the chip information is a low-speed CAN chip, determining that the CAN chip protection mode is the low-speed CAN chip protection mode.
[0093] It should be noted that the above-mentioned low-speed CAN chip can be MC33889, or MCP2551, etc., and this embodiment does not limit this;
[0094] It should be noted that the above-mentioned low-speed CAN chip protection mode may be a CAN chip protection mode that is only effective for the low-speed CAN chip but not effective for the high-speed CAN chip.
[0095] It is understandable that the low-speed CAN chips mentioned above are different in different types of vehicles, and this embodiment does not limit this.
[0096] In a specific implementation, when it is detected that the CAN chip with an abnormal fault is the above-mentioned low-speed CAN chip, the above-mentioned CAN chip protection mode is switched to the above-mentioned low-speed CAN chip protection mode.
[0097] Step S305, obtaining the output voltage of the system basis chip.
[0098] It should be noted that the output voltage may be the voltage transmitted from the system base chip to the low-speed CAN chip.
[0099] In a specific implementation, the voltage outputted from the system base chip to the low-speed CAN chip is obtained.
[0100] Step S306, when the output voltage is less than a second preset voltage value, the low-speed communication circuit between the system basis chip and the low-speed CAN chip is disconnected through the system basis chip, and the low-speed CAN chip enters a sleep mode.
[0101] It should be noted that the second preset voltage value may be 3.5V or 4V, and may be calibrated, and this embodiment does not limit this.
[0102] It should be noted that the above-mentioned low-speed communication circuit can be a circuit for the system base system to transmit information and provide power for the above-mentioned low-speed CAN chip.
[0103] In a specific implementation, when the output voltage is lower than the second preset voltage value, it indicates that the recovery voltage of the low-speed CAN chip to the system basic chip is undervoltage, and the low-speed communication circuit between the system basic chip and the low-speed CAN chip is disconnected through the system basic chip, and the sending of messages and power supply to the low-speed CAN chip are stopped, so that the low-speed CAN chip enters sleep mode, that is, the low-speed CAN chip enters preparation before restarting.
[0104] Step S307, when the low-speed CAN chip enters the sleep mode, obtaining the input terminal voltage, and detecting whether the input terminal voltage reaches the first preset voltage value.
[0105] In a specific implementation, when the low-speed CAN chip enters the sleep mode, the input terminal voltage continues to be detected, and whether the input terminal voltage reaches the first preset voltage value is detected, that is, whether the system basic chip is out of the undervoltage state.
[0106] Step S308: If yes, control the system basic chip to start the low-speed communication circuit to make the low-speed CAN chip enter the normal mode.
[0107] In a specific implementation, when the detection result is that the input terminal voltage reaches the first preset voltage value, it is determined that the system basic chip has left the under-voltage state. At this time, the low-speed communication circuit between the system basic chip and the low-speed CAN chip is restored, and the system basic chip normally sends messages and supplies power to the low-speed CAN chip, so that the low-speed CAN chip enters normal mode.
[0108] Step S309: if not, keep the low-speed CAN chip in sleep mode.
[0109] In a specific implementation, when the detection result is that the input terminal voltage is less than the first preset voltage value, it is determined that the system basic chip is still in an undervoltage state, and at this time, the low-speed CAN chip remains in the sleep mode.
[0110] In a feasible implementation manner, before step S20, steps S21' to S22' may be further included:
[0111] Step S21 ′: when the input terminal voltage reaches the first preset voltage value, it is determined that the system base system chip is in a normal state, and timing is started.
[0112] It should be noted that the normal state may be that the system basic chip is in a mode where it can normally send messages to the CAN chip and supply power, that is, the system basic chip is in a working ready state.
[0113] In a specific implementation, when the input terminal voltage reaches the first preset voltage value, it is determined that the system basic chip is in a state where it can normally send messages to the CAN chip and supply power, and timing is started.
[0114] Step S22 ′: when the timing duration reaches a preset duration, the system basic chip is controlled to start the high-speed communication circuit and the low-speed communication circuit, so that the CAN chip enters a normal mode.
[0115] It should be noted that the above-mentioned preset time length can be 40ms or 50ms, which can be calibrated, and this embodiment does not impose any limitation on this.
[0116] In a specific implementation, when the timing duration reaches the preset duration, the system basic chip is controlled to start the high-speed communication circuit and the low-speed communication circuit, so that the CAN chip enters the normal mode, that is, all functions of the vehicle are in a ready state to work normally.
[0117] In a feasible implementation manner, step S11' may be further included before step S10:
[0118] Step S11 ′, initializing the system basis chip, controlling the output voltage of the system basis chip and sending a message to the CAN chip.
[0119] In a specific implementation, when the vehicle is powered on, the system basic chip is initialized, and the basic chip is controlled to normally output voltage to each embedded system and send messages.
[0120] In a feasible implementation manner, step S30 may further include step S31':
[0121] Step S31 ′: when the CAN chip enters the normal mode, the vehicle is controlled to allow starting.
[0122] In a specific implementation, when the CAN chip enters the normal mode, that is, all systems inside the vehicle are in a working ready state, the vehicle can be started normally.
[0123] The present invention also provides a chip restart device, please refer to Figure 4 , the chip restart device comprises:
[0124] The detection module 10 obtains the input terminal voltage of the system basic chip and the chip information of the CAN chip connected to the system basic chip when the vehicle is powered on;
[0125] A judgment module 20, configured to determine a corresponding CAN chip protection mode according to the chip information when the input terminal voltage is less than a first preset voltage value;
[0126] The execution module 30 is used to enable the system basic chip to control the CAN chip corresponding to the CAN chip protection mode to restart according to the CAN chip protection mode.
[0127] The chip restart device provided by the present invention adopts the chip restart method in the above embodiment to solve the technical problem of chip restart. Compared with the prior art, the beneficial effects of the chip restart device provided by the present invention are the same as the beneficial effects of the chip restart method provided by the above embodiment, and other technical features in the chip restart device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0128] The present invention provides a chip restart device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the chip restart method in the above-mentioned embodiment one.
[0129] Reference below Figure 5, which shows a schematic diagram of the structure of a chip restart device suitable for implementing an embodiment of the present invention. The chip restart device in the embodiment of the present invention may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The chip restart device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0130] like Figure 5 As shown, the chip restart device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the xxx device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the chip restart device to communicate with other devices wirelessly or wired to exchange data. Although the chip restart device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0131] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present invention are executed.
[0132] The chip restart device provided by the present invention adopts the chip restart method in the above embodiment to solve the technical problem of chip restart. Compared with the prior art, the beneficial effects of the chip restart device provided by the present invention are the same as the beneficial effects of the chip restart method provided by the above embodiment, and other technical features in the chip restart device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0133] It should be understood that the various parts disclosed in the present invention can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0134] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0135] The present invention provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the chip restart method in the above-mentioned embodiment.
[0136] The computer-readable storage medium provided by the present invention may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0137] The computer-readable storage medium may be included in the chip restart device; or may exist independently without being assembled into the chip restart device.
[0138] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the chip restart device, the chip restart device: when the vehicle is powered on, obtains the input terminal voltage of the system basis chip and the chip information of the CAN chip connected to the system basis chip;
[0139] When the input terminal voltage is less than a first preset voltage value, determining a corresponding CAN chip protection mode according to the chip information;
[0140] According to the CAN chip protection mode, the CAN chip corresponding to the CAN chip protection mode is controlled by the system basic chip to restart.
[0141] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0142] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0143] The modules involved in the embodiments of the present invention may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.
[0144] The readable storage medium provided by the present invention is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned chip restart method, and can solve the technical problem of chip restart. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present invention are the same as the beneficial effects of the chip restart method provided by the above-mentioned embodiment, and will not be repeated here.
[0145] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the chip restart method as described above are implemented.
[0146] The computer program product provided by the present invention can solve the technical problem of chip restart. Compared with the prior art, the beneficial effects of the computer program product provided by the present invention are the same as the beneficial effects of the chip restart method provided by the above embodiment, which will not be repeated here.
[0147] The above descriptions are only some embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings under the technical concept of the present invention, or directly / indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.
Claims
1. A chip restart method, characterized in that: The chip restart method comprises: When the vehicle is powered on, obtaining the input terminal voltage of the system basis chip and the chip information of the CAN chip connected to the system basis chip; When the input terminal voltage is less than a first preset voltage value, determining a corresponding CAN chip protection mode according to the chip information; According to the CAN chip protection mode, the CAN chip corresponding to the CAN chip protection mode is controlled by the system basic chip to restart.
2. The chip restart method according to claim 1, characterized in that: The chip information includes a high-speed CAN chip, the CAN chip protection mode includes a high-speed CAN chip protection mode, and the step of determining the corresponding CAN chip protection mode according to the chip information includes: When the chip information is a high-speed CAN chip, determining that the CAN chip protection mode is the high-speed CAN chip protection mode; Correspondingly, the step of controlling the CAN chip corresponding to the CAN chip protection mode to restart by the system basis chip according to the CAN chip protection mode includes: Performing bus detection on the high-speed CAN chip, and when the bus is in an activated state, disconnecting the high-speed communication circuit between the system basis chip and the high-speed CAN chip through the system basis chip, so that the high-speed CAN chip enters a sleep mode; When the high-speed CAN chip enters the sleep mode, obtaining the input terminal voltage, and detecting whether the input terminal voltage reaches the first preset voltage value; If yes, controlling the system basic chip to start the high-speed communication circuit so that the high-speed CAN chip enters a normal mode; If not, the high-speed CAN chip is kept in sleep mode.
3. The chip restart method according to claim 2, characterized in that: The chip information includes a low-speed CAN chip, the CAN chip protection mode includes a low-speed CAN chip protection mode, and the step of determining the corresponding CAN chip protection mode according to the chip information includes: When the chip information is a low-speed CAN chip, determining that the CAN chip protection mode is the low-speed CAN chip protection mode; Correspondingly, the step of controlling the CAN chip corresponding to the CAN chip protection mode to restart by the system basis chip according to the CAN chip protection mode includes: Obtaining an output voltage of the system basis chip; When the output voltage is less than a second preset voltage value, disconnecting the low-speed communication circuit between the system basis chip and the low-speed CAN chip through the system basis chip, and making the low-speed CAN chip enter a sleep mode; When the low-speed CAN chip enters the sleep mode, obtaining the input terminal voltage, and detecting whether the input terminal voltage reaches the first preset voltage value; If yes, controlling the system base chip to start the low-speed communication circuit so that the low-speed CAN chip enters a normal mode; If not, the low-speed CAN chip is kept in sleep mode.
4. The chip restart method according to claim 3, characterized in that: Before the step of determining the corresponding CAN chip protection mode according to the chip information when the input terminal voltage is less than the first preset voltage value, the method includes: When the input terminal voltage reaches the first preset voltage value, determining that the system base system chip is in a normal state, and starting timing; When the timing duration reaches a preset duration, the system basic chip is controlled to start the high-speed communication circuit and the low-speed communication circuit, so that the CAN chip enters a normal mode.
5. The chip restart method according to claim 1, characterized in that: Before the step of obtaining the input terminal voltage of the system basis chip and the chip information of the CAN chip connected to the system basis chip, the method includes: Initialize the system basis chip, control the output voltage of the system basis chip and send messages to the CAN chip.
6. The chip restart method according to claim 2, characterized in that: After the step of controlling the CAN chip corresponding to the CAN chip protection mode to restart by the system basis chip according to the CAN chip protection mode, the method further includes: When the CAN chip enters the normal mode, the vehicle is controlled to allow starting.
7. A chip restart device, characterized in that: The device comprises: A detection module, when the vehicle is powered on, obtains the input terminal voltage of the system basic chip and the chip information of the CAN chip connected to the system basic chip; A judgment module, used for determining a corresponding CAN chip protection mode according to the chip information when the input terminal voltage is less than a first preset voltage value; The execution module is used to enable the system basic chip to control the CAN chip corresponding to the CAN chip protection mode to restart according to the CAN chip protection mode.
8. A chip restart device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the chip restart method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the chip restart method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the chip restart method according to any one of claims 1 to 6 are implemented.