A quality of service configuration and code generation method, apparatus, device, and medium
Patent Information
- Application Number
- CN202310306818.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2026-09-15
- Estimated Expiration
- 2043-03-27
AI Technical Summary
[0003]现有技术通过接收服务质量配置策略,获得RAN侧发送的网络能力报告,从网络能力报告中提取网络能力信息确定服务质量参数,基于服务质量参数对服务质量配置策略进行更新,生成新的服务质量配置策略,根据网络能力会对服务质量策略进行调整并生成,但并未说明接收的服务质量配置策略是如何生成的,且如果没有预先配置服务质量策略的情况下,没有相应处理
[0019] The beneficial effects of the present invention are as follows: The service quality configuration and code generation method provided by the present invention provides a complete process from the customization and configuration of service quality parameters to the final generation of vehicle-side communication code. It can customize the content information of service quality parameters, configure different service quality parameters for services according to different business scenarios, and automatically generate service quality configuration code when downloading the application code of the corresponding service.
Smart Images

Figure CN116346596B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the automotive field and the SOA service technology field, specifically to a service quality configuration and code generation method, apparatus, equipment, and medium. Background Technology
[0002] With the trends of intelligent, connected, and shared vehicles, end-user expectations for vehicle functions are subtly changing. While achieving high-level autonomous driving / assisted driving functions, vehicles are also increasingly focusing on enhancing user experience, such as meeting rapid function updates and upgrades, and providing personalized, user-friendly, and differentiated functions and services. Service-Oriented Architecture (SOA) is providing a good solution for future vehicle software services. Unlike the signal-oriented architecture of traditional automotive electronic and electrical architectures, SOA, through standardized service interfaces, loosely coupled service mechanisms, and composable and extensible service characteristics, combined with the future centralized electronic and electrical architecture centered on high-performance computing platforms—domain controllers—will become the technological foundation for "software-driven innovation" in the automotive field.
[0003] The existing technology receives a service quality configuration policy, obtains a network capability report sent by the RAN side, extracts network capability information from the network capability report to determine service quality parameters, updates the service quality configuration policy based on the service quality parameters, generates a new service quality configuration policy, and adjusts and generates the service quality policy according to the network capabilities. However, it does not explain how the received service quality configuration policy is generated, and there is no corresponding processing if a service quality policy is not pre-configured. Summary of the Invention
[0004] In view of the shortcomings of the prior art described above, the present invention provides a service quality configuration and code generation method, device and medium. The present invention illustrates the formation process of service quality configuration strategy, and forms service quality strategy by first customizing service quality parameters, thereby solving the problem of not pre-configuring service quality strategy.
[0005] To achieve the above and other related objectives, the present invention provides a service quality configuration and code generation method, comprising the following steps: creating service quality parameters and categories; configuring the service quality parameters and categories on the topic of the service to be configured; adding the service to be configured with the configured service quality parameters and categories to the created or selected application and deploying it; downloading the code of the deployed application and automatically generating the vehicle-side communication code corresponding to the service quality.
[0006] In an optional embodiment of the present invention, the steps of creating service quality parameters and classifications include: creating the service quality parameters; and creating the service quality classifications based on the service quality parameters.
[0007] In an optional embodiment of the present invention, the method further includes the following step before receiving the relocation function mechanism trigger signal:
[0008] Before configuring the service quality parameters and classification on the topic of the service to be configured, the following steps are included: checking whether the topic is configured for the service to be configured.
[0009] In an optional embodiment of the present invention, the step of configuring the quality of service parameters and classification on the topic of the service to be configured includes: selecting the quality of service classification on the topic; selecting the action entity of the quality of service classification and the parameter value of the quality of service classification to complete the configuration of the service to be configured.
[0010] In an optional embodiment of the present invention, the step of adding the service to be configured, which is configured with the service quality parameters and classification, to the created or selected application and deploying it includes:
[0011] Add the service to be configured, which is configured with the service quality parameters and categories, to the application being created or selected; deploy the application to a specific vehicle model series through the development and deployment module.
[0012] In an optional embodiment of the present invention, the step of deploying the application to a specific vehicle model series through the development and deployment module includes: selecting a specific vehicle model series, creating or selecting a pre-deployment; and deploying the application to the corresponding deployment category of the hardware in the pre-deployment to deploy it to the selected specific vehicle model series.
[0013] In an optional embodiment of the present invention, the service quality parameters include: parameter name, parameter description, parameter type, default parameter value, and parameter unit.
[0014] In an optional embodiment of the present invention, the service quality classification includes: service quality name, service quality description, usage scenario description, active entity, and service quality parameters.
[0015] To achieve the above and other related objectives, the present invention also provides an electronic device, the electronic device comprising:
[0016] One or more processors;
[0017] A storage device for storing one or more programs that, when executed by one or more processors, enable the electronic device to implement the quality of service configuration and code generation method.
[0018] To achieve the above and other related objectives, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer's processor, causes the computer to perform the aforementioned quality of service configuration and code generation method.
[0019] The beneficial effects of the present invention are as follows: The service quality configuration and code generation method provided by the present invention provides a complete process from the customization and configuration of service quality parameters to the final generation of vehicle-side communication code. It can customize the content information of service quality parameters, configure different service quality parameters for services according to different business scenarios, and automatically generate service quality configuration code when downloading the application code of the corresponding service.
[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description
[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention. It is obvious that the drawings described below are merely some embodiments of the invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0022] Figure 1 This is a schematic diagram illustrating an application scenario of the service quality configuration and code generation method provided in an embodiment of the present invention;
[0023] Figure 2 This is a flowchart of the service quality configuration and code generation method provided in the embodiments of the present invention;
[0024] Figure 3 This is a flowchart illustrating the creation of service quality parameters and classifications provided in an embodiment of the present invention;
[0025] Figure 4 This is a flowchart provided by an embodiment of the present invention for configuring the quality of service parameters and classifications on a topic to be configured;
[0026] Figure 5 This is a flowchart illustrating the creation or addition of an application and its deployment, provided by an embodiment of the present invention.
[0027] Figure 6 This is a flowchart illustrating the specific service deployment provided in the embodiments of the present invention;
[0028] Figure 7 This is a functional block diagram of the service quality configuration and code generation device provided in the embodiments of the present invention;
[0029] Figure 8 This is a structural block diagram of the electronic device provided in an embodiment of the present invention. Detailed Implementation
[0030] The embodiments of the present invention will be described below 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 content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed 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 and not for limiting the scope of protection of the present invention.
[0031] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0032] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the invention. However, it will be apparent to those skilled in the art that embodiments of the invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the invention.
[0033] Service-Oriented Architecture (SOA) defines a method for reusing software components through service interfaces. These interfaces use common communication standards that can be quickly integrated into new applications without requiring deep integration each time. Implementing SOA requires service communication middleware. Currently, Distributed Real-Time Communication Middleware (DDS) is widely used as a vehicle-side communication method. DDS, or Data Distribution Service, is a next-generation distributed real-time communication middleware released by the Object Management Group (OMG), employing a publish / subscribe architecture and emphasizing data-centricity. Quality of Service (QoS) is a network transmission policy where applications specify the desired network transmission quality behavior. QoS services implement these requirements, striving to meet customer communication quality demands. DDS defines QoS policies that greatly enhance its adaptability and robustness to complex network environments, optimizing network transmission quality.
[0034] QoS (Quality of Service) is a concept and mechanism inherited from CORBA middleware. Its main function is to fulfill the "additional functionalities and performance requirements" of different business applications for the middleware through additional mechanisms. QoS is applied to the middleware by setting the `qos_policy`. Since DDS middleware can be configured based on different levels of entities such as Topic, DataWriter, DataReader, Publisher, Subscriber, and DomainParticipant, various QoS settings are applied at different levels to achieve their effects.
[0035] In other application scenarios, the information transmission of data is configured according to the actual situation, and the embodiments of the present invention do not impose any limitations on this.
[0036] Figure 1 This is a schematic diagram illustrating an application scenario of the service quality configuration and code generation method provided in an embodiment of the present invention. First, service quality parameters are created and added in the system. Then, service quality categories are created and added based on these parameters. When specifying the entity responsible for a service quality category, the selection is based on actual business needs. The service quality parameters are selected from previously created ones for association. After the service parameters and service quality are created, the service quality is configured on the service to be configured. The service with the configured service quality is then added to the application in the application management module. After addition, the application is deployed through the development and deployment module. Once the application is deployed, the application code in the service with the configured service quality is downloaded. At this point, the vehicle-side communication code corresponding to the service quality is automatically generated.
[0037] The electronic device can be any electronic product that can interact with the user, such as a personal computer, tablet computer, smartphone, personal digital assistant (PDA), interactive network television (IPTV), smart wearable device, etc.
[0038] The electronic device may also include network devices and / or user devices. The network devices include, but are not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of hosts or network servers.
[0039] The networks in which the electronic devices are located include, but are not limited to, the Internet, wide area networks, metropolitan area networks, local area networks, and virtual private networks (VPNs).
[0040] Figure 2 This is a flowchart illustrating a service quality configuration and code generation method provided in an embodiment of the present invention. It should be noted that this invention is based on SOA for service configuration and code generation, providing users with a user-friendly interface for service quality configuration and downloading vehicle-side code. The vehicle-side code is selectively deployed and configured for different vehicle models and series. The implementation of this service quality configuration and code generation method mainly involves four modules: a service quality management module, a service management module, an application management module, and a development and deployment module. This method can be applied to... Figure 1 The implementation environment shown is intended to illustrate a method that can also be applied to other instance implementation environments and executed by devices in those environments. This embodiment does not limit the implementation environment to which the method is applicable.
[0041] like Figure 2 As shown, the service quality configuration and code generation method in this embodiment includes at least:
[0042] Step S21: Create service quality parameters and categories. It should be noted that the service quality configuration is a basic configuration. When customizing the configuration, users have the ability to edit, delete, configure, and publish the service quality parameters and categories according to actual needs.
[0043] Specifically, such as Figure 3 As shown, it includes at least:
[0044] Step S31: Create the service quality parameters. It should be noted that in the service quality management module, service quality parameters are first created by customization. These service quality parameters include information such as parameter name, parameter description, parameter type, default parameter value, and parameter unit.
[0045] Step S32: Create the service quality category based on the service quality parameters. It should be noted that after creating the service quality parameters, a service quality category is created based on the completed service quality parameter creation. The service quality category includes a service quality name, service quality description, usage scenario description, active entity, and service quality parameters.
[0046] Furthermore, when specifying the entity responsible for a service quality category, multiple selections of information within the service quality category can be made based on actual business needs. For service quality parameters, previously created parameters can be selected for association.
[0047] Step S22: Configure the quality of service parameters and categories on the topic of the service to be configured.
[0048] Specifically, such as Figure 4 As shown, it includes at least:
[0049] Step S41: Select the Quality of Service (QoS) category on the topic. It should be noted that before selecting the QoS category, it is necessary to determine whether the topic is configured on the service to be configured, and the topic is used to implement communication. Further, after ensuring that the topic is configured on the service to be configured, select the QoS category that has already been configured on the system on the topic.
[0050] Step S42: Select the entity responsible for the service quality category and the parameter value for the service quality category to complete the configuration of the service to be configured. It should be noted that the selected parameter value for the service quality category corresponds to the entity responsible for the selected service quality category. After the above operations are completed, the service quality, including the service parameters and the service quality category, is configured onto the service to be configured.
[0051] Step S23: Add the service to be configured, which is configured with the service quality parameters and categories, to the created or selected application, and deploy it. It should be noted that applications with configured service quality can also be added to the application through the application management module, based on actual needs, allowing users to define, edit, configure, and publish applications.
[0052] Specifically, such as Figure 5 As shown, it includes at least:
[0053] Step S51: Add the service to be configured, which is configured with the service quality parameters and category, to the created or selected application. It should be noted that before adding the application, select the specific vehicle model / series, and then create or select a pre-deployment.
[0054] In one specific embodiment, before adding to the application, it is first determined whether the application management module already has an application to be used. If an application to be used exists, the service to be configured with the service quality parameters and categories is added to the application to be used. If no application to be used exists, the application is created first, and then the service to be configured with the service quality parameters and categories is added to the newly created application.
[0055] Step S52: Deploy the application to a specific vehicle model series using the development and deployment module. It should be noted that before deploying the application, it is necessary to determine whether there is a pre-deployment to be used in the development and deployment module. If a pre-deployment exists, the application is directly deployed to the hardware's deployment category within the pre-deployment, that is, the application is deployed to the selected specific vehicle model series. If no pre-deployment exists, a pre-deployment is first created under the specified vehicle model series, and the application is deployed to the hardware's deployment category within the newly created pre-deployment. At this point, the application has been deployed to the specified vehicle model series.
[0056] Step S24: Download the code of the deployed application and automatically generate the vehicle-side communication code corresponding to the quality of service. It should be noted that in the vehicle-side communication code section, the quality of service configuration will generate corresponding files: qos.cpp, qos.h, qos_gen.cpp, and qos_gen.h.
[0057] In one specific embodiment, the qos.cpp, qos.h, and qos_gen.h files have fixed content, while the generation of the qos_gen.cpp file depends on the service quality information configured in the application, including service quality classification information, service quality parameter information, and corresponding topic information.
[0058] Furthermore, the `qos.h` file defines the service quality entities, the `qos_params` structure type, and the method declarations for creating service qualities with different impacts. The `qos.cpp` file implements the methods for creating service qualities with different impacts (`create_qos`). The `qos_gen.h` file declares the method for obtaining service quality parameters (`get_qos_param`). `qos_gen.cpp` corresponds to the specific implementation, containing methods for creating service qualities with different impacts and methods for obtaining service quality parameters. The relationship between these four files is as follows: before creating the service quality corresponding to the impact entity, the method for obtaining service quality parameters is called using the topic name to retrieve service quality parameter information. Then, this information, along with entity variables, is used as parameters to call the method for creating service qualities with different entities to create the service quality. Thus, the created service quality can be applied to the entity and used. Service quality and topic information are mainly reflected in the `set_qos_params` function, and some core code examples are shown below:
[0059] void set_qos_params(){
[0060] qos_params qpsTestQosRpcRequest;
[0061] memset(&qpsTestQosRpcRequest,0,sizeof(qos_params));
[0062] qpsTestQosRpcRequest.durability_qec=QE_WRITER|QE_READER|QE_TOPIC;
[0063] qpsTestQosRpcRequest.durability.kind=DDS_DURABILITY_VOLATILE;
[0064] qpsTestQosRpcRequest.durability_service_qec=QE_WRITER|QE_TOPIC;
[0065] qpsTestQosRpcRequest.durability_service.service_cleanup_delay=0;
[0066] qpsTestQosRpcRequest.durability_service.history.kind=DDS_HISTORY_KEEP_ALL;
[0067] qpsTestQosRpcRequest.durability_service.history.depth=1;
[0068] qpsTestQosRpcRequest.durability_service.resource_limits.max_samples=300;
[0069] qpsTestQosRpcRequest.durability_service.resource_limits.max_instances=10;
[0070] qpsTestQosRpcRequest.durability_service.resource_limits.max_samples_per_instanc e=300;
[0071] qpsTestQosRpcRequest.groupdata_qec=QE_PUBLISHER|QE_SUBSCRIBER;
[0072] qpsTestQosRpcRequest.groupdata.value=NULL;
[0073] qpsTestQosRpcRequest.groupdata.length=0;
[0074] qpsTestQosRpcRequest.history_qec=QE_WRITER|QE_READER|QE_TOPIC;
[0075] qpsTestQosRpcRequest.history.kind=DDS_HISTORY_KEEP_ALL;
[0076] qpsTestQosRpcRequest.history.depth=1;
[0077] qpsTestQosRpcRequest.lifespan_qec=QE_WRITER|QE_TOPIC;
[0078] qpsTestQosRpcRequest.lifespan.duration=DDS_INFINITY;
[0079] qpsTestQosRpcRequest.liveliness_qec=QE_WRITER|QE_READER;
[0080] qpsTestQosRpcRequest.liveliness.kind=DDS_LIVELINESS_AUTOMATIC;
[0081] qpsTestQosRpcRequest.liveliness.lease_duration=DDS_SECS(1);
[0082] qpsTestQosRpcRequest.reliability_qec=QE_WRITER|QE_READER;
[0083] qpsTestQosRpcRequest.reliability.kind=DDS_RELIABILITY_RELIABLE;
[0084] qpsTestQosRpcRequest.reliability.max_blocking_time=DDS_SECS(10);
[0085] qpsTestQosRpcRequest.resource_limits_qec=QE_WRITER|QE_READER;
[0086] qpsTestQosRpcRequest.resource_limits.max_samples=300;
[0087] qpsTestQosRpcRequest.resource_limits.max_instances=10;
[0088] qpsTestQosRpcRequest.resource_limits.max_samples_per_instance=300;
[0089] qpsTestQosRpcRequest.topicdata_qec=QE_TOPIC;
[0090] qpsTestQosRpcRequest.topicdata.value=NULL;
[0091] qpsTestQosRpcRequest.topicdata.length=0;
[0092] qpsTestQosRpcRequest.userdata_qec=QE_PARTICIPANT|QE_WRITER|QE_READER;
[0093] qpsTestQosRpcRequest.userdata.value=NULL;
[0094] qpsTestQosRpcRequest.userdata.length=0;
[0095] g_qps["TestQosRpcRequest"]=qpsTestQosRpcRequest;
[0096] }
[0097] In one specific embodiment, the variable name of the qos_params type variable consists of the quality of service plus the topic name, such as qpsTestQosRpcRequest. The entity responsible for the quality of service is represented by the quality of service name plus the quality of service category plus an underscore 'qec', for example, qpsTestQosRpcRequest.durability_qec = QE_WRITER|QE_READER|QE_TOPIC. The QoS information is generated in the form of qos_params variable name.quality of service category name.parameter = parameter value. After the quality of service information is generated, sdds_util.cpp, used for communication in the vehicle-side code, will read the QoS configuration information. A partial example of the core code is shown below:
[0098] qos_params*qps=get_qos_params(topic_name);
[0099] if(!qps){
[0100] dds_qos_t*qos=dds_create_qos();
[0101] dds_qset_reliability(qos,DDS_RELIABILITY_RELIABLE,DDS_SECS(10));
[0102] reader=dds_create_reader(subscriber,topic,qos,listener);
[0103] dds_delete_qos(qos);
[0104] }
[0105] else{
[0106] dds_qos_t*reader_qos=create_reader_qos(qps);
[0107] reader=dds_create_reader(subscriber,topic,reader_qos,listener);
[0108] delete_qos(reader_qos);
[0109] }
[0110] As can be seen from the above code, after the quality of service (QoS) information is generated, the file in the distributed real-time communication section of the vehicle-side communication code will read the QoS configuration information. When communicating via distributed real-time communication, the configured QoS policy will be read. If no QoS is configured, the communication code will default to "unreliable" mode. When QoS is configured, the "kind" field in the communication code will be configured to "reliable" mode. Furthermore, the maximum timeout for the "reliable" mode is 10 seconds.
[0111] Figure 6 This is a flowchart illustrating the service deployment provided by an embodiment of the present invention. The technical solution of the present invention will be described below with reference to a specific embodiment:
[0112] Once service deployment begins, the system first checks if an application exists in the application management module. If an application exists, the service to be configured, with the specified service quality parameters and category, is added to that application. If no application exists, the application is created first, and the service to be configured, with the specified service quality parameters and category, is added to the newly created application. Then, the system checks if a pre-deployment exists in the development and deployment module. If a pre-deployment exists, the application is directly deployed to the corresponding deployment category of the hardware within that pre-deployment, i.e., to the selected specific vehicle model / series. If no pre-deployment exists, the pre-deployment is created under that vehicle model / series, and the application is deployed to the corresponding deployment category of the hardware within the newly created pre-deployment. Once these operations are completed, the service deployment is finished.
[0113] In summary, the service quality configuration and code generation method provided by this invention can complete the entire process from customizing and configuring service quality parameters to finally generating vehicle-side communication code. It can meet the service quality configuration and code generation requirements of most functional scenarios and also ensure the automatic generation of vehicle-side communication code.
[0114] Figure 7 This is a functional block diagram of a service quality configuration and code generation device provided in an embodiment of the present invention. The service quality configuration and code generation device provided by the present invention includes a creation module 71, a configuration module 72, a deployment module 73, and a generation module 74. The creation module 71 is for creating service quality parameters and classifications; the configuration module 72 is for configuring the service quality parameters and classifications on the topic of the service to be configured, and obtaining the landmark detection results; the deployment module 73 is for adding the service to be configured with the configured service quality parameters and classifications to the created or selected application and deploying it; the generation module 74 is for downloading the code of the deployed application and automatically generating the vehicle-side communication code corresponding to the service quality.
[0115] It should be noted that the embodiments provided above are as follows: Figure 7 The service quality configuration and code generation apparatus shown is based on the same concept as the service quality configuration and code generation method provided in the above embodiments. The specific methods by which each module and unit performs its operations have been described in detail in the method embodiments and will not be repeated here. In practical applications, the service quality configuration and code generation apparatus provided in the above embodiments can be configured to perform the above functions by different functional modules as needed, that is, the internal structure of the apparatus can be divided into different functional modules to complete all or part of the functions described above. This is not a limitation here.
[0116] Embodiments of the present invention also provide an electronic device, including: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device enables the quality of service configuration and code generation methods provided in the above embodiments.
[0117] Figure 8 A schematic diagram of a computer system suitable for implementing embodiments of the present invention is shown. It should be noted that... Figure 8 The computer system 800 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.
[0118] like Figure 8 As shown, the computer system 800 includes a Central Processing Unit (CPU) 801, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 802 or programs loaded from storage portion 806 into Random Access Memory (RAM) 803, such as performing the methods described in the above embodiments. The RAM 803 also stores various programs and data required for system operation. The CPU 801, ROM 802, and RAM 803 are interconnected via a bus 804. An Input / Output (I / O) interface 805 is also connected to the bus 804.
[0119] The following components are connected to I / O interface 805: an input section 806 including a keyboard, mouse, etc.; an output section 807 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 806 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to I / O interface 805 as needed. A removable medium 811, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 810 as needed so that computer programs read from it can be installed into storage section 806 as needed.
[0120] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 809, and / or installed from removable medium 811. When the computer program is executed by central processing unit (CPU) 801, it performs various functions defined in the system of the present invention.
[0121] It should be noted that the computer-readable medium shown in the embodiments of the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0122] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0123] The units described in the embodiments of the present invention can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0124] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer's processor, causes the computer to perform the aforementioned Quality of Service configuration and code generation method. This computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not assembled into the electronic device.
[0125] Another aspect of the present invention provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the quality of service configuration and code generation methods provided in the various embodiments described above.
[0126] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.
Claims
1. A method for configuring and generating quality of service (QoS) codes, characterized in that, include: Create service quality parameters and categories; The service quality parameters include: parameter name, parameter description, parameter type, default parameter value, and parameter unit; the service quality categories include: service quality name, service quality description, usage scenario description, active entity, and service quality parameters. Configure the service quality parameters and category on the topic of the service to be configured. Specifically, check if the topic is configured for the service to be configured. If so, select the service quality category on the topic. Select the entity that acts on the service quality category and the parameter value of the service quality category to complete the configuration of the service to be configured. Add the service to be configured, which is configured with the service quality parameters and categories, to the created or selected application; deploy the application to a specific vehicle model series through the development and deployment module; select the service quality category on the topic; select the entity to be configured for the service quality category and the parameter values of the service quality category to complete the configuration of the service to be configured; Download the code of the deployed application and automatically generate the vehicle-side communication code corresponding to the quality of service. The vehicle-side communication code includes a qos.h file for defining the action entities of the quality of service, a qos_params file for defining the structure types and methods for creating different action entities of the quality of service, a qos.cpp file for implementing the methods for creating different action entities of the quality of service, and a qos_gen.h file for declaring the methods for obtaining the quality of service parameters.
2. The service quality configuration and code generation method according to claim 1, characterized in that, The steps for creating service quality parameters and classifications include: Create the aforementioned quality of service parameters; The service quality classification is created based on the service quality parameters.
3. An apparatus for a service quality configuration and code generation method, characterized in that, include: Create a module to create service quality parameters and categories. The service quality parameters include: parameter name, parameter description, parameter type, default parameter value, and parameter unit. The service quality categories include: service quality name, service quality description, usage scenario description, active entity, and service quality parameter. The configuration module configures the service quality parameters and categories for the topic of the service to be configured. Specifically, it checks whether the topic is configured for the service to be configured. If so, it selects the service quality category for the topic. It then selects the entity to be applied to the service quality category and the parameter values for the service quality category to complete the configuration of the service to be configured. The deployment module adds the service to be configured, which is configured with the service quality parameters and categories, to the created or selected application; the development deployment module deploys the application to a specific vehicle model series; the service quality category is selected on the topic; the active entity of the service quality category and the parameter values of the service quality category are selected to complete the configuration of the service to be configured. The generation module downloads the code of the deployed application and automatically generates the vehicle-side communication code corresponding to the quality of service. The vehicle-side communication code includes a qos.h file for defining the action entities of the quality of service, a qos_params file for defining the structure types and methods for creating different action entities of the quality of service, a qos.cpp file for implementing the methods for creating different action entities of the quality of service, and a qos_gen.h file for declaring the methods for obtaining the quality of service parameters.
4. An electronic device, characterized in that, The electronic device includes: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the electronic device to implement the quality of service configuration and code generation method as described in any one of claims 1-2.
5. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by the computer's processor, causes the computer to perform the quality of service configuration and code generation method as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Vehicle end service communication configuration method, system and device and storage medium
CN115834375A