Methods for implementing aggregated device components in SCA

By inheriting the AggregateDevice interface and managing device components in SCA, it solves the problem of missing implementation of aggregate device component types, provides support and management of association relationships between components, realizes the correct deployment and destruction of aggregate device components, and improves the functions of SCA performance and scalability.

CN118466982BActive Publication Date: 2024-10-22成都谐盈科技有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410938973.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-22
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

The SCA standard does not provide support for the implementation of aggregate device component types, and lacks a management and implementation method for the association between components.

Method used

By inheriting and implementing the AggregateDevice interface in the SCA platform component, ordinary device components, loadable device components and executable device components are transformed into aggregate device components. The device manager handles the aggregate device components and their associated relationships during deployment and destruction. , providing addDevice, removeDevice methods and devices attributes to manage relationships.

Benefits of technology

The SCA core framework implements the aggregation device function, reasonably handles aggregation devices and their relationships, provides convenient interfaces and process control, and ensures the correct deployment and destruction of aggregation device components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118466982B_ABST
    Figure CN118466982B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of electrical digital data processing in software communication, and specifically to a method for implementing an aggregate device component in SCA. The method includes the following steps: A. The device component inherits the AggregateDevice interface of SCA and is transformed into an aggregate device component; B. The device association attributes in the configuration file are saved as key-value pair variables; C. During deployment, it is determined whether the device component is associated with the aggregate device component according to the corresponding key-value pair variables. If so, the device component is deployed after the associated aggregate device component is deployed; D. During destruction, the association between other device components and the aggregate device component is first released, and then the association between the aggregate device component and other aggregate device components is removed, and finally the aggregate device component is destroyed. The present invention realizes the implementation of the aggregate device component function in the SCA core framework, as well as the method of adding and releasing the aggregate device component and the association relationship it manages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of electrical digital data processing in software communication, and in particular to a method for implementing aggregated device components in SCA. Background Art

[0002] The Software Communication Architecture (SCA) provides specifications for the deployment, management, interconnection and intercommunication of software components in embedded distributed computing communication systems. The specification is intended to facilitate the development of software defined radios (SDRs) and improve the portability, reusability and scalability of software applications.

[0003] SCA standardizes the interfaces and definitions of different components. The domain manager component is used to control and configure the system domain; the device manager component is responsible for managing and deploying platform components, and is responsible for registering itself and the managed platform components to the domain manager component, and also needs to unregister itself and the managed platform components from the domain manager component; the platform component is composed of different types of device components and service components.

[0004] In the SCA standard, the device components in the platform components are divided into several types: ordinary device component type, loadable device component type, executable device component type, and aggregate device component type. The first three types of device components provide basic general functions such as adding, unloading, executing, and terminating device components, and SCA provides implementation and support for them. The last type of aggregate device component mainly provides an implementation method for supporting and managing the association relationship between components, but SCA has not yet implemented support for it. Summary of the invention

[0005] The present invention provides a method for realizing an aggregate device component in SCA, so as to realize the support and management of the aggregate device component type and the association relationship between components that the aggregate device component should provide.

[0006] The method for implementing the aggregation device component in SCA of the present invention comprises the steps of:

[0007] A. The common device components, loadable device components and / or executable device components contained in the device components of the SCA platform components inherit and implement the AggregateDevice interface of SCA, so that the corresponding common device components, loadable device components and / or executable device components are transformed into aggregate device components;

[0008] B. The device manager converts the compositePartOfDevice attribute in the configuration file into a string and saves it into a key-value pair variable. The key-value pair variable is passed as a parameter when the device component of the platform component is started. The aggregate device component associated with each device component is determined based on the key-value pair variable. If the device component has no associated aggregate device component, the value of the corresponding key-value pair variable is empty.

[0009] C. During the process of the device manager deploying the device component, it is determined whether the device component is associated with the aggregate device component according to the key-value pair variable corresponding to the device component. If there is an association, it is first detected whether the associated aggregate device component has completed the deployment operation. If not, it waits until the associated aggregate device component is successfully deployed before performing the deployment operation of the device component.

[0010] D. During the process of destroying device components, the device manager first obtains the association relationship of all device components deployed by the device manager. If the aggregate device component is currently being destroyed, the association between other device components and the aggregate device component must be released first, and then the association relationship between the aggregate device component and other aggregate device components is removed. After completion, the aggregate device component is destroyed.

[0011] Furthermore, in step A, for each device component that inherits the AggregateDevice (aggregate device component) interface, the addDevice (add associated component) method, the removeDevice (remove associated component) method and the devices (component) attribute are implemented; among which, the devices (component) attribute is used to save the object references of all other device components whose association targets are the aggregate device component itself, the addDevice (add associated component) method provides for the creation of associations, and the removeDevice (remove associated components) method provides for the removal of associations.

[0012] Furthermore, in step C, the process of the device manager deploying the device component includes the following steps:

[0013] C1. Determine whether the device component is associated with the aggregated device component based on the key-value pair variable corresponding to the device component. If not, directly deploy the device component;

[0014] C2. If the device component is associated with an aggregate device component, first check whether the associated aggregate device component has completed the deployment operation. If not, wait until the associated aggregate device component is successfully deployed before continuing to execute;

[0015] C3. Set the value of the key-value pair variable corresponding to the device component, and the key-value pair variable is used as an input parameter when the device component is started;

[0016] C4. Deploy the device component, obtain the value of the key-value pair variable corresponding to the device component, and when the value corresponds to an associated aggregate device component, obtain the reference of the associated aggregate device component, and then create an association relationship through the addDevice (add associated component) method to associate the aggregate device component corresponding to the reference with the device component.

[0017] Furthermore, in step D, when the device manager destroys the device component, if the aggregate device component is currently being destroyed, the steps include:

[0018] D1. Obtain the association relationship of all device components deployed by the device manager;

[0019] D2. Get other device components associated with the aggregate device component through the devices (component) attribute;

[0020] D3. Call the releaseObject (release object) method of other associated device components in turn to release the association between other device components and the aggregate device component;

[0021] D4. Determine whether the aggregate device component is associated with other aggregate device components. If so, call its own removeDevice (remove associated component) method to remove the association relationship with other aggregate device components;

[0022] D5. The device manager destroys the aggregate device component.

[0023] Furthermore, when accessing the devices (component) attribute, the devices (component) attribute is first locked by a mutex lock, and then the devices (component) attribute is accessed and the attribute value is returned, and finally the devices (component) attribute is released by the mutex lock.

[0024] Furthermore, the steps of the addDevice (add associated component) method include:

[0025] add1. Search the devices (component) attribute by ID to see if there is an element that is the same as the device component to be associated;

[0026] add2. If the same element exists, then end; if the same element does not exist, then insert the relevant parameters of the device component to be associated into the devices (component) attribute for storage.

[0027] Furthermore, the steps of the removeDevice (remove associated components) method include:

[0028] rev1. Search the devices (component) attribute by ID to see if there is an element that is the same as the aggregate device component to be removed;

[0029] rev2. If there is no identical element, then end; if there is an identical element, then remove the element from the devices (component) attribute.

[0030] The beneficial effects of the present invention include:

[0031] 1. In the SCA core framework, the implementation method of aggregate device functions is provided.

[0032] 2. Be able to reasonably and correctly handle aggregate devices and the relationships they manage in the device manager.

[0033] 3. Provides an interface for convenient access to aggregated devices, and accesses all associated device components through the devices sequence of the aggregated device.

[0034] 4. Provides interfaces and parameters for adding device component association relationships to aggregate device components.

[0035] 5. Provides process control for adding and releasing aggregate device components and their associated device components. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 The present invention is a flowchart of a method for implementing an aggregate device component in SCA. DETAILED DESCRIPTION

[0037] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0038] like Figure 1 As shown, the method for implementing the aggregation device component in SCA of the present invention comprises the steps of:

[0039] A. Make the common device components, loadable device components and / or executable device components included in the device components of the SCA platform component inherit and implement the AggregateDevice interface of SCA, so that the corresponding common device components, loadable device components and / or executable device components are transformed into aggregate device components. After being transformed into an aggregate device component, it can be used as the target of the association relationship of other device components, and other device component types can create an association relationship with the aggregate device component. In the case of multiple platform components being deployed, one possible association relationship is the mutual association between the aggregate device components of multiple platform components.

[0040] Each device component that inherits the AggregateDevice interface implements the addDevice method, the removeDevice method, and the devices property.

[0041] Among them, the devices (component) attribute is used to save the object references of other device components whose association targets are the aggregate device component itself. In the device component, create a global variable devices_ to save the value of the devices (component) attribute. When accessing the devices (component) attribute, first lock the devices (component) attribute through a mutex lock, then access the devices (component) attribute and return the attribute value through the global variable devices_, and finally release the mutex lock of the devices (component) attribute.

[0042] The addDevice (add associated component) method provides for the creation of an associated relationship, and the removeDevice (remove associated component) method provides for the removal of an associated relationship.

[0043] B. The device manager converts the compositePartOfDevice property in the configuration file into a string and saves it to the key-value pair variable with ID COMPOSITE_DEVICE_IOR. The key-value pair variable is passed in as a parameter when the device component of the platform component is started. The aggregate device component associated with each device component is determined based on the key-value pair variable. If the device component has no associated aggregate device component, the value of the corresponding key-value pair variable is empty.

[0044] C. During the process of the device manager deploying the device component, the key-value pair variable corresponding to the device component is used to determine whether the device component is associated with the aggregate device component. If so, first check whether the associated aggregate device component has completed the deployment operation. If not, wait until the associated aggregate device component is successfully deployed before deploying the device component. The specific steps include:

[0045] C1. Determine whether the device component is associated with the aggregated device component based on the key-value pair variable corresponding to the device component. If there is no association, directly deploy the device component.

[0046] C2. If the device component is associated with an aggregate device component, first check whether the associated aggregate device component has completed the deployment operation. If not, wait until the associated aggregate device component is successfully deployed before continuing to execute.

[0047] C3. Set the value of the key-value pair variable corresponding to the device component, and the key-value pair variable is used as an input parameter when the device component is started.

[0048] C4. Deploy the device component, obtain the value of the key-value pair variable corresponding to the device component, and when the value corresponds to an associated aggregate device component, obtain the reference of the associated aggregate device component, and then create an association relationship through the addDevice (add associated component) method to associate the aggregate device component corresponding to the reference with the device component.

[0049] The steps of the addDevice (add associated component) method include:

[0050] add1. In the devices (component) attribute, search by ID to see if there is an element that is the same as the device component to be associated.

[0051] add2. If the same element exists, then end. If the same element does not exist, then insert the relevant parameters of the device component to be associated into the devices (component) attribute for storage.

[0052] D. When the device manager destroys a device component, it first obtains the association relationship of all device components deployed by the device manager. If the aggregate device component is currently being destroyed, it first removes the association between other device components and the aggregate device component, and then removes the association relationship between the aggregate device component and other aggregate device components. After completion, the aggregate device component is destroyed. The specific steps include:

[0053] D1. Obtain the association relationship of all device components deployed by the device manager.

[0054] D2. Obtain other device components associated with the aggregate device component through the devices (component) attribute.

[0055] D3. Call the releaseObject (release object) method of other associated device components in sequence to release the association between other device components and the aggregate device component.

[0056] D4. Determine whether the aggregate device component is associated with other aggregate device components. If so, call its own removeDevice (remove associated component) method to remove the association relationship with other aggregate device components.

[0057] D5. The device manager destroys the aggregate device component.

[0058] The steps of the removeDevice (remove associated components) method include:

[0059] rev1. In the devices (component) attribute, search by ID to see if there is an element that is the same as the aggregate device component to be removed.

[0060] rev2. If there is no identical element, then end. If there is an identical element, then remove the element from the devices (component) property.

[0061] Through the above method, the realization of the function of providing aggregate device components in the SCA core framework, as well as the way of adding and removing aggregate device components and the association relationships they manage are realized.

[0062] The above embodiments only express the specific implementation methods of the present application, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the present application. For ordinary technicians in this field, several modifications and improvements made without departing from the concept of the present application all belong to the protection scope of the present application.

Claims

1. Methods for implementing aggregated device components in SCA, Its characteristics are: including the steps of: A. The common device components, loadable device components and / or executable device components included in the device components of the SCA platform component inherit and implement the AggregateDevice interface of SCA, so that the corresponding common device components, loadable device components and / or executable device components are transformed into aggregate device components; For each device component that inherits the AggregateDevice interface, the addDevice method, removeDevice method and devices property are implemented; among them, The devices attribute is used to store object references of all other device components whose association targets are the aggregate device component itself. The addDevice method provides the creation of associations, and the removeDevice method provides the removal of associations. When accessing the devices attribute, first lock the devices attribute with a mutex lock, then access the devices attribute and return the attribute value, and finally release the mutex lock on the devices attribute; B. The device manager converts the compositePartOfDevice attribute in the configuration file into a string and saves it into a key-value pair variable. The key-value pair variable is passed as a parameter when the device component of the platform component is started. The aggregate device component associated with each device component is determined according to the key-value pair variable. If the device component has no associated aggregate device component, the value of the corresponding key-value pair variable is empty. C. During the process of the device manager deploying the device component, it is determined whether the device component is associated with the aggregate device component according to the key-value pair variable corresponding to the device component. If there is an association, it is first detected whether the associated aggregate device component has completed the deployment operation. If not, it waits until the associated aggregate device component is successfully deployed before performing the deployment operation of the device component. Includes steps: C1. Determine whether the device component is associated with the aggregated device component based on the key-value pair variable corresponding to the device component. If not, directly deploy the device component; C2. If the device component is associated with an aggregate device component, first check whether the associated aggregate device component has completed the deployment operation. If not, wait until the associated aggregate device component is successfully deployed before continuing to execute; C3. Set the value of the key-value pair variable corresponding to the device component, and the key-value pair variable is used as an input parameter when the device component is started; C4. Deploy the device component, obtain the value of the key-value pair variable corresponding to the device component, and when the value corresponds to an associated aggregate device component, obtain a reference to the associated aggregate device component, and then create an association relationship through the addDevice method, and associate the aggregate device component corresponding to the reference to the device component; D. During the process of destroying device components, the device manager first obtains the association relationship of all device components deployed by the device manager. If the aggregate device component is currently being destroyed, the association between other device components and the aggregate device component must be released first, and then the association relationship between the aggregate device component and other aggregate device components is removed. After completion, the aggregate device component is destroyed.

2. The method for implementing aggregate device components in SCA as claimed in claim 1, characterized in that: In step D, when the device manager destroys the device component, if the aggregate device component is currently being destroyed, the steps include: D1. Obtain the association relationship of all device components deployed by the device manager; D2. Get other device components associated with the aggregate device component through the devices attribute; D3. Call the releaseObject method of other associated device components in turn to release the association between other device components and the aggregated device component; D4. Determine whether the aggregate device component is associated with other aggregate device components. If so, call its own removeDevice method to remove the association with other aggregate device components; D5. The device manager destroys the aggregate device component.

3. The method for implementing aggregate device components in SCA as claimed in claim 1, characterized in that: The steps of the addDevice method include: add1. Search the devices attribute by ID to see whether there is an element that is the same as the device component to be associated; add2. If the same element exists, the process ends; if the same element does not exist, the relevant parameters of the device components to be associated are inserted into the devices attribute for storage.

4. The method for implementing aggregate device components in SCA as claimed in claim 1, characterized in that: The steps of the removeDevice method include: rev1. Search the devices attribute by ID to see if there is an element that is the same as the aggregate device component to be removed; rev2. If there is no identical element, then end; if there is an identical element, then remove the element from the devices attribute.

Citation Information

Patent Citations

  • SCA core framework based device management method

    CN108737190A

  • Waveform resource distribution method for multi-core processor

    CN111400034A

  • SCA assembly based on CORBA assembly and server

    CN111596898A

  • Static deployment method for software communication architecture

    CN116541024A

  • Optimized SCA CORBA descriptor for SCA CORBA descriptor files

    US20130139146A1