Vehicle-mounted equipment and control method
Technical Field
The invention relates to the technical field of communication, in particular to vehicle-mounted equipment and a control method.
Background
With the popularization of automobiles, a plurality of people generally buy the automobiles, the automobiles are generally provided with vehicle-mounted equipment, the vehicle-mounted equipment comprises a single chip microcomputer system and a core processor system, when the core processing system is abnormal, the core processing system is generally restarted by cutting off a power supply of the core processing system, and the operation is complex and time-consuming.
Disclosure of Invention
In view of this, it is desirable to provide an in-vehicle device, which provides a convenient and simple restart service for a user and saves user operation time.
In addition, a control method is needed, which provides a convenient and simple restart service for the user and saves the user operation time.
The invention provides an in-vehicle apparatus, comprising: the single chip microcomputer system is connected with an ACC signal line and used for detecting an ACC signal transmitted by the ACC signal line when the core processor system is in an abnormal condition, cutting off the power supply of the core processor system when the detected ACC signal reaches a preset number of times, electrifying the core processor system again and restarting the core processor system.
Optionally, the single chip microcomputer system is connected to a vehicle headlamp signal line, and the single chip microcomputer system is further configured to detect a headlamp switching signal transmitted by the vehicle headlamp signal line when the core processor system is in an abnormal condition, and cut off a power supply of the core processor system when the detected headlamp switching signal reaches a preset number of times, and power the core processor system again, and restart the core processor system.
Optionally, the abnormal condition of the core processor system includes a dead halt and a blank screen.
The invention also provides a control method, the vehicle-mounted equipment comprises a single chip microcomputer system and a core processor system, the single chip microcomputer system is connected with the ACC signal line, and the control method comprises the following steps:
when the core processor system is in an abnormal condition, the single chip microcomputer system detects an ACC signal transmitted by the ACC signal line;
and when the detected ACC signal reaches the preset times, the single chip microcomputer system cuts off the power supply of the core processor system, re-powers the core processor system and restarts the core processor system.
Optionally, the single chip microcomputer system is connected to a signal line of a headlight of the vehicle, and the control method further includes:
when the core processor system is in an abnormal condition, the single chip microcomputer system detects a headlamp switch signal transmitted by a headlamp signal line of the vehicle;
and when the detected headlight switching signal reaches the preset times, the single chip microcomputer system cuts off the power supply of the core processor system, the core processor system is electrified again, and the core processor system is restarted.
Optionally, the abnormal condition of the core processor system includes a dead halt and a blank screen.
The vehicle-mounted equipment and the control method provided by the invention can perform restarting operation of power-off and power-on the core processor system according to signals transmitted by the ACC signal line and the vehicle headlamp signal line, provide convenient and simple restarting service for a user, and save the operation time of the user.
Drawings
Fig. 1 is a functional block diagram of an onboard apparatus according to an embodiment of the present invention.
Fig. 2 is a flowchart of a control method according to a second embodiment of the present invention.
FIG. 3 is a flow chart of a three control method according to an embodiment of the present invention.
Description of the main elements
Vehicle-mounted device
|
10
|
Single chip microcomputer system
|
101
|
Power supply
|
102
|
Core processor system
|
103 |
Detailed Description
The invention will be further elucidated and described with reference to the embodiments of the invention described hereinafter.
Referring to fig. 1, fig. 1 is a functional block diagram of a vehicle-mounted device according to an embodiment of the present invention, and the vehicle-mounted device 10 includes a single chip system 101, a power supply 102, and a core processor system 103. The single chip microcomputer system 101 is connected with an ACC signal line, when the core processor system 102 is in an abnormal condition, the single chip microcomputer system 101 detects an ACC signal transmitted by the ACC signal line, when the detected ACC signal reaches a preset number, the power supply 102 of the core processor system 103 is cut off, the power supply 102 does not supply power to the core processor system, after the power supply is cut off, the core processor system 103 is electrified again, and the core processor system 103 is restarted. For example, the preset number of times is 3, and when the detected ACC signal reaches 3 times, the power supply 102 of the core processor system 103 is cut off, so that the power supply 102 does not supply power to the core processor system, and after the power is cut off, the core processor system 103 is powered on again, and the core processor system 103 is restarted.
It should be added that the single chip microcomputer system 101 is further connected to a vehicle headlight signal line, when the core processor system 103 is in an abnormal condition, the single chip microcomputer system 101 detects a headlight switching signal transmitted by the vehicle headlight signal line, when the detected headlight switching signal reaches a preset number of times, the power supply 102 of the core processor system 103 is cut off, the core processor system 103 is powered on again, and the core processor system 103 is restarted. For example, the preset number of times is 4, when the detected headlight switching signal reaches 4 times, the power supply 102 of the core processor system 103 is cut off, the core processor system 103 is powered on again, and the core processor system 103 is restarted, wherein the abnormal condition of the core processor system 103 includes a dead halt and a black screen.
Referring to fig. 2, fig. 2 is a flowchart illustrating a control method according to a second embodiment of the present invention, where the control method is applied to the vehicle-mounted device 10 illustrated in fig. 1, the vehicle-mounted device includes a single chip microcomputer system 101, a power supply 102, and a core processor system 103, the single chip microcomputer system 101 is connected to an ACC signal line, and the control method will be described in detail below.
In step S201, when the core processor system 103 is in an abnormal condition, the one-chip microcomputer system 101 detects an ACC signal transmitted by the ACC signal line.
In step S202, when the detected ACC signal reaches the preset number, the mcu 101 turns off the power of the core processor system 103, powers on the core processor system 103 again, and restarts the core processor system 103. The abnormal condition of the core processor system 103 includes a dead halt and a blank screen.
Referring to fig. 3, fig. 3 is a flowchart illustrating a three-control method according to an embodiment of the present invention, where the control method is applied to the vehicle-mounted device 10 illustrated in fig. 1, the vehicle-mounted device includes a single chip microcomputer system 101, a power supply 102, and a core processor system 103, the single chip microcomputer system 101 is connected to an ACC signal line, and the control method will be described in detail below.
In step S301, when the core processor system 103 is in an abnormal condition, the one-chip microcomputer system 101 detects a headlight switching signal transmitted by a headlight signal line of the vehicle.
In step S302, when the detected headlight switching signal reaches the preset number of times, the single chip microcomputer system 101 cuts off the power supply of the core processor system 103, powers on the core processor system 103 again, and restarts the core processor system 103, where the core processor system 103 is in an abnormal condition including a crash and a black screen.
The vehicle-mounted equipment and the control method provided by the invention can perform restarting operation of power-off and power-on the core processor system according to signals transmitted by the ACC signal line and the vehicle headlamp signal line, provide convenient and simple restarting service for a user, and save the operation time of the user.
The above embodiments are only for illustrating the invention and are not to be construed as limiting the invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention, therefore, all equivalent technical solutions also belong to the protection scope of the invention.