Automobile power-on and power-off control method and system and storage medium
Receive power distribution service call parameters through the SOA service interface, arbitrate and control the power distribution port status on the automotive ECU, solve the problem of power on and off control complexity in the automotive software system, realize intelligent power distribution services, simplify the development process and reduce cost.
Patent Information
- Application Number
- CN202310328076.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
In automotive software systems, as functional requirements increase, system resources are limited, making the software system difficult to maintain and expand. The power-on and off control process is complex, requiring the design of new communication interfaces and logic, which increases software complexity.
Receive power distribution service call parameters through the preset SOA service interface, arbitrate to determine the status of the power distribution port, and control the opening and closing of the power distribution port based on the power-on or power-off request signal, reducing software complexity and development costs.
Intelligent power distribution services are realized, power on and off control logic is simplified, software development cycles and costs are reduced, signal transmission stability is improved, and function expansion and rapid update requirements are met.
Smart Images

Figure CN118722444A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile technology, and in particular to a method and system for controlling automobile power on and off, and a storage medium. Background Art
[0002] In recent years, with the rapid advancement of automobile intelligence, networking and electrification, new technological changes have been brought to the automotive industry. At the same time, with the increase in automobile functions, problems such as software systems becoming difficult to maintain, difficult to expand, and prone to errors have emerged. Because system resources are limited, but functional requirements are constantly increasing and changing rapidly, the contradiction between limited system resources and unlimited requirements is a problem that needs to be solved in software system design. In order to solve this problem, the service-oriented architecture (SOA) was proposed.
[0003] At present, remote applications based on SOA meet the personalized functional requirements of developers or users. In the implementation process, they are inseparable from the power distribution control of each ECU. Each ECU of the car usually uses a predetermined unified interface protocol to access the body domain controller, and drives and controls the corresponding equipment after receiving the call command from the body domain controller. However, the entire process from receiving the call command to completing the power-on and power-off control of the function is implemented based on signal communication, which requires the design of new communication interfaces between each ECU and the body domain controller, the internal definition of new corpus, and the design of call logic, which increases the complexity of the software. Summary of the invention
[0004] The purpose of the present application is to provide a method and system for controlling the power on and off of an automobile, and a computer-readable storage medium, so as to reduce the software complexity of the power on and off control of an automobile.
[0005] To achieve the above purpose, an embodiment of the present application provides a method for controlling power on and off of a vehicle, the method comprising: Receive power distribution service call parameters through a preset SOA service interface; wherein the power distribution service call parameters include at least one power distribution unit parameter, the power distribution unit parameter includes a diagnostic address and a power distribution port status, the diagnostic address corresponds to the power distribution port, and the power distribution port status includes a closed port and an open port; Arbitrating the power distribution unit parameters to determine whether to distribute power to the power distribution port corresponding to the diagnostic address; if it is determined that the power distribution port is to be distributed, determining whether the power distribution port is a normal power port; if it is a normal power port, returning a power distribution success signal to the service consumer; if it is not a normal power port, generating a power-on request signal; wherein the power-on request signal includes the power distribution port and the state of the power distribution port; The power distribution port is controlled to be closed according to the power-on request signal.
[0006] Optionally, the arbitrating the power distribution unit parameters to determine whether to distribute power to the power distribution port corresponding to the diagnostic address includes: Determine whether the diagnostic address is legal; if not, return an invalid power distribution signal to the service consumer; if legal, obtain the power distribution port corresponding to the diagnostic address, and determine whether the power distribution port is faulty; if faulty, return a port fault signal to the service consumer; if not, determine to distribute power to the power distribution port.
[0007] Optionally, the power distribution unit parameter further includes power distribution duration, and the power-on request signal further includes the power distribution duration; The method further comprises: Start timing while controlling the power distribution port to be closed; When the timing result reaches the power distribution duration, if no new power distribution unit parameters corresponding to the diagnostic address are received, the power distribution port is controlled to be disconnected, and a power distribution stop signal is returned to the service consumer.
[0008] Optionally, the method further comprises: When the timing result does not reach the power distribution duration, if a new power distribution unit parameter corresponding to the diagnostic address is received, and the power distribution port state of the new power distribution unit parameter is a closed port, the timing result is cleared and the timing is restarted.
[0009] Optionally, the method further comprises: When the timing result does not reach the power distribution duration, if a new power distribution unit parameter corresponding to the diagnostic address is received, and the power distribution port state of the new power distribution unit parameter is a disconnected port, a power-off request signal is generated; wherein the power-off request signal includes the power distribution port and the power distribution port state of the new power distribution unit parameter; The power distribution port is controlled to be disconnected according to the power-off request signal, and a power distribution stop signal is returned to the service consumer.
[0010] The embodiment of the present application also provides a vehicle power-on and power-off control system, the system comprising: A receiving unit, configured to receive a power distribution service call parameter through a preset SOA service interface; wherein the power distribution service call parameter includes at least one power distribution unit parameter, the power distribution unit parameter includes a diagnostic address and a power distribution port status, the diagnostic address corresponds to the power distribution port, and the power distribution port status includes a closed port and an open port; an arbitration unit, configured to arbitrate the power distribution unit parameters to determine whether to distribute power to the power distribution port corresponding to the diagnostic address; if it is determined that the power distribution port is to be distributed power, then determine whether the power distribution port is a normal power port; if it is a normal power port, then return a power distribution success signal to the service consumer; if it is not a normal power port, then generate a power-on request signal; wherein the power-on request signal includes the power distribution port and the state of the power distribution port; A control unit is used to control the power distribution port to close according to the power-on request signal.
[0011] Optionally, the arbitration unit is specifically configured to: Determine whether the diagnostic address is legal; if not, return an invalid power distribution signal to the service consumer; if legal, obtain the power distribution port corresponding to the diagnostic address, and determine whether the power distribution port is faulty; if faulty, return a port fault signal to the service consumer; if not, determine to distribute power to the power distribution port.
[0012] Optionally, the power distribution unit parameter further includes power distribution duration, and the power-on request signal further includes the power distribution duration; the system further includes a timing unit; The timing unit is used to start timing while controlling the power distribution port to be closed; The control unit is specifically used to control the power distribution port to disconnect and return a power distribution stop signal to the service consumer when the timing result reaches the power distribution duration if the receiving unit does not receive new power distribution unit parameters corresponding to the diagnostic address.
[0013] Optionally, the timing unit is also used to clear the timing result and restart the timing when the timing result does not reach the power distribution duration, if the receiving unit receives new distribution unit parameters corresponding to the diagnostic address, and the distribution port state of the new distribution unit parameters is a closed port.
[0014] The arbitration unit is further configured to generate a power-off request signal when the timing result does not reach the power distribution duration, if the receiving unit receives a new power distribution unit parameter corresponding to the diagnostic address, and the power distribution port state of the new power distribution unit parameter is a disconnected port; The control unit is also used to control the power distribution port to disconnect according to the power-off request signal, and return a power distribution stop signal to the service consumer; wherein the power-off request signal includes the power distribution port and the power distribution port status of the new distribution unit parameters.
[0015] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned vehicle power-on and power-off control method is implemented.
[0016] The embodiments of the present application provide a method and system for controlling the power on and off of an automobile, and a computer-readable storage medium. The method provides intelligent power distribution services to the outside based on SOA. Through a preset SOA service interface, the logic of controlling the power on and off of each ECU after the external application terminal calls the intelligent power distribution service of the automobile is defined. Through a unified service interface, the complex logic design of the intermediate power on and off signal communication is saved, so that software updates are faster, the complexity of the software is reduced, and the software development cycle and cost are reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 This is a flow chart of a method for controlling vehicle power on and off in one embodiment of the present application.
[0019] Figure 2 This is a flow chart for generating distribution service call parameters in one embodiment of the present application.
[0020] Figure 3 A schematic diagram of power distribution service calling parameters in one embodiment of the present application.
[0021] Figure 4 This is a schematic diagram of a car power on and off control system in one embodiment of the present application. DETAILED DESCRIPTION
[0022] The detailed description of the drawings is intended as an illustration of some current embodiments of the present application, and is not intended to represent the only form in which the present application can be implemented. It should be understood that the same or equivalent functions can be accomplished by different embodiments intended to be included within the scope of the present application.
[0023] See also Figure 1 An embodiment of the present application provides a method for controlling power on and off of a vehicle, comprising the following steps: Step S1. Receive power distribution service call parameters through a preset SOA service interface; wherein the power distribution service call parameters include at least one power distribution unit parameter, the power distribution unit parameter includes a diagnostic address and a power distribution port status, the diagnostic address corresponds to the power distribution port, and the power distribution port status includes a closed port and an open port.
[0024] Specifically, this embodiment applies the vehicle side, which provides intelligent power distribution services to service consumers based on SOA. The service consumer is an external application terminal, which receives the power distribution service call parameters through the preset SOA service interface. Figure 2 The present invention is a process for generating the power distribution service calling parameters. When the external application terminal calls the intelligent power distribution service provided by this embodiment, the external application terminal sends a power distribution instruction based on the SOME / IP protocol to the cloud, and the cloud sends the power distribution instruction to the T-Box on the vehicle side. The T-Box performs protocol conversion on the power distribution instruction based on the SOME / IP protocol to obtain the corresponding power distribution service calling parameters. In this process, the external application terminal is the client and the cloud is the server. The server can serve multiple clients and the vehicle side, and send the power distribution instructions of multiple clients to the corresponding T-Box on the vehicle side, so as to realize the remote operation of the ECU power on and off control on the vehicle side by the application terminal.
[0025] Among them, external application terminals include OTA-VSM, remote control, payment engine, etc. OTA-VSM, remote control, payment engine are remote operations of different application terminals; OTA-VSM refers to the software upgrade of each car controller through OTA; remote control refers to operations such as remote unlocking / starting, remote air conditioning, etc., and payment engine refers to subscribing to some personalized services through mobile phone APP.
[0026] The power distribution service call parameter may include one or more power distribution unit parameters, one power distribution unit parameter corresponds to one power distribution port, and the power distribution unit parameter is a data structure, such as Figure 3 In the example shown, the power distribution service call parameters include three power distribution unit parameters, each of which includes parameters of the diagnostic address and the power distribution port status; a closed power distribution port is powered on, and an open power distribution port is powered off.
[0027] Step S2, arbitrating the power distribution unit parameters to determine whether to distribute power to the power distribution port corresponding to the diagnostic address; if it is determined to distribute power to the power distribution port, determining whether the power distribution port is a normal power port; if it is a normal power port, returning a power distribution success signal to the service consumer; if it is not a normal power port, generating a power-on request signal; wherein the power-on request signal includes the power distribution port and the status of the power distribution port.
[0028] Specifically, in this embodiment, each power distribution unit parameter is arbitrated respectively, and the power distribution port corresponding to the power distribution unit parameter is controlled to be powered on or off according to the arbitration result.
[0029] Among them, in this embodiment, a diagnostic address matching it is pre-set for each distribution port, and the mapping relationship between the distribution port and the diagnostic address is saved in the form of a table; this embodiment defines the logic of controlling the power on and off of each ECU after the external application terminal calls the car's intelligent power distribution service, and arbitrates the received distribution unit parameters based on the preset arbitration logic to determine whether to distribute power to the distribution port corresponding to the diagnostic address.
[0030] Among them, this embodiment also distinguishes the types of power distribution ports, which include normal power ports and non-normal power ports. Normal power ports refer to the type of ports that are normally closed, and non-normal power ports refer to the type of ports that are normally open. Therefore, when distributing power, for normal power ports, port control is not required, and only a power distribution success signal needs to be fed back to the service consumer through the T-Box and the cloud. The service consumer refers to the external application terminal mentioned above; for non-normal power ports, port control is required, so a power-on request signal is generated.
[0031] Step S3: controlling the power distribution port to close according to the power-on request signal.
[0032] It should be noted that, in the process of realizing functional requirements of current application terminals such as OTA-VSM, remote control, and payment engine, the power distribution port is powered on and off through communication control based on CAN signals. This embodiment presets a unified intelligent power distribution service calling interface based on SOA service, allowing service consumers to use SOME / IP to notify / obtain / change the status of the power distribution port of the intelligent power distribution system, and defines the logic of controlling the power on and off of each ECU after the application terminal calls the intelligent power distribution service, thereby reducing the complexity of the software, reducing the software development cycle and cost, and at the same time, reducing the CAN signal interaction of the entire vehicle, reducing the load rate of the CAN bus, and improving the stability of signal transmission.
[0033] Furthermore, based on the SOA service design principles, atomic services need to include security arbitration, composite services need to include scenario / vehicle mode arbitration, and a service firewall needs to be designed to manage the interface calling permissions exposed to different service consumers. Therefore, the smart power distribution service calling interface of this embodiment is semi-open, and the service interface calling permissions can only be exposed to service consumers under the premise of meeting the functional safety of the entire vehicle.
[0034] In some embodiments, the step S2 of arbitrating the power distribution unit parameters to determine whether to distribute power to the power distribution port corresponding to the diagnostic address includes: Determine whether the diagnostic address is legal; if not, return an invalid power distribution signal to the service consumer; if legal, obtain the power distribution port corresponding to the diagnostic address, and determine whether the power distribution port is faulty; if faulty, return a port fault signal to the service consumer; if not, determine to distribute power to the power distribution port.
[0035] Specifically, the arbitration logic of this embodiment is: a matching diagnostic address is set for each power distribution port in advance, and the mapping relationship between the power distribution port and the diagnostic address is saved in the form of a table. By querying the table, it is determined whether the received diagnostic address is in the table. If it is in the table, the diagnostic address is legal. If it is in the table, the diagnostic address is illegal. If the diagnostic address is legal, the power distribution port corresponding to the diagnostic address is obtained according to the table, and it is determined whether the power distribution port is faulty. If it is faulty, power distribution cannot be performed. If it is normal, power distribution can be performed.
[0036] Among them, the power distribution invalid signal and port fault signal are fed back to the service consumer through the T-Box and the cloud to send the power distribution success signal. The T-Box is a wireless communication module for data transmission between the car and the cloud, and communicates with the cloud based on the SOME / IP protocol.
[0037] In some embodiments, the power distribution unit parameters further include power distribution duration, and the power-on request signal further includes the power distribution duration.
[0038] Specifically, each distribution unit parameter includes the distribution duration, which refers to the maximum time that the corresponding distribution port needs to distribute power when the service consumer remotely operates the car. The distribution duration must meet the time requirements of the remote operation, that is, if the distribution duration is too short, the remote operation cannot be completed. The distribution duration of each distribution port is pre-set, that is, the diagnostic address, distribution duration, and distribution port are one-to-one corresponding.
[0039] The method further comprises: Step S4, starting timing while controlling the power distribution port to close.
[0040] Step S5: When the timing result reaches the power distribution duration, if no new power distribution unit parameters corresponding to the diagnostic address are received, the power distribution port is controlled to be disconnected, and a power distribution stop signal is returned to the service consumer.
[0041] Specifically, this embodiment proposes a power distribution timer shutdown solution. After the power distribution time reaches the power distribution time, if there is no new power distribution demand, the power distribution is automatically stopped to reduce unnecessary power consumption, which can prevent abnormal remote operation or long-term power distribution from causing the low-voltage battery of the car to be fed. The power distribution stop signal feeds back the power distribution success signal to the service consumer through the T-Box and the cloud.
[0042] In some embodiments, the method further comprises: Step S6: When the timing result does not reach the power distribution duration, if a new power distribution unit parameter corresponding to the diagnostic address is received, and the power distribution port state of the new power distribution unit parameter is a closed port, the timing result is cleared and the timing is restarted.
[0043] Specifically, the new distribution unit parameters include diagnostic address, distribution port status, and distribution duration. Each time new distribution unit parameters are received and the distribution port status of the new distribution unit parameters is a closed port, the timing needs to be re-set to meet the time requirements of the new remote operation.
[0044] In some embodiments, the method further comprises: Step S7. When the timing result does not reach the power distribution time, if a new distribution unit parameter corresponding to the diagnostic address is received, and the distribution port status of the new distribution unit parameter is a disconnected port, a power-off request signal is generated; wherein the power-off request signal includes the distribution port and the distribution port status of the new distribution unit parameter.
[0045] Step S8: Control the power distribution port to disconnect according to the power-off request signal, and return a power distribution stop signal to the service consumer.
[0046] Specifically, the new distribution unit parameters also include the diagnostic address, the distribution port status, and the distribution duration. If the distribution port status of the new distribution unit parameters is a closed port, the distribution duration can be a default invalid value, such as 0. If a new distribution unit parameter corresponding to the diagnostic address is received, and the distribution port status of the new distribution unit parameters is a disconnected port, the service consumer requests to disconnect the distribution port, and the remote operation ends, at which time a power-off request signal is generated. The distribution stop signal feeds back a distribution success signal to the service consumer through the T-Box and the cloud.
[0047] Based on the contents of the above embodiments, it can be seen that the method of this embodiment can facilitate the agile development of intelligent power distribution software, save development costs, meet the needs of service consumers and vehicle control systems for re-development, and have stronger functional scalability; it can also meet the power-on and power-off service calls in different application scenarios, realize one-to-one functional power-on and power-off, and has strong flexibility.
[0048] Corresponding to the above-mentioned embodiment of a vehicle power on and off control method, another embodiment of the present application further provides a vehicle power on and off control system, see Figure 4 , the system of this embodiment includes: A receiving unit 1, configured to receive a power distribution service call parameter through a preset SOA service interface; wherein the power distribution service call parameter includes at least one power distribution unit parameter, the power distribution unit parameter includes a diagnostic address and a power distribution port status, the diagnostic address corresponds to the power distribution port, and the power distribution port status includes a closed port and an open port; Arbitration unit 2, used for arbitrating the power distribution unit parameters to determine whether to distribute power to the power distribution port corresponding to the diagnostic address, if it is determined that the power distribution port is to be distributed, then judging whether the power distribution port is a normal power port; if it is a normal power port, then returning a power distribution success signal to the service consumer, if it is not a normal power port, then generating a power-on request signal; wherein the power-on request signal includes the power distribution port and the state of the power distribution port; The control unit 3 is used to control the power distribution port to close according to the power-on request signal.
[0049] In some embodiments, the arbitration unit 2 is specifically used for: Determine whether the diagnostic address is legal; if not, return an invalid power distribution signal to the service consumer; if legal, obtain the power distribution port corresponding to the diagnostic address, and determine whether the power distribution port is faulty; if faulty, return a port fault signal to the service consumer; if not, determine to distribute power to the power distribution port.
[0050] In some embodiments, the power distribution unit parameter further includes power distribution duration, and the power-on request signal further includes the power distribution duration; the system further includes a timing unit; The timing unit is used to start timing while controlling the power distribution port to be closed; The control unit 3 is specifically used to control the power distribution port to disconnect and return a power distribution stop signal to the service consumer when the timing result reaches the power distribution duration if the receiving unit does not receive new power distribution unit parameters corresponding to the diagnostic address.
[0051] In some embodiments, the timing unit is also used to clear the timing result and restart the timing when the timing result does not reach the power distribution time if the receiving unit receives a new power distribution unit parameter corresponding to the diagnostic address and the power distribution port state of the new power distribution unit parameter is a closed port.
[0052] The arbitration unit 2 is further configured to generate a power-off request signal when the timing result does not reach the power distribution duration, if the receiving unit receives a new power distribution unit parameter corresponding to the diagnostic address, and the power distribution port state of the new power distribution unit parameter is a disconnected port; The control unit 3 is also used to control the power distribution port to disconnect according to the power-off request signal, and return a power distribution stop signal to the service consumer; wherein the power-off request signal includes the power distribution port and the power distribution port status of the new distribution unit parameters.
[0053] The above-described automobile power-on and power-off control system is merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components of the modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the automobile power-on and power-off control system of the embodiment.
[0054] For example, in one example, the receiving unit 1 and the arbitration unit 2 may be implemented by a central processor on the vehicle side, and the control unit 3 and the timing unit may be implemented by a body domain controller on the vehicle side.
[0055] It should be noted that the automobile power on and off control system of the above-mentioned embodiment corresponds to the automobile power on and off control method of the above-mentioned embodiment. Therefore, the undescribed parts of the automobile power on and off control system of the above-mentioned embodiment can be obtained by referring to the contents of the automobile power on and off control method of the above-mentioned embodiment, that is, the specific steps recorded in the automobile power on and off control method of the above-mentioned embodiment can be understood as the functions that can be realized by the automobile power on and off control system of the above-mentioned embodiment, which will not be repeated here.
[0056] Furthermore, if the automobile power-on and power-off control system of the above-mentioned embodiment is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
[0057] Another embodiment of the present application further proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the vehicle power-on and power-off control method as described in the above embodiment is implemented.
[0058] Specifically, the computer-readable storage medium may include: any entity or recording medium that can carry the computer program instructions, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0059] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for controlling power on and off of a vehicle, characterized in that: The method comprises: Receive power distribution service call parameters through a preset SOA service interface; wherein the power distribution service call parameters include at least one power distribution unit parameter, the power distribution unit parameter includes a diagnostic address and a power distribution port status, the diagnostic address corresponds to the power distribution port, and the power distribution port status includes a closed port and an open port; Arbitrating the power distribution unit parameters to determine whether to distribute power to the power distribution port corresponding to the diagnostic address; if it is determined that the power distribution port is to be distributed, determining whether the power distribution port is a normal power port; if it is a normal power port, returning a power distribution success signal to the service consumer; if it is not a normal power port, generating a power-on request signal; wherein the power-on request signal includes the power distribution port and the state of the power distribution port; The power distribution port is controlled to be closed according to the power-on request signal.
2. The method according to claim 1, characterized in that The arbitrating the power distribution unit parameters to determine whether to distribute power to the power distribution port corresponding to the diagnostic address includes: Determine whether the diagnostic address is legal; if not, return an invalid power distribution signal to the service consumer; if legal, obtain the power distribution port corresponding to the diagnostic address, and determine whether the power distribution port is faulty; if faulty, return a port fault signal to the service consumer; if not, determine to distribute power to the power distribution port.
3. The method according to claim 1, characterized in that The power distribution unit parameters also include power distribution duration, and the power-on request signal also includes the power distribution duration; The method further comprises: Start timing while controlling the power distribution port to be closed; When the timing result reaches the power distribution duration, if no new power distribution unit parameters corresponding to the diagnostic address are received, the power distribution port is controlled to be disconnected, and a power distribution stop signal is returned to the service consumer.
4. The method according to claim 3, characterized in that The method further comprises: When the timing result does not reach the power distribution duration, if a new power distribution unit parameter corresponding to the diagnostic address is received, and the power distribution port state of the new power distribution unit parameter is a closed port, the timing result is cleared and the timing is restarted.
5. The method according to claim 3, characterized in that: The method further comprises: When the timing result does not reach the power distribution duration, if a new power distribution unit parameter corresponding to the diagnostic address is received, and the power distribution port state of the new power distribution unit parameter is a disconnected port, a power-off request signal is generated; wherein the power-off request signal includes the power distribution port and the power distribution port state of the new power distribution unit parameter; The power distribution port is controlled to be disconnected according to the power-off request signal, and a power distribution stop signal is returned to the service consumer.
6. A car power on and off control system, characterized in that: The system comprises: A receiving unit, configured to receive a power distribution service call parameter through a preset SOA service interface; wherein the power distribution service call parameter includes at least one power distribution unit parameter, the power distribution unit parameter includes a diagnostic address and a power distribution port status, the diagnostic address corresponds to the power distribution port, and the power distribution port status includes a closed port and an open port; an arbitration unit, configured to arbitrate the power distribution unit parameters to determine whether to distribute power to the power distribution port corresponding to the diagnostic address; if it is determined that the power distribution port is to be distributed power, then determine whether the power distribution port is a normal power port; if it is a normal power port, then return a power distribution success signal to the service consumer; if it is not a normal power port, then generate a power-on request signal; wherein the power-on request signal includes the power distribution port and the state of the power distribution port; A control unit is used to control the power distribution port to close according to the power-on request signal.
7. The system according to claim 6, characterized in that The arbitration unit is specifically used for: Determine whether the diagnostic address is legal; if not, return an invalid power distribution signal to the service consumer; if legal, obtain the power distribution port corresponding to the diagnostic address, and determine whether the power distribution port is faulty; if faulty, return a port fault signal to the service consumer; if not, determine to distribute power to the power distribution port.
8. The system according to claim 6, characterized in that The power distribution unit parameters also include power distribution duration, and the power-on request signal also includes the power distribution duration; the system also includes a timing unit; The timing unit is used to start timing while controlling the power distribution port to be closed; The control unit is specifically used to control the power distribution port to disconnect and return a power distribution stop signal to the service consumer when the timing result reaches the power distribution duration if the receiving unit does not receive new power distribution unit parameters corresponding to the diagnostic address.
9. The system according to claim 7, characterized in that The timing unit is further configured to clear the timing result and restart the timing when the timing result does not reach the power distribution duration, if the receiving unit receives a new power distribution unit parameter corresponding to the diagnostic address, and the power distribution port state of the new power distribution unit parameter is a closed port; The arbitration unit is further configured to generate a power-off request signal when the timing result does not reach the power distribution duration, if the receiving unit receives a new power distribution unit parameter corresponding to the diagnostic address, and the power distribution port state of the new power distribution unit parameter is a disconnected port; The control unit is also used to control the power distribution port to disconnect according to the power-off request signal, and return a power distribution stop signal to the service consumer; wherein the power-off request signal includes the power distribution port and the power distribution port status of the new distribution unit parameters.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the vehicle power-on and power-off control method according to any one of claims 1 to 5 is implemented.
