CN114056266A - Shutdown method and system of application system during automobile flameout - Google Patents
Shutdown method and system of application system during automobile flameout Download PDFInfo
- Publication number
- CN114056266A CN114056266A CN202111365740.1A CN202111365740A CN114056266A CN 114056266 A CN114056266 A CN 114056266A CN 202111365740 A CN202111365740 A CN 202111365740A CN 114056266 A CN114056266 A CN 114056266A
- Authority
- CN
- China
- Prior art keywords
- application system
- pin
- mcu
- shutdown
- spi
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000002457 bidirectional effect Effects 0.000 claims description 21
- 101100236764 Caenorhabditis elegans mcu-1 gene Proteins 0.000 claims description 7
- 235000015429 Mirabilis expansa Nutrition 0.000 claims description 3
- 244000294411 Mirabilis expansa Species 0.000 claims description 3
- 235000013536 miso Nutrition 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 5
- 230000003993 interaction Effects 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R16/00—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
- B60R16/02—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
- B60R16/03—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for supply of electrical power to vehicle subsystems or for
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Power Sources (AREA)
Abstract
The invention relates to a control system of an automobile, in particular to a shutdown method and a shutdown system of an application system when the automobile is shut down. The shutdown method of the application system when the automobile is flamed out comprises the following steps: the MCU system informs an application system to prepare for shutdown after detecting a vehicle flameout signal; the application system starts to be shut down after receiving a shutdown signal, and sends a shutdown notification to the MCU system through the GPIO module after the application system is shut down; the MCU system powers down the application system. The shutdown method of the application system when the automobile is shut down, provided by the invention, can ensure that the storage medium is not damaged by powering off the application system after detecting that the application system is shut down.
Description
Technical Field
The invention relates to a control system of an automobile, in particular to a shutdown method and a shutdown system of an application system when the automobile is shut down.
Background
At present, two sets of software are generally operated in a vehicle machine of an automobile, one set of software is application system software, the other set of software is MCU control software, and the two software are communicated through an SPI protocol. The application system software is responsible for providing entertainment, calling, navigation and interaction functions with the vehicle owner for the vehicle owner; the MCU control software is responsible for monitoring and sending the vehicle body state information and the power on and power off of the application system.
Considering the problem of power consumption, when the MCU control software monitors that the vehicle is flamed out, the application system is powered off; and when the owner ignites again, powering on the application system. When the MCU control software powers off the application system, the application system software may be performing a large amount of read-write operations on the storage medium, which may cause damage to the storage medium with a certain probability, thereby causing the whole vehicle machine to be incapable of being started for use next time.
Disclosure of Invention
In order to solve the above problems, the present invention provides a shutdown method for an application system during a vehicle shutdown, which can ensure that the application system is powered off again after being normally and completely shut down, and ensure that a storage medium is not damaged, and the specific technical scheme is as follows:
the shutdown method of the application system when the automobile is flamed out comprises the following steps:
the MCU system informs an application system to prepare for shutdown after detecting a vehicle flameout signal; after receiving a shutdown signal, the application system sets the state of the GPIO module to be a low level and then enters a shutdown process; and when the shutdown of the application system is finished, the state of the GPIO module is changed from low level to high level, and the MCU system detects the high level signal of the GPIO module and then powers off the application system.
Preferably, the MCU system notifies the application system to shut down through the SPI module.
Shutdown system of an application system when an automobile is turned off, comprising: a GPIO module and an SPI module; the GPIO module is used for generating a high level and a low level to feed back whether the application system is shut down; the SPI module is used for sending a shutdown signal to an application system.
Preferably, the GPIO module includes a transistor QN307, a resistor R316, and a resistor R317, wherein a collector of the transistor QN307 is connected to the resistor R317 and an AP _ STATE _5V0 signal pin of an MCU chip of the MCU system, respectively, the resistor R317 is connected to a power supply, and a base of the transistor QN307 is connected to a GPIO interrupt signal pin MTK _ INT _ MCU _1 of a CPU chip of the application system;
the SPI module comprises a bidirectional voltage converter U307 and a bidirectional voltage converter U306, a pin A1 and a pin A2 of the bidirectional voltage converter U307 are respectively connected with a pin SPI _0_ MI and a pin SPI _0_ MO of a CPU chip of an application system, and a pin B1 and a pin B2 of the bidirectional voltage converter U307 are respectively connected with a pin MCU _ SPI _ MISO _5V0 and a pin MCU _ SPI _ MOSI _5V0 of an MCU chip of an MCU system; pin a1 and pin a2 of the bidirectional voltage converter U306 are connected to pin SPI _0_ CS and pin SPI _0_ SCLK of the CPU chip of the application system, respectively, and pin B1 and pin B2 of the bidirectional voltage converter U306 are connected to pin MCU _ SPI _ CS _5V0 and pin MCU _ SPI _ SCLK _5V0 of the MCU chip of the MCU system, respectively.
Preferably, the triode is BC847BT, and the bidirectional voltage converter is LSF0102Q 1.
Compared with the prior art, the invention has the following beneficial effects:
the shutdown method of the application system when the automobile is shut down, provided by the invention, can ensure that the storage medium is not damaged by powering off the application system after detecting that the application system is shut down.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a block diagram of the architecture of the present invention;
FIG. 3 is a circuit diagram of an SPI module;
figure 4 is a GPIO block circuit diagram;
FIG. 5 is a circuit diagram of a CPU chip;
fig. 6 is a circuit diagram of the MCU chip.
Detailed Description
The invention will now be further described with reference to the accompanying drawings.
In the process of powering off the application system after the MCU system monitors a vehicle flameout signal, one interaction between the two parties is added, and the specific interaction is as follows:
after receiving the vehicle flameout signal, the MCU system informs the application system through the SPI module, informs the application system of needing to be shut down, and simultaneously monitors the state of a GPIO module connected with the application system;
after receiving a shutdown signal, the application system sets the GPIO state connected with the MCU to be a low level, and then enters a self shutdown process;
when the MCU system monitors that the GPIO state connected with the application system is changed into high level, the application system module is powered off again, power is cut off again after the application system is normally and completely shut down, and the storage medium is prevented from being damaged.
Example one
As shown in fig. 1 and fig. 2, the shutdown method of the application system when the automobile is turned off includes the following steps:
after detecting a vehicle flameout signal, the MCU system informs the application system to prepare shutdown through the SPI module;
after receiving a shutdown signal, the application system sets the state of the GPIO module to be a low level and then enters a shutdown process;
and when the shutdown of the application system is finished, the state of the GPIO module is changed from low level to high level, and the MCU system detects the high level signal of the GPIO module and then powers off the application system.
The GPIO state is a high level state under the condition that the application system is completely powered off, so that the state of the GPIO state is set to be a low level before the application system is powered off, and the GPIO module automatically becomes the high level after the application system is powered off, thereby solving the problem that the application system cannot send signals after being powered off.
Specifically, the shutdown method of the application system when the automobile is shut down comprises the following steps:
the MCU system powering down the application system comprises the following steps:
s110, monitoring an ACC signal state of the vehicle by the MCU system;
s120, judging whether the vehicle is flameout or not by the MCU system, if the ACC signal is high level, indicating that the vehicle is in an ignition state, returning to S110 for cycle detection, if the ACC signal is low level, indicating that the vehicle is in a flameout state, and entering S130;
s130, the MCU system informs the application system of preparing shutdown through the SPI module, and the SPI module uses an SPI communication protocol;
s140, detecting the STATE of a signal pin AP _ STATE _5V0 by the MCU system;
s150, judging whether the signal pin AP _ STATE _5V0 is in a high level, if so, entering S160, and if not, returning to S140;
s160, powering off the application system by the MCU system;
the shutdown of the application system comprises the following steps:
s210, receiving and analyzing the data in the step S130 in real time through an SPI module;
s220, judging whether the command is a shutdown command, if so, entering S230, and if not, returning to S210;
s230, the application system sets the (MTK _ INT _ MCU _1) state of the GPIO module to be low level;
s240, the application system starts a shutdown process, and the application system is shut down;
s250, the state of the GPIO module (MTK _ INT _ MCU _1) is changed into high level.
Example two
As shown in fig. 2 to 6, the shutdown system of the application system when the vehicle is turned off includes: a GPIO module and an SPI module;
the GPIO module comprises a triode QN307, a resistor R316 and a resistor R317, wherein a collector of the triode QN307 is respectively connected with the resistor R317 and an AP _ STATE _5V0 signal pin of an MCU chip of the MCU system, the resistor R317 is connected with a power supply, and a base of the triode QN307 is connected with a GPIO interrupt signal pin MTK _ INT _ MCU _1 of a CPU chip of the application system;
the SPI module comprises a bidirectional voltage converter U307 and a bidirectional voltage converter U306, a pin A1 and a pin A2 of the bidirectional voltage converter U307 are respectively connected with a pin SPI _0_ MI and a pin SPI _0_ MO of a CPU chip of an application system, and a pin B1 and a pin B2 of the bidirectional voltage converter U307 are respectively connected with a pin MCU _ SPI _ MISO _5V0 and a pin MCU _ SPI _ MOSI _5V0 of an MCU chip of an MCU system; pin a1 and pin a2 of bidirectional voltage converter U306 are connected to pin SPI _0_ CS and pin SPI _0_ SCLK, respectively, of the CPU chip of the application system, and pin B1 and pin B2 of bidirectional voltage converter U306 are connected to pin MCU _ SPI _ CS _5V0 and pin MCU _ SPI _ SCLK _5V0, respectively, of the MCU chip of the MCU system.
The triode is BC847BT, and the bidirectional voltage converter is LSF0102Q 1.
Because the level of the GPIO port of the CPU in the application system module is within 1.8V, and the level of the GPIO port of the MCU system is within 5V, normal communication between the CPU and the MCU system can be carried out after level conversion.
When the application system module is in a complete shutdown state, the MTK _ INT _ MCU _1 signal pin level state of the CPU chip in the application system module is in a high level state. Therefore, the MCU module can determine the status of the application system module by identifying the interrupt signal status of the MTK _ INT _ MCU _1 signal pin of the CPU in the application system module, and when the CPIO port is at a high level, it indicates that the application system is completely powered off.
The technical principle of the present invention is described above in connection with specific embodiments. The description is made for the purpose of illustrating the principles of the invention and should not be construed in any way as limiting the scope of the invention. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive step, which shall fall within the scope of the appended claims.
Claims (5)
1. The shutdown method of the application system when the automobile is flamed out is characterized by comprising the following steps of:
the MCU system informs an application system to prepare for shutdown after detecting a vehicle flameout signal;
after receiving a shutdown signal, the application system sets the state of the GPIO module to be a low level and then enters a shutdown process;
and when the shutdown of the application system is finished, the state of the GPIO module is changed from low level to high level, and the MCU system detects the high level signal of the GPIO module and then powers off the application system.
2. The shutdown method of the application system when the automobile is shut down according to claim 1, wherein the MCU system notifies the application system to shut down through the SPI module.
3. Shutdown system of application system when car flame-out, its characterized in that includes: a GPIO module and an SPI module; the GPIO module is used for generating a high level and a low level to feed back whether the application system is shut down; the SPI module is used for sending a shutdown signal to an application system.
4. Shutdown system for an application system on shutdown of a motor vehicle according to claim 3,
the GPIO module comprises a triode QN307, a resistor R316 and a resistor R317, wherein a collector of the triode QN307 is respectively connected with the resistor R317 and an AP _ STATE _5V0 signal pin of an MCU chip of the MCU system, the resistor R317 is connected with a power supply, and a base of the triode QN307 is connected with a GPIO interrupt signal pin MTK _ INT _ MCU _1 of a CPU chip of the application system;
the SPI module comprises a bidirectional voltage converter U307 and a bidirectional voltage converter U306, a pin A1 and a pin A2 of the bidirectional voltage converter U307 are respectively connected with a pin SPI _0_ MI and a pin SPI _0_ MO of a CPU chip of an application system, and a pin B1 and a pin B2 of the bidirectional voltage converter U307 are respectively connected with a pin MCU _ SPI _ MISO _5V0 and a pin MCU _ SPI _ MOSI _5V0 of an MCU chip of an MCU system; pin a1 and pin a2 of the bidirectional voltage converter U306 are connected to pin SPI _0_ CS and pin SPI _0_ SCLK of the CPU chip of the application system, respectively, and pin B1 and pin B2 of the bidirectional voltage converter U306 are connected to pin MCU _ SPI _ CS _5V0 and pin MCU _ SPI _ SCLK _5V0 of the MCU chip of the MCU system, respectively.
5. The shutdown system of an application system when an automobile is turned off according to claim 4, wherein the triode is BC847BT, and the bidirectional voltage converter is LSF0102Q 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111365740.1A CN114056266A (en) | 2021-11-18 | 2021-11-18 | Shutdown method and system of application system during automobile flameout |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111365740.1A CN114056266A (en) | 2021-11-18 | 2021-11-18 | Shutdown method and system of application system during automobile flameout |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114056266A true CN114056266A (en) | 2022-02-18 |
Family
ID=80278055
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111365740.1A Pending CN114056266A (en) | 2021-11-18 | 2021-11-18 | Shutdown method and system of application system during automobile flameout |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114056266A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114615341A (en) * | 2022-03-22 | 2022-06-10 | 宁波波导易联电子有限公司 | Communication method and communication system between vehicle-mounted MCU module and AP module |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104850021A (en) * | 2015-04-22 | 2015-08-19 | 惠州Tcl移动通信有限公司 | Start-up and shutdown system |
CN107878364A (en) * | 2017-01-25 | 2018-04-06 | 问众智能信息科技(北京)有限公司 | A kind of Optimal Control System and control method of automobile power source change-over circuit |
CN108944746A (en) * | 2018-08-31 | 2018-12-07 | 华勤通讯技术有限公司 | A kind of mobile unit and automobile |
-
2021
- 2021-11-18 CN CN202111365740.1A patent/CN114056266A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104850021A (en) * | 2015-04-22 | 2015-08-19 | 惠州Tcl移动通信有限公司 | Start-up and shutdown system |
CN107878364A (en) * | 2017-01-25 | 2018-04-06 | 问众智能信息科技(北京)有限公司 | A kind of Optimal Control System and control method of automobile power source change-over circuit |
CN108944746A (en) * | 2018-08-31 | 2018-12-07 | 华勤通讯技术有限公司 | A kind of mobile unit and automobile |
Non-Patent Citations (1)
Title |
---|
鲜继清,李文娟,张媛,余晓玫,孙霞,鲜娟,胡蓉: "通信技术基础 第2版", vol. 978, 31 March 2021, 北京:机械工业出版社 , pages: 304 - 305 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114615341A (en) * | 2022-03-22 | 2022-06-10 | 宁波波导易联电子有限公司 | Communication method and communication system between vehicle-mounted MCU module and AP module |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021179992A1 (en) | Disconnection detection method for obd module, obd vehicle-mounted monitoring terminal, obd monitoring system | |
CN113194524A (en) | Dormancy awakening method, upper computer, vehicle-mounted communication module and communication system | |
CN105599706B (en) | A kind of standby management method and system of intelligent vehicle-carried information entertainment | |
CN114056266A (en) | Shutdown method and system of application system during automobile flameout | |
CN105425774A (en) | Control method and apparatus of vehicle-mounted diagnostic joint and vehicle-mounted diagnostic joint | |
CN112660103B (en) | Vehicle control mode determination method and device and whole vehicle control system | |
CN113965483A (en) | Device and method for testing time from auto TOSAR network management pre-dormancy to dormancy | |
CN103558907A (en) | Electronic device and method for reducing power consumption of electronic device | |
WO2021214010A1 (en) | Electronic device and method of responding to a trigger to wake up | |
CN114590241A (en) | Vehicle idle charging method and device | |
JP2001331239A (en) | Automatic end control method of computer | |
CN114083984B (en) | New energy vehicle static power supply control method and system | |
CN110659169B (en) | Method for testing automatic dormancy awakening pressure of android system | |
CN210864614U (en) | Public network vehicle-mounted platform capable of automatically starting up power supply | |
CN113778056A (en) | Automobile dormancy awakening method and device, automobile and storage medium | |
CN113377404A (en) | New energy domain controller safety monitoring chip program updating method and system | |
CN112947165A (en) | Method for waking up electronic equipment and electronic equipment | |
CN114460868A (en) | Terminal equipment hierarchical management method and system | |
CN112783678A (en) | Vehicle-mounted terminal power-off processing method and system and vehicle-mounted terminal | |
CN206781676U (en) | A kind of onboard diagnostic device dormancy start-up circuit | |
CN116466999B (en) | Method, device, equipment and medium for waking up SOC chip | |
CN114810386B (en) | Engine start control method and system considering load output | |
CN215990309U (en) | Vehicle-mounted T-Box safe power supply system | |
CN114688679B (en) | Air conditioner parameter reading method and air conditioner | |
CN219287196U (en) | Car networking system and power supply circuit for car-mounted T-BOX |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |