Power management method, device, equipment and medium based on service-oriented architecture

Through the power management method of service-oriented architecture, users can customize the power management mode, parse and transmit power control information, realize personalized control of automotive module power supply, solve the problem of single function of traditional power management, and improve the flexibility of the system. and security.

CN115848300BActive Publication Date: 2024-09-13CHONGQING CHANGAN TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202211496724.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-24
Publication Date
2024-09-13
Estimated Expiration
2042-11-24

Smart Images

  • Figure CN115848300B
    Figure CN115848300B
Patent Text Reader

Abstract

The present invention relates to the field of vehicle power management technology, and specifically to a power management method, device, equipment and medium based on a service-oriented architecture. The method provides a power management control method based on an SOA architecture. Based on the service-oriented architecture, a regional controller interface can be flexibly controlled, and users and third-party services can perform personalized power management according to their own needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle power management, and in particular to a power management method, device, equipment and medium based on a service-oriented architecture. Background Art

[0002] In the context of global digitalization, the development of automotive intelligence is accelerating, and new functions are increasing. This background has posed a considerable challenge to the traditional automotive architecture. Under the traditional automotive architecture, users have very low freedom to manipulate the functions of the car. Most functions have been set, and users can only use the defined functions. For example, the control and management of power supply in the existing technology is a defined function. It can only realize the power management function under the conditions set in advance. Users cannot define power management to meet their own needs. Driven by the concept of software-defined cars, a service-oriented automotive architecture is gradually being widely used to replace the traditional automotive architecture in this new development pattern. Through the service-oriented architecture, users can personalize the functions of the car. Summary of the invention

[0003] In view of the above-mentioned shortcomings of the prior art, the present invention provides a power management method, device, equipment and medium based on a service-oriented architecture to solve the above-mentioned technical problems.

[0004] To achieve the above object, the present invention provides a power management method based on a service-oriented architecture, comprising:

[0005] Receiving user-defined power management mode information, wherein the user-defined power management mode information includes power control information for disconnecting or turning on each vehicle module;

[0006] Calling the power management enhanced service in the enhanced service layer through the upper layer service in the upper layer service layer to pass the power control information to the power management enhanced service;

[0007] The power control information is parsed by using the power management enhancement service, mapped to the interface of each regional controller, and divided into a number of power control commands equal to the number of regional controllers according to the regional controllers;

[0008] Respectively calling different regional controller interfaces in the atomic service layer to control atomic services, and transmitting the power control command to the corresponding regional controller interface to control atomic services;

[0009] The regional controller interface control atomic service is used to call the interface input and output abstract service in the input and output abstract service layer, and the power management interface of the corresponding automobile module is controlled to be turned on and off according to the power control command to realize power management.

[0010] In one embodiment of the present invention, the power management enhancement service is used to parse the power control information, correspond it to the interface of each regional controller, and divide it into a number of power control commands equal to the number of regional controllers according to the regional controllers, specifically including:

[0011] After receiving the power control information using the power management enhancement service, verify the data;

[0012] The power management enhancement service is used to parse the power control information after successful verification, correspond it to the interface of each regional controller, and divide it into a number of power control commands equal to the number of regional controllers according to the regional controllers.

[0013] In one embodiment of the present invention, the regional controller interface control atomic service is used to call the interface input and output abstract service in the input and output abstract service layer, and the power interface of the corresponding vehicle module is controlled to be turned on and off according to the power control command to realize power management, which specifically includes:

[0014] Using the regional controller interface to control the atomic service to cyclically compare the received power control command to determine whether the parameters of the power control command are valid;

[0015] If valid, the regional controller interface control atomic service calls the interface input-output abstract service in the input-output abstract service layer.

[0016] In one embodiment of the present invention, the services in the enhanced service layer, the atomic service layer and the input / output abstract service layer are independent of each other.

[0017] In one embodiment of the present invention, the upper layer service includes a scene service layer or a system service layer.

[0018] In an embodiment of the present invention, the method further includes combining a service having a power management method based on a service-oriented architecture with an out-of-domain service orchestration to implement the required functions.

[0019] In one embodiment of the present invention, the method also includes: when the switch state or fault state of the power management interface changes, the interface input and output abstract service is used to notify other services that subscribe to this service of the state change information of the switch state or fault state of the power management interface, so that other services can detect the interface state.

[0020] In an embodiment of the present invention, the method further comprises detecting an interface failure state of the regional controller through a power management enhanced service in the enhanced service layer.

[0021] In one embodiment of the present invention, detecting the interface fault state of the regional controller through the power management enhanced service in the enhanced service layer specifically includes:

[0022] The regional controller interface control atomic service is used to determine the fault status of the interface of the regional controller according to the fault status interface of the interface input and output abstract service, and the fault status is notified to the power management enhanced service in the enhanced service layer. The power management enhanced service in the enhanced service layer notifies the fault status of the power management interface in combination with the fault status notified by each of the regional controller interface control atomic services, so that the upper layer service knows the interface status before performing related control.

[0023] To achieve the above-mentioned purpose, the present invention further provides a power management device based on a service-oriented architecture, wherein the service-oriented architecture includes an enhanced service layer, an atomic service layer, and an input / output abstract service layer arranged from top to bottom, and the device includes:

[0024] An information receiving module, used to receive user-defined power management mode information, wherein the user-defined power management mode information includes power control information for disconnecting or turning on each vehicle module;

[0025] A first processing module, configured to call the power management enhanced service in the enhanced service layer through the service of the upper layer, so as to transmit the power control information to the power management enhanced service;

[0026] A second processing module is used to parse the power control information by using the power management enhancement service, correspond it to the interface of each regional controller, and divide it into a number of power control commands equal to the number of regional controllers according to the regional controllers;

[0027] A third processing module is used to call different regional controller interface control atomic services in the atomic service layer respectively, and transmit the power control command to the corresponding regional controller interface control atomic service;

[0028] The implementation module is used to use the regional controller interface to control the atomic service to call the interface input and output abstract service in the input and output abstract service layer, and control the power management interface of the corresponding automobile module to achieve power management according to the control command.

[0029] To achieve the above object, the present invention further provides an electronic device, the electronic device comprising:

[0030] one or more processors;

[0031] The storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the electronic device implements the above-mentioned power management method based on the service-oriented architecture.

[0032] To achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, characterized in that a computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer executes the above-mentioned power management method based on a service-oriented architecture.

[0033] Beneficial effects of the present invention: The power management method based on service-oriented architecture in the present invention receives user-defined power management mode information, wherein the customized power management mode information includes power control information for disconnecting or opening each automobile module; the upper layer service in the upper layer service layer calls the power management enhanced service in the enhanced service layer to pass the power control information to the power management enhanced service; the power control information is parsed by the power management enhanced service, corresponding to the interface of each regional controller, and divided into a number of power control commands with the same number of regional controllers according to the regional controllers; different regional controller interface control atomic services in the atomic service layer are called respectively, and the power control command is passed to the corresponding regional controller interface control atomic service; the interface input and output abstract service in the input and output abstract service layer is called by the regional controller interface control atomic service, and the power management interface of the corresponding automobile module is controlled to be turned on and off according to the power control command to realize power management. Thus, the automobile power management function can be personalized, which solves the problem that the power management function in the prior art is single and users cannot meet their own personalized needs.

[0034] In addition, since the power management method is based on a service-oriented architecture and is loosely coupled, the power management method of this embodiment is only used to control the power-on and power-off events of the power module itself. Users or other demand parties can design power management scenarios according to their own needs, and combine the services of the above-mentioned power management method based on a service-oriented architecture with off-domain service orchestration to achieve the required functions.

[0035] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0037] Figure 1 It is a schematic diagram of a power management architecture;

[0038] Figure 2 is a schematic diagram of a service-oriented architecture shown in an exemplary embodiment of the present application;

[0039] Figure 3 is a flow chart of a power management method based on a service-oriented architecture shown in an exemplary embodiment of the present application;

[0040] Figure 4 yes Figure 3 Step S330 in the illustrated embodiment is a flow chart in an exemplary embodiment;

[0041] Figure 5 yes Figure 3 Step S340 in the illustrated embodiment is a flow chart in an exemplary embodiment;

[0042] Figure 6 is a block diagram of a power management device based on a service-oriented architecture shown in an exemplary embodiment of the present application;

[0043] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0044] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0045] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0046] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.

[0047] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0048] Unless otherwise stated, the term "plurality" means two or more.

[0049] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0050] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0051] First of all, it should be explained that the Service Oriented Architecture (SOA) is a component model that connects different functional units of an application (called services) through well-defined interfaces and contracts between these services. The interface is defined in a neutral way and should be independent of the hardware platform, operating system, and programming language that implements the service. This allows services built in various such systems to interact in a unified and universal way.

[0052] This feature of having a neutral interface definition (no binding to a specific implementation) is called loose coupling between services. The benefits of a loosely coupled system are twofold: flexibility and the ability to survive as the internal structure and implementation of each service that makes up the entire application gradually change. Tight coupling, on the other hand, means that the interfaces between the different components of the application are closely tied to their functionality and structure, making them vulnerable when some form of change is required to part or the entire application. The need for loosely coupled systems comes from the business, and applications need to become more flexible based on the needs of the business. We call businesses that can flexibly adapt to changes in the environment on-demand businesses, where necessary changes can be made to the way tasks are completed or performed as soon as necessary. All of this must be in an environment of trust and reliability to execute processes as expected and according to the agreed terms. Therefore, security, trust, and reliable messaging should play an important role in any service-oriented architecture.

[0053] Now, through power management based on service-oriented architecture, service-oriented (SOA) is applied to power management, which can flexibly control the regional controller interface so that users can manage power according to their own needs.

[0054] Figure 1 It is a schematic diagram of the power management architecture. If the user wants to implement power management, he can only view the pre-set power management functions through the vehicle's control terminal. After selecting the function, the control terminal sends the control information to the control chip, and the control chip controls the power supply. In traditional power management, the control management of power is a defined function. It can only realize the power management function under the pre-set conditions. Users cannot define power management to meet their own needs.

[0055] To solve these problems, an embodiment of the present application proposes a power management method based on a service-oriented (SOA) architecture. Figure 2 FIG. 1 is a schematic diagram of a service-oriented (SOA) architecture according to an exemplary embodiment of the present application. Figure 2As shown, under the service-oriented (SOA) architecture, application services are generally divided into three layers: (1) an enhanced service layer 210 related to service functions; (2) an atomic service layer 220 that implements software and hardware isolation; and (3) an input and output (IO) abstract service layer 230 related to the underlying hardware. The enhanced service layer 210 includes a power management enhanced service, which provides a power management control method to the upper layer. The upper layer service can pass the power control information to the power management enhanced service for processing through the source management control method; the atomic layer 220 includes each regional controller interface control atomic service, and the regional controller interface control atomic service has a method provided to the power management enhanced service to call and make the regional controller interface control the atomic service, that is, the regional controller interface control method. In this example, according to the number of regional controllers (for example, three), the corresponding number of regional controller interface control atomic services are divided to control each regional controller interface respectively; the input and output abstract layer 230 abstracts each interface of each regional controller, such as the interface control method, the interface for notifying the interface status, and the interface for notifying the interface failure status, into a service.

[0056] The power management enhanced service of the enhanced service layer 210 calls the regional controller interface of the atomic service layer 220 to control the atomic service. The regional controller interface of the atomic service layer 220 controls the atomic service to call the interface input and output abstract service of the input and output abstract service layer 230. The services in the three layers are independent of each other and can call methods in the lower layer services from the top.

[0057] Through layering, the services between layers are independent. A layer does not need to know how the layer below it is implemented, but only needs to know the services provided by the layer through the interface between layers. Since each service in each layer only implements a relatively independent function, a complex problem that is difficult to handle can be decomposed into several smaller problems that are easier to handle. In this way, the complexity of the entire problem is reduced, and flexibility is also improved, so that each layer does not affect each other.

[0058] Figure 3 FIG. 1 is a flowchart of a power management method based on a service-oriented architecture shown in an exemplary embodiment of the present application. Figure 2 The service-oriented architecture implementation shown.

[0059] like Figure 3 As shown, in an exemplary embodiment, the power management method based on the service-oriented architecture includes at least steps S310 to S350, which are described in detail as follows:

[0060] Step S310, receiving user-defined power management mode information, wherein the user-defined power management mode information includes power control information for disconnecting or turning on each vehicle module.

[0061] Users can customize the power management mode according to their own needs. In the power management mode, they can set the power control information of each vehicle module to be disconnected or turned on, and transmit the saved mode information to the controller (one of the multiple regional controllers mentioned later). Among them, the vehicle module can be, for example, all car lights, such as headlights, taillights, turn signals, etc., of course, it can also be a window lifting module, sunroof opening module, instrument panel, ambient light, etc.

[0062] Among them, users can add power management modes through any terminal device such as smartphones, car computers, tablets, laptops or wearable devices, but are not limited to these.

[0063] Step S320: calling the power management enhanced service in the enhanced service layer through the upper layer service in the upper layer service layer to pass the power control information to the power management enhanced service.

[0064] In an exemplary embodiment, the upper layer service includes a scene service in a scene service layer and a system service in a system service layer, and the scene service and the system service each call an enhanced service downward. After receiving the power control information, the controller calls the power management control method provided by the power management enhanced service through the upper layer service to pass the power control information to the power management enhanced service. Among them, the input parameter of this method is the control information, and the output parameter is the call feedback. The power control information is passed to the enhanced service as parameter A, and parameter A is a structure type, and its members correspond to all regional controller interfaces.

[0065] Step S330: parse the power control information using the power management enhancement service, correspond it to the interface of each regional controller, and divide it into a number of power control commands equal to the number of regional controllers.

[0066] Specifically, the power management enhancement service is used to parse the power control information, correspond it to the interface of each regional controller, and divide it into a number of power control commands that is the same as the number of the regional controllers according to the regional controllers, including: after the power management enhancement service receives the power control information, the power management enhancement service is used to verify the data after receiving the power control information; the power management enhancement service is used to parse the power control information after the verification is successful, correspond it to the interface of each regional controller, and divide it into a number of power control commands that is the same as the number of the regional controllers according to the regional controllers.

[0067] In an exemplary embodiment, the enhanced service parses the control information, and maps it to the specific interface of each regional controller according to the member name information of parameter A, and divides it into data B (i.e., power control commands) corresponding to the corresponding number of regional controllers. B is also a structure type parameter, and its members correspond to the interfaces of each regional controller.

[0068] Step S340, respectively calling different regional controller interfaces in the atomic service layer to control atomic services, and passing the power control command to the corresponding regional controller interface to control atomic services.

[0069] In an exemplary embodiment, the power management enhancement service is used to call the power interface control method of each regional controller interface management atomic service, and the control command parameter B is passed to the corresponding atomic service respectively.

[0070] It should be noted that the power management enhancement service can be configured in each regional controller or in one regional controller, but in the entire power management method, only one regional controller configured with the power management enhancement service can be called at the same time.

[0071] In an exemplary embodiment, one of the regional controllers is configured with a power management enhancement service, while the other regional controllers are not configured with the power management enhancement service. The upper-layer service in the upper-layer service layer may call the power management control method of the power management enhancement service of the regional controller configured with the power management enhancement service to pass the power control information to the power management enhancement service and implement subsequent steps S330, S340 and S350.

[0072] In another exemplary embodiment, in addition to being configured with enhanced services in each regional controller, the upper-layer service is also set with the authority to call the power management enhanced service in the regional controller, ensuring that only one regional controller's power management enhanced service can be called at the same time. The upper-layer service in the upper-layer service layer can pass the power control information to the power management enhanced service by calling the power management control method of the regional controller's power management enhanced service, and implement the subsequent steps S330, S340 and S350. The power management enhanced services of other regional controllers do not have the authority to be called, so the regional controller interface control method of the different regional controller interfaces in the atomic service layer is called to pass the parameters of the control command to the atomic service, thereby implementing step S350 and completing power management. By combining the configuration of enhanced services and authority in the regional controllers, it can be avoided that when the power management enhanced service of the regional controller configured with authority does not respond, the authority of the power management enhanced service of the regional controller that cannot respond is closed, and the authority of other power management enhanced services that can be called by the corresponding regional controller is opened to implement the required function, which greatly improves the security prevention and control capabilities of the system.

[0073] In this embodiment, the number of regional controllers may include three, for example. Of course, in other embodiments, the number of regional controllers may also be set as needed, and is not limited here.

[0074] Step S350, using the regional controller interface control atomic service to call the interface input and output abstract service in the input and output abstract service layer, and controlling the power management interface of the corresponding vehicle module to turn on and off according to the power control command to implement power management.

[0075] Figure 4 yes Figure 3 Step S330 in the illustrated embodiment is a flow chart of an exemplary embodiment. Figure 4 As shown, it may include steps S410 to S420, which are described in detail as follows:

[0076] Step S410: After receiving the power control information, the power management enhancement service verifies the data.

[0077] In an exemplary embodiment, the power management enhancement service verifies parameter A corresponding to the power control information after receiving it, compares each member of parameter A, and determines whether the parameter value is within the valid range. If all checks are passed, it returns a successful call, otherwise it returns that the parameter value is out of range.

[0078] Step S420: parse the power control information after successful verification by using the power management enhancement service, correspond it to the interface of each regional controller, and divide it into a number of power control commands equal to the number of regional controllers according to the regional controllers.

[0079] In an exemplary embodiment, after the enhanced service receives the power control information, the data is verified to filter out invalid data, prevent invalid data from entering the atomic service layer, and avoid the situation where the atomic service cannot respond after receiving invalid data. Atomic service resources are released and system security is improved.

[0080] Figure 5 yes Figure 3 Step S340 in the illustrated embodiment is a flow chart in an exemplary embodiment. Figure 5 As shown, it may include steps S510 to S520, which are described in detail as follows:

[0081] Step S510: Using the regional controller interface to control the atomic service to cyclically compare the received power control command to determine whether the parameters of the power control command are valid.

[0082] Step S520: If valid, the regional controller interface control atomic service calls the interface input and output abstract service in the input and output abstract service layer.

[0083] In an exemplary embodiment, after the regional controller interface control atomic service receives the power control command parameters, it cyclically compares the members of the power control command parameters to see if they are within the valid range. If they are all within the valid range, the regional controller interface control atomic service is used to call the interface control method of each interface input and output abstract service to pass the power control command to the corresponding regional controller interface control atomic service.

[0084] After receiving the power control command parameters, the atomic service determines whether the parameters are valid by comparing the control commands in a loop, and screens out invalid parameters to prevent invalid parameters from entering the input and output abstraction layer, thus avoiding the situation where the interface input and output abstraction service cannot respond after receiving invalid parameters. This releases the interface input and output abstraction service resources and improves system security.

[0085] In this embodiment, the power management method also includes detecting the interface fault status of the regional controller through the power management enhanced service in the enhanced service layer, specifically including: using the regional controller interface control atomic service to judge the fault status of the interface of the regional controller according to the fault status interface of the interface input and output abstract service, and notifying the power management enhanced service in the enhanced service layer of the fault status, the power management enhanced service in the enhanced service layer notifies the fault status of the power management interface in combination with the fault status notified by each of the regional controller interface control atomic services, so that the upper layer service knows the interface status before performing related control.

[0086] It should be noted that in this embodiment, when the switch state or fault state of the power management interface changes, the interface input and output abstract service can be used to notify other services that subscribe to this service of the state change information of the switch state or fault state of the power management interface, so that other services can detect the interface status.

[0087] Since the services in the enhanced service layer, atomic service layer, and input / output abstract service layer are independent of each other and can call methods in lower layer services from above, if the power management enhanced service wants to obtain the interface switch status and fault status change information, it can indirectly obtain the information through the atomic service according to the fault status interface of the interface input / output abstract service, so the other services here may not include the power management enhanced service. Of course, in other embodiments, the other services here may also include the power management enhanced service.

[0088] It should be noted that since the power management method is based on a service-oriented architecture and is loosely coupled, the power management method of this embodiment is only used to control the power-on and power-off events of the power module itself. Users or other demand parties can design power management scenarios according to their own needs, and combine the services of the above-mentioned power management method based on a service-oriented architecture with off-domain service orchestration to achieve the required functions.

[0089] As an example, for example, if a user designs a scenario in which the power of all lights is directly disconnected after a person leaves the car, the service for detecting whether there is someone in the car and the power management service are arranged together, and the power control part can directly control the hardware power interface of all lights to be disconnected through the method provided by the present invention. The power management enhancement service provides a power management control method that can be called by other services. It is particularly noted that this method refers to the interface provided by the service in the service-oriented architecture, and other services can pass the command parameters for specific control of the power interface through this method.

[0090] Figure 6 It is a block diagram of a power management device based on a service-oriented architecture shown in an exemplary embodiment of the present application.

[0091] like Figure 6 As shown, the exemplary power management device based on the service-oriented architecture includes an information receiving module 610, a first processing module 620, a second processing module 630, a third processing module 640, and an implementation module 650.

[0092] Among them, the information receiving module 610 is used to receive user-defined power management mode information, and the customized power management mode information includes power control information for disconnecting or turning on each automobile module; the first processing module 620 is used to call the power management enhanced service in the enhanced service layer through the upper layer service to pass the power control information to the power management enhanced service; the second processing module 630 is used to use the power management enhanced service to parse the power control information, correspond it to the interface of each regional controller, and divide it into a number of power control commands equal to the number of regional controllers according to the regional controllers; the third processing module 640 is used to call different regional controller interface control atomic services in the atomic service layer respectively, and pass the power control command to the corresponding regional controller interface control atomic service; the implementation module 650 is used to use the regional controller interface control atomic service to call the interface input and output abstract service in the input and output abstract service layer, and control the power management interface of the corresponding automobile module to be turned on and off according to the control command to realize power management.

[0093] It should be noted that the power management device based on a service-oriented architecture provided in the above embodiment and the power management method based on a service-oriented architecture provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here. In actual applications, the power management device based on a service-oriented architecture provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0094] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the power management method based on the service-oriented architecture provided in the above-mentioned embodiments.

[0095] Figure 7 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 7The computer system 700 of the electronic 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 application.

[0096] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703, such as executing the method described in the above embodiment. In the RAM 703, various programs and data required for system operation are also stored. The CPU 701, the ROM 702 and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0097] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

[0098] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 709, and / or installed from a removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, various functions defined in the system of the present application are executed.

[0099] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can 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), a 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 of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0100] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, 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 box can also occur in a different order from the order marked in the accompanying drawings. For example, two 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 box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0101] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0102] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the power management method based on a service-oriented architecture as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0103] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the power management method based on the service-oriented architecture provided in each of the above embodiments.

[0104] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A power management method based on a service-oriented architecture, characterized in that: The service-oriented architecture includes an enhanced service layer, an atomic service layer, and an input / output abstract service layer arranged from top to bottom, and the method includes: Receiving user-defined power management mode information, wherein the user-defined power management mode information includes power control information for disconnecting or turning on each vehicle module; Calling the power management enhanced service in the enhanced service layer through the upper layer service in the upper layer service layer to pass the power control information to the power management enhanced service; The power control information is parsed by using the power management enhancement service, mapped to the interface of each regional controller, and divided into a number of power control commands equal to the number of regional controllers according to the regional controllers; Respectively calling different regional controller interfaces in the atomic service layer to control atomic services, and transmitting the power control command to the corresponding regional controller interface to control atomic services; Using the regional controller interface control atomic service to call the interface input and output abstract service in the input and output abstract service layer, and controlling the power management interface of the corresponding vehicle module to turn on and off according to the power control command to implement power management; The regional controller interface control atomic service is used to call the interface input and output abstract service in the input and output abstract service layer, and the power interface of the corresponding vehicle module is controlled to be turned on and off according to the power control command to realize power management, which specifically includes: Using the regional controller interface to control the atomic service to cyclically compare the received power control command to determine whether the parameters of the power control command are valid; If valid, the regional controller interface control atomic service calls the interface input-output abstract service in the input-output abstract service layer.

2. The power management method based on service-oriented architecture according to claim 1, characterized in that: The power control information is parsed using the power management enhancement service, mapped to the interface of each regional controller, and divided into a number of power control commands equal to the number of regional controllers, specifically including: After receiving the power control information using the power management enhancement service, verifying the data; The power management enhancement service is used to parse the power control information after successful verification, correspond it to the interface of each regional controller, and divide it into a number of power control commands equal to the number of regional controllers according to the regional controllers.

3. The power management method based on service-oriented architecture according to claim 1, characterized in that: The services in the enhanced service layer, the atomic service layer and the input / output abstract service layer are independent of each other.

4. The power management method based on service-oriented architecture according to claim 1, characterized in that: The upper layer service includes a scene service layer or a system service layer.

5. The power management method based on service-oriented architecture according to claim 1, characterized in that: The method also includes combining the service having the power management method based on the service-oriented architecture with an out-of-domain service orchestration to implement the required functions.

6. The power management method based on service-oriented architecture according to claim 1, characterized in that: The method also includes: when the switch state or fault state of the power management interface changes, using the interface input and output abstract service to notify other services subscribed to this service of the state change information of the switch state or fault state of the power management interface, so that other services can detect the interface state.

7. The power management method based on service-oriented architecture according to claim 1, characterized in that: The method further includes detecting an interface failure state of the regional controller through a power management enhanced service in the enhanced service layer.

8. A power management method based on service-oriented architecture according to claim 7, characterized in that: Detecting the interface fault state of the regional controller by using the power management enhanced service in the enhanced service layer specifically includes: The regional controller interface control atomic service is used to determine the fault status of the interface of the regional controller according to the fault status interface of the interface input and output abstract service, and the fault status is notified to the power management enhanced service in the enhanced service layer. The power management enhanced service in the enhanced service layer notifies the fault status of the power management interface in combination with the fault status notified by each of the regional controller interface control atomic services, so that the upper layer service knows the interface status before performing related control.

9. A power management device based on a service-oriented architecture, characterized in that: The service-oriented architecture includes an enhanced service layer, an atomic service layer, and an input / output abstract service layer arranged from top to bottom, and the device includes: An information receiving module, used to receive user-defined power management mode information, wherein the user-defined power management mode information includes power control information for disconnecting or turning on each vehicle module; A first processing module, configured to call the power management enhanced service in the enhanced service layer through the service of the upper layer, so as to transmit the power control information to the power management enhanced service; A second processing module is used to parse the power control information by using the power management enhancement service, correspond it to the interface of each regional controller, and divide it into a number of power control commands equal to the number of regional controllers according to the regional controllers; A third processing module is used to call different regional controller interface control atomic services in the atomic service layer respectively, and transmit the power control command to the corresponding regional controller interface control atomic service; An implementation module, used to use the regional controller interface control atomic service to call the interface input and output abstract service in the input and output abstract service layer, and control the power management interface of the corresponding automobile module to be turned on and off according to the control command to implement power management; The regional controller interface control atomic service is used to call the interface input and output abstract service in the input and output abstract service layer, and the power interface of the corresponding vehicle module is controlled to be turned on and off according to the power control command to realize power management, which specifically includes: Using the regional controller interface to control the atomic service to cyclically compare the received power control command to determine whether the parameters of the power control command are valid; If valid, the regional controller interface control atomic service calls the interface input-output abstract service in the input-output abstract service layer.

10. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement a power management method based on a service-oriented architecture as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is enabled to execute a power management method based on a service-oriented architecture as claimed in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Automobile door lock control system and method based on SOA framework

    CN114445937A

  • Control method and system for reducing quiescent current of whole vehicle under SOA framework

    CN115071608A

  • Air conditioner control system and assembly based on SOA service and vehicle

    CN115139735A

  • Method for operating an on-board network, on-board network, and control unit

    DE102021104420A1

  • Smart mediation system in a service oriented architecture

    US20100161563A1