Software and hardware decoupled central-regional EEA architecture
Through service mapping and service agents, hardware resources are mapped into services and controlled by the central controller, which solves the problems of insufficient storage resources and high hardware costs of regional controllers, achieves complete decoupling of software and hardware and hardware versatility, and reduces the cost of cost.
Patent Information
- Application Number
- CN202410655764.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-20
AI Technical Summary
In the existing technology, the storage resources of the regional controller are insufficient, resulting in high hardware cost and inability to be universal. The software and hardware are not completely decoupled, and system resources cannot be effectively utilized.
Through service mapping and service proxy, hardware resources are mapped into services, and hardware capability services are published through communication middleware. The central controller subscribes to and controls the hardware resources of the regional controller, achieving complete decoupling of software and hardware, and utilizing the system of the central controller resources and reduce regional controller costs.
It achieves complete decoupling of centralized software and distributed hardware, reduces regional controller costs, improves hardware versatility, and makes full use of system resources.
Smart Images

Figure CN118677948A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of regional EEA architecture, and in particular to a central-regional EEA architecture with software and hardware decoupling. Background Art
[0002] The existing technology adopts regional EEA architecture + SOA communication middleware, and the applications are distributed in the central controller and the regional controller. The software and hardware are not completely decoupled. The SOA communication middleware occupies a large amount of system storage resources. The on-chip flash is not enough, and it is necessary to increase the off-chip memory, which leads to high cost of the regional controller and the hardware cannot be unified and universal.
[0003] Patent document CN114938384A discloses a virtualization device and method based on the regional EEA architecture. By setting a logical virtual device corresponding to the system preset function in the domain controller, when the preset function is activated, the virtual device bus mounts the virtual device corresponding to the corresponding logical virtual device, the service set corresponds to the service of the logical virtual device, the domain controller opens the virtual device, and controls the regional controller to open the corresponding physical device, calls the driver of the physical device, reads the original data and sends it to the virtual device, and then sends it to the service in the service set for corresponding processing.
[0004] Currently, there is no relevant literature mentioning the potential storage resource shortage problem of the regional controller when implementing SOA, but the present invention solves this problem through "service mapping" and "service proxy". Summary of the invention
[0005] In view of the defects in the prior art, an object of the present invention is to provide a central-regional EEA architecture with decoupled software and hardware.
[0006] The central-regional EEA architecture with software and hardware decoupling provided by the present invention includes a central controller and a regional controller;
[0007] The central controller includes an application layer module and a basic software layer module, the regional controller includes a basic software layer module, the application layer module includes one or more applications, the basic software layer module includes a service mapping module and a communication middleware, and the service mapping module is only deployed in the regional controller;
[0008] One or more hardware are connected to the regional controller, and the hardware includes an actuator and a sensor;
[0009] The regional controller maps hardware resources into services through a service mapping module and publishes hardware capability services through a communication middleware;
[0010] The central controller subscribes to the hardware capability service published by the regional controller through the communication middleware.
[0011] Preferably, the communication middleware is SOME / IP or DDS.
[0012] Preferably, when the system storage resources on the regional controller are insufficient to carry the communication middleware, the service mapping module is extended to support the message parsing and partial subscription communication functions of the communication middleware; the central controller includes a service proxy application to publish the hardware capability service of the regional controller on its behalf.
[0013] Preferably, the regional controller publishes the hardware capability service with a service mapping module, or publishes the hardware capability service through a service agent of the central controller; and the application on the central controller subscribes to the hardware capability service.
[0014] Preferably, before subscribing to a service, the communication middleware on the regional controller or the central controller performs service discovery.
[0015] Preferably, the service mapping module includes: mapping the hardware functions of the regional controller to services and providing them to the central controller, and the central controller implements remote access and control of the HW input / output pins of the regional controller through various communication methods provided by the SOME / IP protocol.
[0016] Preferably, the process of mapping the hardware functions of the regional controller to the service is: creating a hardware capability service and a unified interface; mapping to different methods according to the hardware interface type; and publishing the hardware capability service.
[0017] Preferably, the remote access and control process is as follows: the regional controller publishes the hardware capability service, and after the central controller subscribes to the hardware capability service, the control instructions of the application on the central controller are sent to the regional controller through the corresponding Method, so as to realize the access control to the hardware connected to the regional controller;
[0018] The regional controller publishes hardware data services, and the central controller application subscribes to the corresponding hardware data event group through Event or Notifier. The hardware data is published to the subscriber in a triggered or periodic manner according to the settings.
[0019] Preferably, the service proxy includes: service mapping is based on the SOA architecture, when the regional controller cannot carry the SOME / IP and DDS protocols that implement SOA, the problem is solved by the service proxy; service mapping also implements some functions of the SOME / IP protocol client.
[0020] Preferably, the service agent process is: register hardware capability services and services provided by other regional controllers with the communication middleware, and register access control event groups with the communication middleware; publish services and receive subscriptions; the central controller's application subscribes to hardware capability services, and the regional controller subscribes to access control event groups; the central controller's application's control instructions are sent to the service agent via Method, and the service agent triggers access control events for the corresponding hardware; the service agent automatically notifies the subscriber, i.e., the service mapping module of the regional controller, of hardware access control events.
[0021] Compared with the prior art, the present invention has the following beneficial effects:
[0022] The present invention solves the problems of insufficient storage resources in the regional controller system, high hardware cost and non-universal use, and incomplete decoupling of software and hardware through service mapping and service proxy, realizes complete decoupling of software and hardware with centralized software and distributed hardware, fully utilizes the system resources of the central controller, reduces the cost of the regional controller, and realizes universal hardware of each regional controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0024] Figure 1 It is a schematic diagram of the central-regional EEA system architecture;
[0025] Figure 2 Provides service mapping and service proxy flow charts. DETAILED DESCRIPTION
[0026] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0027] Example
[0028] The present invention provides a central-regional EEA architecture with software and hardware decoupling, such as Figure 1 , which is a schematic diagram of the central-regional EEA system architecture. The left side is the central controller, and there are usually one or more in the car, including the application layer, basic software layer, and hardware abstraction layer; the right side is the regional controller, and there are usually one or more in the car, including the application layer, BSW layer, and hardware layer.
[0029] The present invention solves the problems of insufficient storage resources in the regional controller system, high hardware cost and non-universal use, and incomplete decoupling of software and hardware through service mapping and service proxy, realizes complete decoupling of software and hardware with centralized software and distributed hardware, fully utilizes the system resources of the central controller, reduces the cost of the regional controller, and realizes universal hardware of each regional controller.
[0030] (1) Service Mapping
[0031] The hardware functions of the regional controllers are mapped to services and provided to the central controller. The central controller implements remote access and control of the regional controller HW input / output pins through various communication methods provided by the SOME / IP protocol.
[0032] The process of mapping the hardware resources of the regional controller to services:
[0033] 1. Create hardware capability services and unify interfaces;
[0034] 2. Map to different Methods according to the hardware interface type (CAN\LIN\FlexRay\GPIO\HS\LS\PWM, etc.);
[0035] 3. Release hardware capability services.
[0036] Communication method:
[0037] SOME / IP communication middleware supports three communication modes: Method, Event and Field. Method has two types, Request / Response (R&R) and Fire&Forget (F&F). Field includes three modes: Getter, Setter and Notifier.
[0038] 1.Request&Response Method: The client sends a request and the server responds.
[0039] 2. Fire & Forget Method: The client sends a request and the server does not need to respond.
[0040] 3.Event: The client subscribes to an event group. When at least one event in the event group occurs, the server notifies the client through a Notification message.
[0041] 4.Setter: It is implemented through Request / Response. The Request is empty and does not carry any data. The Response returns the value of the Field.
[0042] 5.Getter: It is implemented through Request / Response. Request carries the value you want to set the Field to, and Response returns the value set for the Field.
[0043] 6.Notifier: It is implemented through Event. The sending strategy is the same as Event. The difference is that when the first subscription is successful, the Server will actively send a Notifier with the current Field value.
[0044] Remote access and control process:
[0045] The regional controller publishes the hardware capability service. After the central controller subscribes to the hardware capability service, the control instructions of the application on the central controller are sent to the regional controller through the corresponding Method, thereby realizing access control to the hardware connected to the regional controller.
[0046] Usually, the regional controller publishes hardware data services, and the central controller application subscribes to the corresponding hardware data event group through Event or Notifier. The hardware data can be triggered or periodically published to the subscriber according to the settings.
[0047] Software centralization: The software is concentrated in the central controller, and there is very little software in the regional controllers;
[0048] Hardware distribution: Hardware capabilities are provided by regional controllers, and the central controller has only a few hardware resources.
[0049] Through the above-mentioned software centralized and hardware distributed solutions, significant software and hardware decoupling is achieved.
[0050] (2) Service Agent
[0051] Service mapping is based on the SOA architecture. When the regional controller cannot carry the SOME / IP, DDS and other protocols that implement SOA, the service proxy solves this problem. Service mapping also implements some functions of the SOME / IP protocol client.
[0052] Service agent process such as Figure 2 :
[0053] 1. The service agent registers the hardware capability service and services provided by other regional controllers with the communication middleware, and the service agent registers the access control event group with the communication middleware;
[0054] 2. Publish services and receive subscriptions;
[0055] 3. The central controller's application subscribes to the hardware capability service, and the regional controller subscribes to the access control event group;
[0056] 4. The control instructions of the application of the central controller are sent to the service agent through the Method, and the service agent triggers the access control event of the corresponding hardware;
[0057] 5. The service agent automatically notifies the hardware access control event to the subscriber, i.e., the service mapping module of the zone controller.
[0058] In the central-zonal EEA architecture, the central controller usually has limited HW input / output resources (analog input, digital input / output, PWM input / output, H-bridge, LIN, etc.) supported by the zonal controller. The present invention provides a scalable, flexible, and clearly decoupled solution for the zonal EEA Arch. The central controller integrates most of the application software, while the zonal controller provides the central controller with business-independent software ("service mapping") and supports hardware input / output resources. The solution maps the HW input / output resources of the zonal controller into services and publishes them through the SOA server. The central controller accesses and controls its peripherals through subscriptions. Sometimes the storage resources of the zonal controller are limited, or even without an operating system, which is not enough to carry a complex SOA architecture. The zonal controller can be perfectly integrated into the entire central-zonal EEA architecture through this solution. Based on the above-mentioned "service mapping", the services of the HW input / output resources of the zonal controller can be published and received through the service agent on the central controller, receiving access and control requests from other components, and triggering events to notify the "service mapping" to access and control its peripherals.
[0059] Those skilled in the art know that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.
[0060] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A central-regional EEA architecture with software and hardware decoupling, characterized in that: include: Central controller and regional controllers; The central controller includes an application layer module and a basic software layer module, the regional controller includes a basic software layer module, the application layer module includes one or more applications, the basic software layer module includes a service mapping module and a communication middleware, and the service mapping module is only deployed in the regional controller; One or more hardware are connected to the regional controller, and the hardware includes an actuator and a sensor; The regional controller maps hardware resources into services through a service mapping module and publishes hardware capability services through a communication middleware; The central controller subscribes to the hardware capability service published by the regional controller through the communication middleware.
2. The central-regional EEA architecture with software and hardware decoupling according to claim 1, characterized in that: The communication middleware is SOME / IP or DDS.
3. The central-regional EEA architecture with software and hardware decoupling according to claim 1, characterized in that: When the system storage resources on the regional controller are insufficient to carry the communication middleware, the service mapping module is extended to support the message parsing and partial subscription communication functions of the communication middleware; the central controller includes a service proxy application to publish the hardware capability service of the regional controller on its behalf.
4. The central-regional EEA architecture with software and hardware decoupling according to claim 1, characterized in that: The regional controller publishes the hardware capability service with a service mapping module, or publishes the hardware capability service through a service agent of the central controller; the application on the central controller subscribes to the hardware capability service.
5. The central-regional EEA architecture with software and hardware decoupling according to claim 1, characterized in that: Before subscribing to a service, the communication middleware on the regional controller or the central controller performs service discovery.
6. The central-regional EEA architecture with software and hardware decoupling according to claim 1, characterized in that: The service mapping module includes: the hardware functions of the regional controller are mapped to services and provided to the central controller. The central controller implements remote access and control of the HW input / output pins of the regional controller through various communication methods provided by the SOME / IP protocol.
7. The central-regional EEA architecture with software and hardware decoupling according to claim 6, characterized in that: The process of mapping the hardware functions of the regional controller to services is as follows: creating hardware capability services and unifying interfaces; mapping to different methods according to the hardware interface types; and publishing hardware capability services.
8. The central-regional EEA architecture with software and hardware decoupling according to claim 6, characterized in that: The remote access and control process is as follows: the regional controller publishes the hardware capability service, and after the central controller subscribes to the hardware capability service, the control instructions of the application on the central controller are sent to the regional controller through the corresponding Method, realizing access control of the hardware connected to the regional controller; The regional controller publishes hardware data services, and the central controller application subscribes to the corresponding hardware data event group through Event or Notifier. The hardware data is published to the subscriber in a triggered or periodic manner according to the settings.
9. The central-regional EEA architecture with software and hardware decoupling according to claim 4, characterized in that: Service proxy includes: service mapping is based on SOA architecture. When the regional controller cannot carry the SOME / IP and DDS protocols that implement SOA, the problem is solved through service proxy; service mapping also realizes some functions of the SOME / IP protocol client.
10. The central-regional EEA architecture with software and hardware decoupling according to claim 9, characterized in that: The service agent process is as follows: register hardware capability services and services provided by other regional controllers with the communication middleware, and register access control event groups with the communication middleware; publish services and receive subscriptions; the central controller's application subscribes to hardware capability services, and the regional controller subscribes to access control event groups; the central controller's application's control instructions are sent to the service agent via Method, and the service agent triggers access control events for the corresponding hardware; the service agent automatically notifies the subscriber, i.e., the service mapping module of the regional controller, of hardware access control events.
Citation Information
Patent Citations
Virtualization device and method based on regional EEA architecture
CN114938384A
