Equipment linkage control method and device and vehicle

CN119644861APending Publication Date: 2025-03-18ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411801309.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The prior art is difficult to meet the diversified linkage control needs of vehicle-mounted equipment through rule engines.

Method used

By receiving vehicle equipment data, the target control rules are determined from a plurality of predetermined control rules, and the execution unit corresponding to the target control rules is called for equipment linkage control.

Benefits of technology

It is realized that the control rules to be executed are determined based on the received equipment data, and the diverse action execution needs are met through the target execution unit, and the diversified linkage control needs of vehicle-mounted equipment are met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119644861A_ABST
    Figure CN119644861A_ABST
Patent Text Reader

Abstract

The invention provides an equipment linkage control method and device and a vehicle, and the method comprises the steps: determining a target control rule from a plurality of preset control rules based on the received equipment data of the vehicle, and calling a target execution unit in each execution unit corresponding to the target control rule based on the target control rule and the equipment data, the execution unit is used for carrying out data processing on the equipment data and / or executing an action corresponding to the target control rule, so that the control rule needing to be executed can be determined according to the received equipment data; and various action execution requirements can be met by calling the target execution unit in the execution process of each control rule, so that diversified linkage control requirements of the vehicle-mounted equipment can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automation control technology, and in particular to a method, device and vehicle for equipment linkage control. Background Art

[0002] With the continuous development of automotive intelligence, the number and types of on-board devices are becoming more and more abundant, and the complexity of the control logic of on-board devices is also gradually increasing. Therefore, it is particularly important to efficiently, scalably and reliably control the linkage of multiple devices.

[0003] At present, equipment linkage control is usually achieved through rule engines, etc., which is difficult to meet the diversified linkage control needs of vehicle-mounted equipment. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a device linkage control method, device and vehicle to solve the problem in the prior art that it is difficult to meet the diversified linkage control needs of vehicle-mounted equipment through the rule engine.

[0005] To achieve the above technical objectives, the present application provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present specification provides a device linkage control method, including:

[0007] determining a target control rule from a plurality of predetermined control rules based on the received device data of the vehicle;

[0008] Based on the target control rule and the equipment data, the target execution unit in each execution unit corresponding to the target control rule is called to perform equipment linkage control on the vehicle; the execution unit is used to process the equipment data and / or execute the action corresponding to the target control rule when called.

[0009] In one embodiment, determining the target control rule from a plurality of predetermined control rules based on the received vehicle equipment data includes:

[0010] Based on the matching result between the device data and the target device data corresponding to each of the predetermined control rules, the target control rule is determined from the plurality of predetermined control rules.

[0011] In one embodiment, the process of determining the target execution unit includes:

[0012] Based on the target control rule and the device data, determining a current processing step of the target control rule;

[0013] The execution unit corresponding to the current processing step is used as the target execution unit.

[0014] In one embodiment, the execution unit corresponding to the target control rule includes a result storage unit;

[0015] The calling of the target execution unit in each execution unit corresponding to the target control rule based on the target control rule and the device data includes:

[0016] When the execution unit corresponding to the current processing step is the result storage unit, the result storage unit is called and the rule determination result in the current processing step is input into the result storage unit; the result storage unit is used to store the rule determination result in the current processing step into a predetermined storage module.

[0017] In one embodiment, the execution unit corresponding to the target control rule includes an instruction issuing unit;

[0018] The calling of the target execution unit in each execution unit corresponding to the target control rule based on the target control rule and the device data includes:

[0019] When the execution unit corresponding to the current processing step is the instruction issuing unit, the instruction issuing unit is called, and the control instruction determined by the current processing step is input into the instruction issuing unit; the instruction issuing unit is used to publish the control instruction determined by the current processing step to the message server of the vehicle, and the message server is used to forward the control instruction to the vehicle-mounted device corresponding to the control instruction.

[0020] In one embodiment, after determining the target control rule from a plurality of predetermined control rules based on the received vehicle equipment data, the method further includes:

[0021] A different execution thread is allocated to each of the target control rules, and the execution thread is used to execute the corresponding target control rule.

[0022] In one embodiment, the attribute information of each of the predetermined control rules includes an execution order;

[0023] After determining the target control rule from a plurality of predetermined control rules based on the received vehicle equipment data, the method further includes:

[0024] If there are multiple target control rules, and the execution mechanism of the multiple target control rules is sequential execution, then the execution priority of each target control rule is determined based on the execution order corresponding to each target control rule;

[0025] Based on the execution priority of each of the target control rules, each of the target control rules is executed in sequence.

[0026] In one embodiment, the process of constructing the predetermined control rule includes:

[0027] When a rule update request is received, a rule file in the rule update request is obtained; the rule file includes a control rule and execution units corresponding to different processing steps in the control rule;

[0028] Based on the rule file, the predetermined control rule and the execution unit corresponding to the predetermined control rule are updated.

[0029] In a second aspect, the embodiments of the present specification provide a device linkage control device, including:

[0030] A first processing module, configured to determine a target control rule from a plurality of predetermined control rules based on received vehicle equipment data;

[0031] The second processing module is used to call the target execution unit in each execution unit corresponding to the target control rule based on the target control rule and the equipment data, so as to perform equipment linkage control on the vehicle; the execution unit is used to process the equipment data and / or execute the action corresponding to the target control rule when calling.

[0032] In a third aspect, an embodiment of the present specification provides a vehicle, including an on-board device and the device linkage control device as described above.

[0033] In a fourth aspect, an embodiment of the present specification provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the device linkage control method as described in any one of the above items is implemented.

[0034] In a fifth aspect, an embodiment of the present specification provides a computer program product or a computer program, wherein the computer program product includes a computer program, and the computer program is stored in a computer-readable storage medium; the processor of the computer device reads the computer program from the computer-readable storage medium, and when the processor executes the computer program, it implements the device linkage control method as described in any one of the above items.

[0035] It can be seen from the above technical scheme that the embodiments of the present application provide a device linkage control method, device and vehicle, wherein the method determines a target control rule from multiple predetermined control rules based on the received device data of the vehicle, and calls the target execution unit in each execution unit corresponding to the target control rule based on the target control rule and the device data to perform device linkage control on the vehicle, wherein the execution unit is used to process the device data and / or execute the action corresponding to the target control rule, thereby, the control rule to be executed can be determined according to the received device data, and each control rule can meet the diverse action execution requirements by calling the target execution unit during the execution process, thereby meeting the diversified linkage control requirements of the vehicle-mounted equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0037] Figure 1 A flowchart of a device linkage control method provided for an implementation of this specification.

[0038] Figure 2 A schematic diagram of the structure of a device linkage control device provided for an implementation mode of this specification.

[0039] Figure 3 A schematic diagram of the structure of a device linkage control system provided for the implementation mode of this specification. DETAILED DESCRIPTION

[0040] Unless otherwise defined, the technical terms or scientific terms used in the embodiments of this specification shall have the common meanings understood by persons with ordinary skills in the field to which this specification belongs. The words "first", "second" and similar words used in the embodiments of this specification do not indicate any order, quantity or importance, but are only used to avoid confusion of constituent elements.

[0041] Unless the context requires otherwise, throughout the specification, "plurality" means "at least two", and "including" is interpreted as an open, inclusive meaning, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "examples", "specific examples" or "some examples" are intended to indicate that a particular feature, structure, material or characteristic associated with the embodiment or example is included in at least one embodiment or example of the specification. The schematic representation of the above terms does not necessarily refer to the same embodiment or example.

[0042] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0043] Overview

[0044] As described in the background technology, with the continuous development of automobile intelligence, the number and types of vehicle-mounted devices are becoming more and more abundant, and the complexity of the control logic of vehicle-mounted devices is gradually increasing. Therefore, it is particularly important to efficiently, scalably and reliably control the linkage of multiple devices.

[0045] At present, the linkage control of equipment is usually achieved through rule engines, such as Node Rules, which are implemented in JavaScript, and Drools, which are implemented in Java. However, the existing rule engines usually control the equipment in sequence according to pre-set rules, which is difficult to meet the diversified linkage control requirements of vehicle-mounted equipment.

[0046] In order to solve the problem that traditional methods are difficult to meet the diversified linkage control needs of vehicle-mounted equipment through rule engines, in the technical solution of the present application, the equipment linkage control method determines the target control rule from multiple predetermined control rules based on the received vehicle equipment data, and calls the target execution unit in each execution unit corresponding to the target control rule based on the target control rule and the equipment data to perform equipment linkage control on the vehicle, wherein the execution unit is used to process the equipment data and / or execute the action corresponding to the target control rule, thereby, the control rule to be executed can be determined according to the received equipment data, and each control rule can meet the diverse action execution needs by calling the target execution unit during the execution process, thereby meeting the diversified linkage control needs of vehicle-mounted equipment.

[0047] Based on the above-mentioned inventive concept, the device linkage control method provided in the implementation manner of this specification is exemplarily described below.

[0048] Exemplary Methods

[0049] The embodiment of this specification provides a device linkage control method, such as Figure 1 As shown, including:

[0050] S101 . Determine a target control rule from a plurality of predetermined control rules based on received vehicle equipment data.

[0051] Specifically, the device linkage control method can be applied to the rule execution module of the vehicle. The device data of the vehicle can be the real-time status data and / or real-time operation data of the vehicle-mounted devices in the vehicle during the real-time operation of the vehicle. The device data of the vehicle can be forwarded to the rule execution module through the message server of the vehicle. For example, the message server can obtain the device data of the vehicle in real time by subscription, and send it to the rule execution module through MQTT (Message Queuing Telemetry Transport).

[0052] The predetermined control rule may be pre-set in the rule execution module, or updated in real time according to the received rule file, and may be set according to actual needs. The predetermined control rule may be used to characterize the linkage control rule of the vehicle-mounted device.

[0053] After receiving the device data of the vehicle, a target control rule may be determined from a plurality of predetermined control rules based on the device data. The target control rule may be a predetermined control rule among the plurality of predetermined control rules that needs to use the received device data during execution.

[0054] S102. Based on the target control rule and the device data, the target execution unit in each execution unit corresponding to the target control rule is called to perform device linkage control on the vehicle; the execution unit is used to process the device data and / or execute the action corresponding to the target control rule when called.

[0055] Specifically, the execution unit can be an API (Application Programming Interface), a component, etc. In implementation, in the process of constructing or configuring a predetermined control rule, the execution unit corresponding to the predetermined control rule can also be configured. Among them, the execution units corresponding to different predetermined control rules can be the same or different, that is, different predetermined control rules can call the same execution unit or different execution units during the execution process, which can be set according to actual needs. The execution unit can be used to process the currently received device data and / or execute the action corresponding to the target control rule when called. For example, the execution unit "messageCtx.get()" can be used to parse and process the device data, the execution unit "setVal()" can be used to store the rule judgment result in a predetermined storage module, the execution unit "log.info()" can be used to transmit the status judgment result of the vehicle-mounted device back to the cloud, and the execution unit "publish()" can be used to publish the control instruction to the vehicle's message server.

[0056] For any predetermined control rule, the predetermined control rule may include multiple processing steps, and execution units may be configured for some or all of the processing steps according to requirements to obtain execution units corresponding to the predetermined control rule.

[0057] Among them, an execution unit library can be configured in the rule execution module, and the execution unit library can be used to store various execution units. In implementation, various execution units in the execution unit library can be generated based on the data processing requirements of different control rules and / or the actions to be executed. For example, the data processing requirements may include data parsing and processing, and the actions to be executed may include data storage, instruction issuance, etc., so as to meet the diverse action execution requirements of various predetermined control rules.

[0058] In implementation, the target execution unit in each execution unit corresponding to the target control rule can be called based on the target control rule and the device data to realize the linkage control of the vehicle-mounted device. Among them, the target execution unit can include the execution unit corresponding to each processing step to be executed in the target control rule in the process of executing the target control rule based on the device data.

[0059] Therefore, by calling the target execution unit to perform various actions during the execution of the target control rules, the diversified linkage control requirements of the vehicle-mounted equipment can be effectively met.

[0060] In a feasible implementation manner, determining the target control rule from a plurality of predetermined control rules based on the received vehicle equipment data includes:

[0061] Based on the matching result between the device data and the target device data corresponding to each of the predetermined control rules, the target control rule is determined from the plurality of predetermined control rules.

[0062] Specifically, for any predetermined control rule, the target device data corresponding to the predetermined control rule is the device data required to be used during the execution of the predetermined control rule.

[0063] After receiving the device data of the vehicle, the device data can be matched with the target device data corresponding to each predetermined control rule, and the predetermined control rule corresponding to the successfully matched target device data can be used as the target control rule, so that the target control rule can be quickly and comprehensively determined from multiple predetermined control rules. Thus, different device linkage controls can be realized through a set of device data, so that the diversified linkage control of vehicle-mounted devices can be effectively met.

[0064] In implementation, the target device data can be configured in the attribute information of each predetermined control rule, so that the target control rule can be quickly and accurately determined after receiving the device data of the vehicle. In addition, a processing step for matching the device data can be configured in each predetermined control rule. The processing step for matching the device data can determine whether to continue to execute the predetermined control rule based on the matching result of the identification information corresponding to the device data and the identification information corresponding to the target device data. If so, the predetermined control rule is the target control rule, and if not, the predetermined control rule is not the target control rule. The identification information can include the identification information of the vehicle-mounted device, and can also include the identification information of the parameters of the vehicle-mounted device, etc. For example, after receiving the device data of the vehicle, the device data can be input into the execution thread of each predetermined control rule to determine the target control rule during the execution of each predetermined control rule.

[0065] In a feasible implementation manner, the process of determining the target execution unit includes:

[0066] Based on the target control rule and the device data, determining a current processing step of the target control rule;

[0067] The execution unit corresponding to the current processing step is used as the target execution unit.

[0068] Specifically, the current processing step of the target control rule is the processing step executed at the current moment during the execution of the target control rule.

[0069] In implementation, the current processing step of the target control rule can be determined based on the target control rule and the device data. For example, during the execution of the target control rule, the current processing step can be determined based on the matching result between the device data and the rule parameters in the target control rule.

[0070] After determining the current processing step, the execution unit corresponding to the current processing step can be used as the target execution unit, and the target execution unit can be called to process the device data or execute the action required to perform the current processing step. By calling the target execution unit, the diverse action execution requirements of the target control rules can be effectively met, thereby meeting the diversified linkage control requirements of vehicle-mounted equipment.

[0071] In a feasible implementation manner, the execution unit corresponding to the target control rule includes a result storage unit;

[0072] The calling of the target execution unit in each execution unit corresponding to the target control rule based on the target control rule and the device data includes:

[0073] When the execution unit corresponding to the current processing step is the result storage unit, the result storage unit is called and the rule determination result in the current processing step is input into the result storage unit; the result storage unit is used to store the rule determination result in the current processing step into a predetermined storage module.

[0074] Specifically, the execution unit corresponding to the target control rule may include a result storage unit, and the result storage unit may be used to store the rule determination result in the current processing step into a predetermined storage module during the calling process.

[0075] During implementation, during the execution of the target control rule, if the execution unit corresponding to the current processing step is a result storage unit, the result storage unit can be called from the execution unit library, and the rule judgment result in the current processing step of the target control rule can be input into the result storage unit, so that the rule judgment result in the current processing step can be stored in a predetermined storage module through the result storage unit. The predetermined storage module can be a result manager, so that in the subsequent processing steps of the target control rule and / or the execution of other predetermined control rules, the rule judgment result can be called in real time, thereby further meeting the diversified linkage control needs of vehicle-mounted equipment.

[0076] In a feasible implementation manner, the execution unit corresponding to the target control rule includes an instruction issuing unit;

[0077] The calling of the target execution unit in each execution unit corresponding to the target control rule based on the target control rule and the device data includes:

[0078] When the execution unit corresponding to the current processing step is the instruction issuing unit, the instruction issuing unit is called, and the control instruction determined by the current processing step is input into the instruction issuing unit; the instruction issuing unit is used to publish the control instruction determined by the current processing step to the message server of the vehicle, and the message server is used to forward the control instruction to the vehicle-mounted device corresponding to the control instruction.

[0079] Specifically, the execution unit corresponding to the target control rule may include an instruction publishing unit, which can be used to publish the control instruction determined by the current processing step to the vehicle's message server during the calling process. The vehicle's message server can be used to forward data between the vehicle's onboard device and the rule execution module. For example, the onboard device can interact with the message server through a gateway device, and the forwarded data may include control instructions and device data. For example, the onboard device can obtain the control instruction corresponding to the onboard device from the message server in real time by subscription. When the message server receives the control instruction, it can send the control instruction to the corresponding onboard device by MQTT.

[0080] During implementation, during the execution of the target control rule, if the execution unit corresponding to the current processing step is an instruction issuing unit, the instruction issuing unit can be called from the execution unit library, and the control instruction determined in the current processing step of the target control rule can be input into the instruction issuing unit, so that the control instruction determined in the current processing step can be published to the message server through the instruction issuing unit, so that the control instruction can be forwarded to the vehicle-mounted device corresponding to the control instruction through the message server, thereby effectively improving the vehicle's equipment linkage control efficiency and the reliability of the control results.

[0081] In a feasible implementation manner, after determining the target control rule from a plurality of predetermined control rules based on the received vehicle equipment data, the method further includes:

[0082] A different execution thread is allocated to each of the target control rules, and the execution thread is used to execute the corresponding target control rule.

[0083] Specifically, after determining the target control rule, different execution threads can be assigned to each target control rule. Among them, for any assigned execution thread, the execution thread can be used to execute the corresponding target control rule. In implementation, the received device data can be sent to each assigned execution thread, so that when there are multiple target control rules, multiple target control rules can be executed concurrently without affecting each other, thereby effectively improving the linkage control efficiency of the vehicle-mounted equipment.

[0084] It is understandable that when processing steps for device data matching are configured in the predetermined control rules, an execution thread can be assigned to each predetermined control rule after receiving the device data, so as to quickly identify the target control rule by executing the execution thread corresponding to each predetermined control rule.

[0085] In a feasible implementation manner, the attribute information of each of the predetermined control rules includes an execution order;

[0086] After determining the target control rule from a plurality of predetermined control rules based on the received vehicle equipment data, the method further includes:

[0087] If there are multiple target control rules, and the execution mechanism of the multiple target control rules is sequential execution, then the execution priority of each target control rule is determined based on the execution order corresponding to each target control rule;

[0088] Based on the execution priority of each of the target control rules, each of the target control rules is executed in sequence.

[0089] Specifically, for any predetermined control rule, in the process of configuring the predetermined control rule, the attribute information of the predetermined control rule can also be configured. The attribute information of the predetermined control rule can include the execution order of the predetermined control rule, and the execution order can represent the execution order of the predetermined control rule in the process of sequentially executing multiple predetermined control rules.

[0090] In implementation, after determining the target control rules, if there are multiple target control rules and the execution mechanism of the multiple target control rules is sequential execution, the execution priority of each target control rule can be determined based on the execution order corresponding to each target control rule. For example, the execution priority of each target control rule can be determined based on the change trend of the execution priority with the execution order. For example, if the smaller the value of the execution order is, the higher the execution priority is, the execution order of each target control rule can be sorted, and according to the sorting result, the execution priority of each target control rule can be determined in the order of the execution order value from small to large.

[0091] After obtaining the execution priority of each target control rule, each target control rule can be executed in sequence according to the execution priority from high to low, so that the vehicle's on-board equipment can be flexibly and effectively controlled in linkage, thereby meeting the diversified linkage control needs of the on-board equipment.

[0092] In a feasible implementation manner, the process of constructing the predetermined control rule includes:

[0093] When a rule update request is received, a rule file in the rule update request is obtained; the rule file includes a control rule and execution units corresponding to different processing steps in the control rule;

[0094] Based on the rule file, the predetermined control rule and the execution unit corresponding to the predetermined control rule are updated.

[0095] Specifically, the rule update request can be used to request the rule execution module to update the predetermined control rules. For example, the rule design end can obtain the rule file, and when the rule file is updated, send a rule update request (such as HTTP (Hypertext Transfer Protocol) request) including the rule file to the rule execution module. The rule design end can be the cloud or other devices. In implementation, when there are updates to the vehicle's on-board equipment or the working conditions of the on-board equipment, the user can generate a rule file on the rule design end through a text editor and low-code design tools, and can also input pre-made rule files to the rule design end, and can also input the required data when generating the rule file to the rule design end, so that the rule design end can automatically generate the rule file based on the input required data.

[0096] Among them, the rule file may include one or more rules, and for any rule, it may include a rule body, which may include the various processing steps of the control rule, and the execution units corresponding to the different processing steps in the control rule. In addition, the rule file may also include attribute information of the rule, and the attribute information may include keywords (const), rule names, rule descriptions, rule labels (labels), and the execution order (order) of the rules. Among them, the keywords can be used to characterize the applicable models of the rule, for example, when the keyword is "radar_rule", it can be indicated that the rule is only applicable to radar new energy pickup trucks; the rule name can be unique, and for the same rule name, only the latest rule can be retained in chronological order; the rule label can be represented by a mapping relationship group, for example, by adding a "label-value" key-value pair, a label can be added to the current rule for later management. The rule body can be a rule body written in a high-level language such as Golang. The rule body can support four arithmetic operations (such as addition, subtraction, multiplication, and division), string processing (such as string concatenation), logical operations (such as and, or, not), comparison operations (such as equal to, not equal to, greater than, greater than or equal to, less than, less than or equal to), parentheses, and multi-level calls. For example, the current syntax value is ABC, A is a structure, B is a substructure of A, and C is the specific value of B. Taking A={"name":"radar","info":{"vin":"xxxyyy"}} as an example, then A.info.vin=xxxyyy.

[0097] In addition, before sending a rule update request including a rule file to the rule execution module, the rule design end can also compile the rule file. For example, the rule file can be compiled into a binary file and sent to the rule execution module through steps such as lexical analysis, syntax analysis, and syntax tree parsing.

[0098] When the rule execution module receives the rule update request sent by the rule design end, it can obtain the rule file in the rule update request and update the predetermined control rule and the execution unit corresponding to the predetermined control rule based on the rule file. For example, the rules in the rule file can be converted into the predetermined control rule represented by the Antlr4 script. The update of the predetermined control rule can include addition, deletion, modification, etc. In implementation, the update method can be determined based on the attribute information of each rule in the rule file.

[0099] Therefore, when there is an update to the vehicle's on-board equipment or the operating conditions of the on-board equipment, the predetermined control rules can be automatically updated by updating the rule file without restarting the system. It has good modifiability and great flexibility, and reduces the modification cost of the predetermined control rules, thereby enabling rapid and effective joint control of the on-board equipment.

[0100] In addition, the rule execution module and execution unit library can be wrapped in the context of Golang to improve the security of device linkage control, and can be flexibly deployed in embedded environments, cloud environments, etc. At the same time, Antlr4 can also be used to edit and manage the scheduled control rules. The syntax is simple, and the scheduled control rules can be stored in the form of text, so that they can be flexibly stored in relational or non-relational databases or even file systems, effectively reducing resource requirements.

[0101] Exemplary Devices

[0102] In an exemplary embodiment of the present specification, a device linkage control device is also provided, such as Figure 2 As shown, including:

[0103] A first processing module 201 is used to determine a target control rule from a plurality of predetermined control rules based on received vehicle equipment data;

[0104] The second processing module 202 is used to call the target execution unit in each execution unit corresponding to the target control rule based on the target control rule and the equipment data, so as to perform equipment linkage control on the vehicle; the execution unit is used to process the equipment data and / or execute the action corresponding to the target control rule when calling.

[0105] In a feasible implementation manner, the first processing module 201 is specifically used for:

[0106] Based on the matching result between the device data and the target device data corresponding to each of the predetermined control rules, the target control rule is determined from the plurality of predetermined control rules.

[0107] In a feasible implementation manner, the second processing module 202 is further configured to:

[0108] Based on the target control rule and the device data, determining a current processing step of the target control rule;

[0109] The execution unit corresponding to the current processing step is used as the target execution unit.

[0110] In a feasible implementation manner, the execution unit corresponding to the target control rule includes a result storage unit; the second processing module 202 is specifically used for:

[0111] When the execution unit corresponding to the current processing step is the result storage unit, the result storage unit is called and the rule determination result in the current processing step is input into the result storage unit; the result storage unit is used to store the rule determination result in the current processing step into a predetermined storage module.

[0112] In a feasible implementation manner, the execution unit corresponding to the target control rule includes an instruction issuing unit; the second processing module 202 is specifically used for:

[0113] When the execution unit corresponding to the current processing step is the instruction issuing unit, the instruction issuing unit is called, and the control instruction determined by the current processing step is input into the instruction issuing unit; the instruction issuing unit is used to publish the control instruction determined by the current processing step to the message server of the vehicle, and the message server is used to forward the control instruction to the vehicle-mounted device corresponding to the control instruction.

[0114] In a feasible embodiment, a third processing module is further included, wherein the third processing module is used to:

[0115] After determining a target control rule from a plurality of predetermined control rules based on the received vehicle equipment data, a different execution thread is allocated to each of the target control rules, and the execution thread is used to execute the corresponding target control rule.

[0116] In a feasible implementation manner, the attribute information of each of the predetermined control rules includes an execution order; and the third processing module is further used for:

[0117] After determining a target control rule from a plurality of predetermined control rules based on the received vehicle equipment data, if there are a plurality of target control rules and the execution mechanism of the plurality of target control rules is sequential execution, determining the execution priority of each target control rule based on the execution order corresponding to each target control rule;

[0118] Based on the execution priority of each of the target control rules, each of the target control rules is executed in sequence.

[0119] In a feasible embodiment, a fourth processing module is further included, and the fourth processing module is used to:

[0120] When a rule update request is received, a rule file in the rule update request is obtained; the rule file includes a control rule and execution units corresponding to different processing steps in the control rule;

[0121] Based on the rule file, the predetermined control rule and the execution unit corresponding to the predetermined control rule are updated.

[0122] The device linkage control device provided in this embodiment belongs to the same application concept as the device linkage control method provided in the above embodiments of this application, and can execute the device linkage control method provided in any of the above embodiments of this application, and has the corresponding functional modules and beneficial effects of executing the device linkage control method. For technical details not fully described in this embodiment, please refer to the specific processing content of the device linkage control method provided in the above embodiments of this application, and will not be repeated here.

[0123] Exemplary Devices

[0124] In an exemplary embodiment of the present specification, an electronic device is also provided, comprising at least one processor and at least one memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the device linkage control method as described in any of the above embodiments is implemented.

[0125] Exemplary Systems

[0126] In an exemplary embodiment of the present specification, a device linkage control system is also provided, such as Figure 3 As shown, it includes a message server 301, a rule design terminal 302 and a rule execution module 303.

[0127] The message server 301 can be used to send device data to the rule execution module 303, and can also receive control instructions sent by the rule execution module 303. The rule design terminal 302 can be used to obtain rule files and send rule update requests to the rule execution module 303. The rule execution module 303 can report rule execution results and logs to the rule design terminal 302.

[0128] The rule execution module 303 may include a message listener 304 , an HTTP server 305 , and an execution module 306 . The execution module 306 may adopt the context of Golang.

[0129] Among them, the message listener 304 can be used to monitor the device data sent by the message server 301 in real time. The HTTP server 305 can be used to monitor the rule update request sent by the rule design end 302 in real time. The execution module 306 can include an execution unit library 3061, a rule library 3062 and a management module 3063. The execution unit library 3061 can be used to store each execution unit. The rule library 3062 includes a rule manager 3064, a rule builder 3065 and a rule executor 3066. The rule builder 3065 can be used to update the predetermined control rules based on the rule file in the rule update request received by the HTTP server 305; the rule manager 3064 can be used to store and manage each predetermined control rule; the rule executor 3066 can include an execution unit caller 3067 and a result manager 3068. The execution unit caller 3067 is used to call the execution unit from the execution unit library 3061, and the result manager 3068 can be used to store the rule judgment result. The management module 3063 can be used to allocate execution threads to the predetermined control rules and manage the operation mechanism of each execution thread.

[0130] Example Vehicles

[0131] In an exemplary embodiment of the present specification, a vehicle is further provided, comprising an on-vehicle device and the device linkage control apparatus as described in any one of the above embodiments.

[0132] Exemplary computer program products and storage media

[0133] In addition to the above-mentioned methods and devices, the device linkage control method provided in the embodiments of this specification may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the device linkage control method according to various embodiments of this specification described in the above "Exemplary Method" section of this specification.

[0134] The computer program product can be written in any combination of one or more programming languages ​​to write program codes for executing the operations of the embodiments of this specification, and the programming languages ​​include object-oriented programming languages, such as Java, C++, etc., and also include conventional procedural programming languages, such as "C" language or similar programming languages.

[0135] In addition, an embodiment of the present specification also provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to execute the steps of the device linkage control method according to various embodiments of the present specification described in the above "Exemplary Method" section of the present specification.

[0136] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this specification can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0138] The above-mentioned embodiments only express several implementation methods of this specification, and the descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the solutions provided by the embodiments of this specification. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of this specification, which all belong to the protection scope of this specification. Therefore, the protection scope of the patent of this specification shall be based on the attached claims.

Claims

1. A device linkage control method, characterized in that: include: determining a target control rule from a plurality of predetermined control rules based on the received device data of the vehicle; Based on the target control rule and the equipment data, the target execution unit in each execution unit corresponding to the target control rule is called to perform equipment linkage control on the vehicle; the execution unit is used to process the equipment data and / or execute the action corresponding to the target control rule when called.

2. The method according to claim 1, characterized in that: The step of determining a target control rule from a plurality of predetermined control rules based on the received vehicle equipment data comprises: Based on the matching result between the device data and the target device data corresponding to each of the predetermined control rules, the target control rule is determined from the plurality of predetermined control rules.

3. The method according to claim 1, characterized in that The process of determining the target execution unit includes: Based on the target control rule and the device data, determining a current processing step of the target control rule; The execution unit corresponding to the current processing step is used as the target execution unit.

4. The method according to claim 3, characterized in that The execution unit corresponding to the target control rule includes a result storage unit; The calling of the target execution unit in each execution unit corresponding to the target control rule based on the target control rule and the device data includes: When the execution unit corresponding to the current processing step is the result storage unit, the result storage unit is called and the rule determination result in the current processing step is input into the result storage unit; the result storage unit is used to store the rule determination result in the current processing step into a predetermined storage module.

5. The method according to claim 3, characterized in that: The execution unit corresponding to the target control rule includes an instruction issuing unit; The calling of the target execution unit in each execution unit corresponding to the target control rule based on the target control rule and the device data includes: When the execution unit corresponding to the current processing step is the instruction issuing unit, the instruction issuing unit is called, and the control instruction determined by the current processing step is input into the instruction issuing unit; the instruction issuing unit is used to publish the control instruction determined by the current processing step to the message server of the vehicle, and the message server is used to forward the control instruction to the vehicle-mounted device corresponding to the control instruction.

6. The method according to claim 1, characterized in that After determining the target control rule from a plurality of predetermined control rules based on the received vehicle equipment data, the method further includes: A different execution thread is allocated to each of the target control rules, and the execution thread is used to execute the corresponding target control rule.

7. The method according to claim 1, characterized in that The attribute information of each of the predetermined control rules includes an execution order; After determining the target control rule from a plurality of predetermined control rules based on the received vehicle equipment data, the method further includes: If there are multiple target control rules, and the execution mechanism of the multiple target control rules is sequential execution, then the execution priority of each target control rule is determined based on the execution order corresponding to each target control rule; Based on the execution priority of each of the target control rules, each of the target control rules is executed in sequence.

8. The method according to any one of claims 1 to 7, characterized in that: The process of constructing the predetermined control rules includes: When a rule update request is received, a rule file in the rule update request is obtained; the rule file includes a control rule and execution units corresponding to different processing steps in the control rule; Based on the rule file, the predetermined control rule and the execution unit corresponding to the predetermined control rule are updated.

9. A device linkage control device, characterized in that: include: A first processing module, configured to determine a target control rule from a plurality of predetermined control rules based on received vehicle equipment data; The second processing module is used to call the target execution unit in each execution unit corresponding to the target control rule based on the target control rule and the equipment data, so as to perform equipment linkage control on the vehicle; the execution unit is used to process the equipment data and / or execute the action corresponding to the target control rule when calling.

10. A vehicle, characterized in that: It comprises a vehicle-mounted device and the device linkage control device as claimed in claim 9.

Citation Information

Patent Citations

  • Equipment control method and device, computer equipment, storage medium and vehicle

    CN112660046A

  • Management method, device and system and computer storage medium

    CN114779657A

  • Event processing method and device based on concurrent model rule engine, and medium

    CN116627598A

  • Rule execution method and system

    CN117785138A