[go: up one dir, main page]

CN115437322A - Distributed task scheduling method and system based on vehicle-mounted Ethernet - Google Patents

Distributed task scheduling method and system based on vehicle-mounted Ethernet Download PDF

Info

Publication number
CN115437322A
CN115437322A CN202211051729.2A CN202211051729A CN115437322A CN 115437322 A CN115437322 A CN 115437322A CN 202211051729 A CN202211051729 A CN 202211051729A CN 115437322 A CN115437322 A CN 115437322A
Authority
CN
China
Prior art keywords
task
vehicle
task scheduling
scheduling
center
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211051729.2A
Other languages
Chinese (zh)
Inventor
方静丽
邱云华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202211051729.2A priority Critical patent/CN115437322A/en
Publication of CN115437322A publication Critical patent/CN115437322A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/41865Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by job scheduling, process planning, material flow
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/32Operator till task planning
    • G05B2219/32252Scheduling production, machining, job shop

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a distributed task scheduling method and a distributed task scheduling system based on a vehicle-mounted Ethernet, wherein the method comprises the following steps: s1: when the domain controllers are awakened, task scheduling instances deployed in the domain controllers register to a task scheduling center and actively pull an updated task list; s2: a user sets a task through a vehicle-mounted machine system, and the vehicle-mounted machine system synchronously sets information to a task scheduling center; s3: the task scheduling center receives task information set by a user, updates a task list and simultaneously informs each registered online domain task scheduling instance of updating the task list; s4: the task scheduling center and the task scheduling instance in the power-on state scan a task list at the same time; s5: and after meeting the task execution triggering condition, the task scheduling instance calls the task and executes the service control vehicle. The invention manages and schedules tasks in a unified way through the task scheduling center, then the distributed task scheduling embodiment executes services, and the domain controller is utilized to realize the control of vehicle hardware and equipment.

Description

一种基于车载以太网的分布式任务调度方法及系统A Distributed Task Scheduling Method and System Based on Vehicle Ethernet

技术领域technical field

本发明用于汽车电子和车联网领域,提供一种基于车载以太网的分布式任务调度方法及系统。The invention is used in the fields of automotive electronics and Internet of Vehicles, and provides a distributed task scheduling method and system based on the automotive Ethernet.

背景技术Background technique

随着汽车智能化水平逐步提高,车主对汽车的可操作性需求也越来越强,预约座椅加热、预约开启空调等功能的层出不穷给车主带来了良好的用车体验。同时对于车辆自身管理,定时采集车辆运行关键数据、定时上传车端数据到云端、定时OTA升级等定时执行某个任务的需求越来也多。With the gradual improvement of the intelligent level of automobiles, car owners' demand for car operability is also getting stronger and stronger. Functions such as reservation of seat heating and reservation of turning on air conditioning are emerging one after another, bringing a good car experience to car owners. At the same time, there are more and more demands for vehicle self-management, regular collection of key vehicle operation data, regular upload of vehicle-side data to the cloud, and regular OTA upgrades to perform certain tasks.

针对背景需求目前已有一些解决方法,如专利号CN202011282188.5和CN202110555883.2,整体思路是将整车任务调度与业务功能逻辑集成在车载TBOX终端,通过CAN通信网络传递执行指令到车辆控制器控制车辆。此类方法仍存在一些不足:There are currently some solutions for background requirements, such as patent numbers CN202011282188.5 and CN202110555883.2. The overall idea is to integrate the vehicle task scheduling and business function logic into the vehicle TBOX terminal, and transmit execution instructions to the vehicle controller through the CAN communication network Take control of the vehicle. This method still has some shortcomings:

现有技术中,功能集中部署在TBOX,随着业务种类、任务数量日益增加,功能对资源的需求也随之增加,单纯为此扩容TBOX资源不利于整车资源的均衡利用,可扩展性较差;任务调度功能与任务执行涉及的业务功能逻辑强耦合,某项任务在执行前往往要进行与业务相关的逻辑处理,导致整体功能越做越厚,任一业务功能的修改都可能影响其他业务。In the existing technology, the functions are deployed centrally in the TBOX. As the types of services and the number of tasks increase, the resource requirements of the functions also increase. Simply expanding TBOX resources for this purpose is not conducive to the balanced utilization of vehicle resources, and the scalability is poor. Poor; the task scheduling function is strongly coupled with the business function logic involved in task execution. A certain task often needs to be processed with business-related logic before execution, resulting in the overall function becoming thicker and thicker. Any modification of a business function may affect other tasks. business.

发明内容Contents of the invention

本发明的目的是:提供一种基于车载以太网的分布式任务调度方法。将任务调度功能分布式部署在整车多个域控制器之上,由任务调度中心统一管理,利用车载以太网大带宽、低延时的通信能力实现大量任务定时执行场景下的高性能、可扩展、高可用的整车任务调度功能。The purpose of the present invention is to provide a distributed task scheduling method based on the vehicle Ethernet. Distributed deployment of the task scheduling function on multiple domain controllers of the vehicle, unified management by the task scheduling center, using the large bandwidth and low-latency communication capabilities of the vehicle Ethernet to achieve high performance and scalability in the timing execution of a large number of tasks Extended, highly available vehicle task scheduling function.

为了实现上述目的,本发明采用以下技术方案:一种基于车载以太网的分布式任务调度方法,包括以下步骤:In order to achieve the above object, the present invention adopts the following technical solutions: a distributed task scheduling method based on vehicle Ethernet, comprising the following steps:

S1:各域控制器唤醒时,部署在各域控制器的任务调度实例向任务调度中心注册并主动拉取更新任务清单;S1: When each domain controller wakes up, the task scheduling instance deployed on each domain controller registers with the task scheduling center and actively pulls and updates the task list;

S2:用户通过车机系统进行任务设置,车机系统同步设置信息到任务调度中心;S2: The user sets the task through the vehicle-machine system, and the vehicle-machine system synchronously sets the information to the task dispatching center;

S3:任务调度中心接收用户设置的任务信息、更新任务清单,同时通知已注册在线的各域任务调度实例更新任务清单;S3: The task scheduling center receives the task information set by the user, updates the task list, and notifies the registered online task scheduling instances of each domain to update the task list;

S4:任务调度中心与处于上电状态的任务调度实例同时扫描任务清单;S4: The task scheduling center scans the task list simultaneously with the task scheduling instance in the power-on state;

S5:满足任务执行触发条件后,任务调度实例调用任务、执行服务控制车辆。S5: After the task execution trigger condition is satisfied, the task scheduling instance invokes the task and executes the service to control the vehicle.

进一步,步骤S5包括:Further, step S5 includes:

任务调度实例实时扫描任务清单,满足任务执行触发条件后向任务调度中心获取共享锁加锁请求;The task scheduling instance scans the task list in real time, and obtains a shared lock lock request from the task scheduling center after the task execution trigger condition is met;

加锁成功后任务调度实例调用任务执行服务控制车辆,任务执行完成后向任务调度中心发送任务共享锁解锁请求。After the lock is successfully locked, the task scheduling instance calls the task execution service to control the vehicle, and sends a task shared lock unlock request to the task scheduling center after the task execution is completed.

进一步,步骤S4包括:Further, step S4 includes:

若域控制器处于上电状态则执行S5;If the domain controller is in the power-on state, execute S5;

若域控制器处于断电状态,任务调度中心通过网络管理报文唤醒任务执行服务归属的域控制器。If the domain controller is in a power-off state, the task scheduling center wakes up the domain controller to which the task execution service belongs through a network management message.

进一步,所述步骤S2中,设置信息包括任务执行触发条件、任务执行服务与服务归属域控制器。Further, in the step S2, the setting information includes task execution trigger conditions, task execution service and service home domain controller.

进一步,所述任务执行触发条件为任务执行时间。Further, the task execution trigger condition is task execution time.

本发明还提供一种基于车载以太网的分布式任务调度系统,采用上述基于车载以太网的分布式任务调度方法,包括:The present invention also provides a distributed task scheduling system based on vehicular Ethernet, adopting the above-mentioned distributed task scheduling method based on vehicular Ethernet, including:

车机系统:用于人与车的信息交互,用户通过所述车机系统进行任务设置;Vehicle-machine system: used for information interaction between people and vehicles, users set tasks through the vehicle-machine system;

TBOX:用于与后台系统/移动应用进行通信,实现对移动应用的车辆信息显示和控制;TBOX: used to communicate with the background system/mobile application to realize the vehicle information display and control of the mobile application;

任务调度中心:用于统一管理、调度任务;Task scheduling center: used for unified management and scheduling tasks;

任务调度实施例:用于扫描任务清单并执行任务;Example of task scheduling: used to scan the task list and execute the task;

域控制器:根据所述任务,控制硬件设备;Domain controller: according to the task, control the hardware device;

所述任务调度中心与车机系统、任务调度实施例均采用车载以太网连接;The task dispatching center, the vehicle-machine system and the task dispatching embodiment all adopt the vehicle-mounted Ethernet connection;

所述任务调度实施例设置在域控制器上。The task scheduling embodiment is set on the domain controller.

进一步,所述用户任务设置包括任务执行条件;Further, the user task settings include task execution conditions;

所述任务调度中心还包括任务触发模块;所述任务触发模块用于采集车辆信息,并判断采集到的车辆信息是否满足用户任务设置中的任务执行条件。The task dispatching center also includes a task triggering module; the task triggering module is used for collecting vehicle information and judging whether the collected vehicle information satisfies the task execution conditions in the user's task setting.

进一步,所述任务执行条件包括任务执行时间;所述车辆信息为当前时间;Further, the task execution conditions include task execution time; the vehicle information is the current time;

所述任务触发模块包括时间单元,所述时间单元用于获取当前时间,可满足对时间类型数据的基本处理。The task triggering module includes a time unit, and the time unit is used to obtain the current time, which can satisfy the basic processing of time type data.

进一步,所述任务调度中心包括用于判断域控制器是否上电的判断模块;Further, the task scheduling center includes a judging module for judging whether the domain controller is powered on;

所述任务调度中心还包括用于唤醒域控制器的唤醒模块。The task scheduling center also includes a wake-up module for waking up the domain controller.

相对现有技术,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

1、任务调度功能按需分布式部署在整车多个域控制器,有效利用整车多个域控制器的资源,具备高可用与可扩展性;1. The task scheduling function is distributed and deployed in multiple domain controllers of the vehicle as needed, effectively utilizing the resources of multiple domain controllers of the vehicle, with high availability and scalability;

2、任务调度中心根据车辆上电情况决定唤醒策略,需要唤醒时仅唤醒一个域控制器处理任务,节省能耗;2. The task scheduling center decides the wake-up strategy according to the power-on situation of the vehicle. When it needs to be woken up, only one domain controller is woken up to process the task, saving energy consumption;

3、各个任务调度实例通过共享锁机制并行处理任务,通过车载以太网进行消息通信与指令下发,以太网的大带宽和低延时特性可保证任务处理的实时性;3. Each task scheduling instance processes tasks in parallel through the shared lock mechanism, and performs message communication and command issuance through the vehicle-mounted Ethernet. The large bandwidth and low-latency characteristics of Ethernet can ensure the real-time nature of task processing;

4、采用面向服务的功能实现任务调度与执行,任务调度与业务逻辑解耦,具体业务逻辑由任务最终执行端实现,业务之间不互相影响。4. Use service-oriented functions to realize task scheduling and execution. Task scheduling and business logic are decoupled. The specific business logic is implemented by the final execution end of the task, and the business does not affect each other.

附图说明Description of drawings

本发明可以通过附图给出的非限定性实施例进一步说明;The invention can be further illustrated by the non-limiting examples given in the accompanying drawings;

附图1:本发明一种基于车载以太网的分布式任务调度系统的框架图;Accompanying drawing 1: the frame diagram of a kind of distributed task scheduling system based on vehicle Ethernet of the present invention;

附图2:本发明一种基于车载以太网的分布式任务调度系统中实施例的框架图;Accompanying drawing 2: the frame diagram of the embodiment in a kind of distributed task scheduling system based on vehicle Ethernet of the present invention;

附图3:本发明一种基于车载以太网的分布式任务调度方法的流程图。Accompanying drawing 3: The flow chart of a kind of distributed task scheduling method based on vehicle Ethernet of the present invention.

具体实施方式detailed description

以下将结合附图和具体实施例对本发明进行详细说明,需要说明的是,在附图或说明书描述中,相似或相同的部分都使用相同的图号,附图中未绘示或描述的实现方式,为所属技术领域中普通技术人员所知的形式。术语解释:车机系统:车载信息娱乐产品的简称,实现人与车的信息通讯。TBOX:汽车通讯模块。ECU:电子控制单元,汽车专用微机控制器,负责控制硬件设备。域控制器:将功能相似、分离的ECU功能集成整合到一个处理器硬件平台,由域主控处理器、操作系统和应用软件及算法等部分组成。车载以太网:一种用以太网连接车内电子单元的新型局域网技术。The present invention will be described in detail below in conjunction with the drawings and specific embodiments. It should be noted that in the drawings or descriptions, similar or identical parts use the same figure numbers, and implementations that are not shown or described in the drawings The method is a form known to those of ordinary skill in the art. Explanation of terms: car-machine system: the abbreviation of in-vehicle infotainment products, which realizes the information communication between people and cars. TBOX: Vehicle communication module. ECU: electronic control unit, a special microcomputer controller for automobiles, responsible for controlling hardware devices. Domain controller: Integrate similar and separated ECU functions into a processor hardware platform, which is composed of domain master processor, operating system, application software and algorithms. Vehicle Ethernet: A new type of local area network technology that uses Ethernet to connect electronic units in vehicles.

参见图1-图3,本发明提供了一种基于车载以太网的分布式任务调度方法,包括以下步骤:Referring to Fig. 1-Fig. 3, the present invention provides a kind of distributed task scheduling method based on vehicle Ethernet, comprising the following steps:

S1:各域控制器唤醒时,部署在各域控制器的任务调度实例向任务调度中心注册并主动拉取更新任务清单;S1: When each domain controller wakes up, the task scheduling instance deployed on each domain controller registers with the task scheduling center and actively pulls and updates the task list;

S2:用户通过车机系统进行任务设置,车机系统同步设置信息到任务调度中心;S2: The user sets the task through the vehicle-machine system, and the vehicle-machine system synchronously sets the information to the task dispatching center;

S3:任务调度中心接收用户设置的任务信息、更新任务清单,同时通知已注册在线的各域任务调度实例更新任务清单;S3: The task scheduling center receives the task information set by the user, updates the task list, and notifies the registered online task scheduling instances of each domain to update the task list;

S4:任务调度中心与处于上电状态的任务调度实例同时扫描任务清单;S4: The task scheduling center scans the task list simultaneously with the task scheduling instance in the power-on state;

S5:满足任务执行触发条件后,任务调度实例调用任务、执行服务控制车辆。S5: After the task execution trigger condition is satisfied, the task scheduling instance invokes the task and executes the service to control the vehicle.

本发明通过任务调度中心,统一管理、调度任务,再由分布式的任务调度实施例执行服务,最终利用域控制器实现对车辆硬件、设备的控制。现有技术中,功能集中部署在TBOX,随着业务种类、任务数量日益增加,功能对资源的需求也随之增加,单纯为此扩容TBOX资源不利于整车资源的均衡利用,可扩展性较差,且任务调度功能与任务执行涉及的业务功能逻辑强耦合,某项任务在执行前往往要进行与业务相关的逻辑处理,导致整体功能越做越厚,任一业务功能的修改都可能影响其他业务。本发明与现有技术相比,任务调度功能按需分布式部署在整车多个域控制器,有效利用整车多个域控制器的资源,具备高可用与可扩展性;采用面向服务的功能实现任务调度与执行,任务调度与业务逻辑解耦,具体业务逻辑由任务最终执行端实现,业务之间不互相影响。The present invention manages and dispatches tasks in a unified manner through the task dispatching center, then executes the service through the distributed task dispatching embodiment, and finally uses the domain controller to realize the control of vehicle hardware and equipment. In the existing technology, the functions are deployed centrally in the TBOX. As the types of services and the number of tasks increase, the resource requirements of the functions also increase. Simply expanding TBOX resources for this purpose is not conducive to the balanced utilization of vehicle resources, and the scalability is poor. Poor, and the task scheduling function is strongly coupled with the business function logic involved in task execution. A certain task often needs to be processed with business-related logic before execution, resulting in the overall function becoming thicker and thicker. The modification of any business function may affect Other business. Compared with the prior art, the present invention distributes and deploys the task scheduling function in multiple domain controllers of the vehicle as required, effectively utilizes the resources of multiple domain controllers of the vehicle, and has high availability and scalability; adopts service-oriented The function realizes task scheduling and execution, and task scheduling is decoupled from business logic. The specific business logic is implemented by the final execution end of the task, and the business does not affect each other.

在一些实施例中,步骤S5包括:In some embodiments, step S5 includes:

任务调度实例实时扫描任务清单,满足任务执行触发条件后向任务调度中心获取共享锁加锁请求;The task scheduling instance scans the task list in real time, and obtains a shared lock lock request from the task scheduling center after the task execution trigger condition is met;

加锁成功后任务调度实例调用任务执行服务控制车辆,任务执行完成后向任务调度中心发送任务共享锁解锁请求。After the lock is successfully locked, the task scheduling instance calls the task execution service to control the vehicle, and sends a task shared lock unlock request to the task scheduling center after the task execution is completed.

由于任务调度实施例在执行服务前会向任务调度中心获取共享加锁的请求,执行任务后会向任务中心发送任务共享锁解锁请求,一方面提高了数据传输的安全性和可靠性;另一方面,便于任务中心的调度管理,提高了任务中心调度的效率和准确性,进一步提高了任务中心根据用户的设置信息执行任务的安全性和可靠性。Because the task scheduling embodiment will obtain a shared lock request from the task scheduling center before executing the service, and will send a task shared lock unlocking request to the task center after executing the task, which improves the security and reliability of data transmission on the one hand; On the one hand, it facilitates the scheduling management of the task center, improves the efficiency and accuracy of the task center scheduling, and further improves the security and reliability of the task center executing tasks according to the user's setting information.

在一些实施例中,步骤S4还包括:In some embodiments, step S4 also includes:

若域控制器处于上电状态则执行S5;If the domain controller is in the power-on state, execute S5;

若域控制器处于断电状态,任务调度中心通过网络管理报文唤醒任务执行服务归属的域控制器。If the domain controller is in a power-off state, the task scheduling center wakes up the domain controller to which the task execution service belongs through a network management message.

该设置通过判断域控制器是否上电,进而决定是否通过网络管理报文进行唤醒。由于车辆中具有诸多域控制器,而这些域控制器如果一直处于上电状态会增加车辆的能耗,且会使一些域控制器加速老化,破损,所以需要使其中一些不常用或可以进行待机的域控制器在没有任务的时候保持下电状态,当有任务或需要时先进行唤醒,再执行任务执行服务。这样减少了车辆的负荷,实现了节省能耗的效果。This setting judges whether the domain controller is powered on, and then decides whether to wake it up through the network management message. Since there are many domain controllers in the vehicle, if these domain controllers are always powered on, the energy consumption of the vehicle will increase, and some domain controllers will accelerate aging and damage, so it is necessary to make some of them infrequent or standby The domain controller keeps power off when there is no task, and wakes up first when there is a task or needs, and then executes the task execution service. This reduces the load on the vehicle and achieves the effect of saving energy.

在一些实施例中,所述步骤S2中,设置信息包括任务执行触发条件、任务执行服务与服务归属域控制器。In some embodiments, in the step S2, the setting information includes task execution trigger conditions, task execution service and domain controller to which the service belongs.

由于上述设置,任务中心可以快速对设置信息进行识别,对服务归属域控制器进行任务的调度。当满足任务执行触发条件后,任务调度实例执行服务,域控制器进行相应的操作。Due to the above settings, the task center can quickly identify the setting information, and schedule tasks for the domain controller to which the service belongs. When the task execution trigger condition is met, the task scheduling instance executes the service, and the domain controller performs corresponding operations.

其中,任务执行触发条件可以是任务执行时间、任务执行温度、任务执行车速、任务执行海拔等等,这些任务执行触发条件可以通过传感器采集信息,并反馈给任务中心,任务中心获取到采集信息后与设置信息中的任务执行触发条件进行对比,判断是否触发,决定是否执行任务、执行服务。Among them, the task execution trigger conditions can be task execution time, task execution temperature, task execution vehicle speed, task execution altitude, etc. These task execution trigger conditions can collect information through sensors and feed it back to the mission center. After the mission center obtains the collected information Compare with the task execution trigger conditions in the setting information, judge whether it is triggered, and decide whether to execute the task and perform the service.

在一些实施例中,所述任务执行触发条件优选为任务执行时间。In some embodiments, the task execution trigger condition is preferably task execution time.

随着汽车智能化水平逐步提高,车主对汽车的可操作性需求也越来越强,预约座椅加热、预约开启空调等功能的层出不穷给车主带来了良好的用车体验。同时对于车辆自身管理,定时采集车辆运行关键数据、定时上传车端数据到云端、定时OTA升级等定时执行某个任务的需求越来也多。所以本实施例中,选用任务执行时间作为任务执行触发条件,可以满足用户越来越强烈的操作性需求,提升用户的便捷度和满意度。With the gradual improvement of the intelligent level of automobiles, car owners' demand for car operability is also getting stronger and stronger. Functions such as reservation of seat heating and reservation of turning on air conditioning are emerging one after another, bringing a good car experience to car owners. At the same time, there are more and more demands for vehicle self-management, regular collection of key vehicle operation data, regular upload of vehicle-side data to the cloud, and regular OTA upgrades to perform certain tasks. Therefore, in this embodiment, the task execution time is selected as the task execution trigger condition, which can meet the user's increasingly strong operational needs and improve the user's convenience and satisfaction.

本发明提供一种基于车载以太网的分布式任务调度系统,采用上述分布式任务调度方法,包括:The present invention provides a distributed task scheduling system based on vehicle Ethernet, adopting the above-mentioned distributed task scheduling method, including:

车机系统:用于人与车的信息交互,用户通过所述车机系统进行任务设置;Vehicle-machine system: used for information interaction between people and vehicles, users set tasks through the vehicle-machine system;

TBOX:用于与后台系统/移动应用进行通信,实现对移动应用的车辆信息显示和控制;TBOX: used to communicate with the background system/mobile application to realize the vehicle information display and control of the mobile application;

任务调度中心:用于统一管理、调度任务;Task scheduling center: used for unified management and scheduling tasks;

任务调度实施例:用于扫描任务清单并执行任务;Example of task scheduling: used to scan the task list and execute the task;

域控制器:根据所述任务,控制硬件设备;Domain controller: according to the task, control the hardware device;

所述任务调度中心与车机系统、任务调度实施例均采用车载以太网连接;The task dispatching center, the vehicle-machine system and the task dispatching embodiment all adopt the vehicle-mounted Ethernet connection;

所述任务调度实施例设置在域控制器上。The task scheduling embodiment is set on the domain controller.

具体地,1、任务调度中心功能包括:Specifically, 1. The functions of the task scheduling center include:

1)提供任务调度实例注册接口,各域任务调度实例启动后主动进行注册,调度中心监控各执行实例在线状态;1) Provide a task scheduling instance registration interface, each domain task scheduling instance will actively register after startup, and the scheduling center will monitor the online status of each execution instance;

2)提供任务设置接口,通过接口获取车机系统同步的任务信息,包括任务执行时间、任务执行服务与服务归属域控制器,更新任务清单并通知各域已注册的任务调度实例同步更新;2) Provide a task setting interface, and obtain the task information synchronized by the vehicle-machine system through the interface, including task execution time, task execution service and domain controller to which the service belongs, update the task list and notify the registered task scheduling instances in each domain to update synchronously;

3)共享锁管理,部署在各域的任务调度实例在执行任务前向调度中心获取任务共享锁,调度中心检测任务是否已存在共享锁,未存在时分配锁并返回成功结果,已存在时返回失败结果;3) Shared lock management. The task scheduling instance deployed in each domain obtains the task shared lock from the dispatch center before executing the task. The dispatch center detects whether the task already has a shared lock. If it does not exist, it allocates the lock and returns a successful result. If it exists, it returns failure result;

4)任务扫描与唤醒功能。实时扫描任务清单,到达某任务执行时间且没有域控制器处于上电状态时,通过网络管理报文唤醒任务执行服务归属的域控制器。4) Task scanning and wake-up function. Scan the task list in real time. When a certain task execution time is reached and no domain controller is in the power-on state, the domain controller to which the task execution service belongs will be awakened through the network management message.

2、车机系统任务设置界面与设置同步功能。作为用户设置任务的入口,车机系统需要根据任务类型在相应的功能模块提供任务设置界面,如在座椅控制功能模块提供座椅加热开始时间设置入口、在空调控制模块提供空调开启开始时间设置入口等;2. The car machine system task setting interface and setting synchronization function. As the entrance for users to set tasks, the car-machine system needs to provide task setting interfaces in the corresponding function modules according to the task type, such as providing an entry for setting the seat heating start time in the seat control function module, and providing an air-conditioning start time setting in the air-conditioning control module entrance, etc.;

3、任务调度功能。任务调度功能分布式部署在车辆多个域控制器,如座舱域控制器、车控域控制器等,作为任务执行节点需具备如下功能:3. Task scheduling function. The task scheduling function is distributed and deployed in multiple domain controllers of the vehicle, such as the cockpit domain controller and the vehicle control domain controller. As a task execution node, it needs to have the following functions:

1)主动注册功能,当任务调度实例启动后需要主动注册到任务调度中心并拉取、更新全量任务列表;1) Active registration function. When the task scheduling instance is started, it needs to actively register to the task scheduling center and pull and update the full task list;

2)任务扫描与任务共享锁获取。实时扫描任务列表,到达指定时间时向任务调度中心获取对应任务的共享锁,获取锁成功时再执行任务,获取锁失败则跳过此任务;2) Task scanning and task shared lock acquisition. Scan the task list in real time, obtain the shared lock of the corresponding task from the task scheduling center when the specified time is reached, execute the task when the lock is successfully obtained, and skip this task if the lock fails to be obtained;

3)任务执行功能,在任务执行阶段通过服务调用等方式来控制车辆执行相应动作;3) Task execution function, which controls the vehicle to perform corresponding actions through service calls during the task execution phase;

4、整车控制功能服务化,各任务最终执行端负责处理业务功能逻辑并对外提供服务。4. The vehicle control function is service-oriented, and the final execution end of each task is responsible for processing the business function logic and providing external services.

现有技术中,常常CAN进行信号传输,而CAN信号的整车任务调度功能实现灵活性较低、可维护性较差,信号收发关系与路由信息在编译阶段写死,新增业务功能时从底层车辆控制器到上层应用整条链路上的所有相关功能都需要编写和配置,任何功能的修改都需要调整整车通信矩阵。In the existing technology, CAN is often used for signal transmission, but the vehicle task scheduling function of CAN signals is less flexible and maintainable. The signal sending and receiving relationship and routing information are hard-coded in the compilation stage. All relevant functions on the entire link from the bottom vehicle controller to the upper application need to be written and configured, and any modification of the functions requires adjustment of the vehicle communication matrix.

而本发明中的分布式任务调度系统是基于以太网进行信号传输通信的,灵活性较高、可维护性好,由于以太网的大带宽和低延时特性可保证任务处理的实时性。The distributed task scheduling system in the present invention is based on Ethernet for signal transmission and communication, and has high flexibility and good maintainability. Due to the large bandwidth and low delay characteristics of Ethernet, the real-time performance of task processing can be guaranteed.

使用时,用户先通过车机系统进行任务设置,并通过TBOX将任务设置传输给任务调度中心,任务调度中心根据任务设置进行统一管理调度任务给任务调度实施例,最终任务调度实施例执行任务执行服务,由域控制器根据服务根据任务控制相应的硬件设备,实现用户的任务设置,满足用户的需求。When in use, the user first sets the task through the vehicle-machine system, and transmits the task setting to the task scheduling center through TBOX, and the task scheduling center conducts unified management and scheduling tasks to the task scheduling embodiment according to the task setting, and finally the task scheduling embodiment executes the task execution Service, the domain controller controls the corresponding hardware device according to the service and task, realizes the user's task setting, and meets the user's needs.

在一些实施例中,所述任务调度中心还包括任务触发模块;所述任务触发模块用于采集车辆信息,并判断采集到的车辆信息是否满足用户任务设置中的任务执行条件。In some embodiments, the task dispatching center further includes a task triggering module; the task triggering module is used to collect vehicle information and determine whether the collected vehicle information meets the task execution conditions in the user's task settings.

具体的车辆信息可以是任务执行时间、任务执行温度、任务执行车速、任务执行海拔等,任务触发模块中设置有用于采集车辆信息的传感器。The specific vehicle information may be task execution time, task execution temperature, task execution vehicle speed, task execution altitude, etc. The task trigger module is provided with a sensor for collecting vehicle information.

在一些实施例中,所述任务触发模块中的执行条件为任务执行时间;所述车辆信息为当前时间;In some embodiments, the execution condition in the task trigger module is the task execution time; the vehicle information is the current time;

所述任务触发模块包括时间单元,所述时间单元用于获取当前时间,可满足对时间类型数据的基本处理。The task triggering module includes a time unit, and the time unit is used to obtain the current time, which can satisfy the basic processing of time type data.

随着汽车智能化水平逐步提高,车主对汽车的可操作性需求也越来越强,预约座椅加热、预约开启空调等功能的层出不穷给车主带来了良好的用车体验。同时对于车辆自身管理,定时采集车辆运行关键数据、定时上传车端数据到云端、定时OTA升级等定时执行某个任务的需求越来也多。所以本实施例中,选用任务执行时间作为任务执行触发条件,可以满足用户越来越强烈的操作性需求,提升用户的便捷度和满意度。With the gradual improvement of the intelligent level of automobiles, car owners' demand for car operability is also getting stronger and stronger. Functions such as reservation of seat heating and reservation of turning on air conditioning are emerging one after another, bringing a good car experience to car owners. At the same time, there are more and more demands for vehicle self-management, regular collection of key vehicle operation data, regular upload of vehicle-side data to the cloud, and regular OTA upgrades to perform certain tasks. Therefore, in this embodiment, the task execution time is selected as the task execution trigger condition, which can meet the user's increasingly strong operational needs and improve the user's convenience and satisfaction.

在一些实施例中,所述任务调度中心包括用于判断域控制器是否上电的判断模块;In some embodiments, the task scheduling center includes a judging module for judging whether the domain controller is powered on;

所述任务调度中心还包括用于唤醒域控制器的唤醒模块。The task scheduling center also includes a wake-up module for waking up the domain controller.

该设置通过判断模块判断域控制器是否上电,进而决定是否通过唤醒模块对域控制器进行唤醒。由于车辆中具有诸多域控制器,而这些域控制器如果一直处于上电状态会增加车辆的能耗,且会使一些域控制器加速老化,破损,所以需要使其中一些不常用或可以进行待机的域控制器在没有任务的时候保持下电状态,当有任务或需要时先进行唤醒,再执行任务执行服务。这样减少了车辆的负荷,实现了节省能耗的效果。This setting judges whether the domain controller is powered on through the judgment module, and then decides whether to wake up the domain controller through the wake-up module. Since there are many domain controllers in the vehicle, if these domain controllers are always powered on, the energy consumption of the vehicle will increase, and some domain controllers will accelerate aging and damage, so it is necessary to make some of them infrequent or standby The domain controller keeps power off when there is no task, and wakes up first when there is a task or needs, and then executes the task execution service. This reduces the load on the vehicle and achieves the effect of saving energy.

以上对本发明提供的一种基于车载以太网的分布式任务调度方法及系统进行了详细介绍。具体实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The method and system for distributed task scheduling based on vehicle Ethernet provided by the present invention have been introduced in detail above. The description of specific embodiments is only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims (9)

1.一种基于车载以太网的分布式任务调度方法,其特征在于,包括以下步骤:1. a distributed task scheduling method based on vehicle ethernet, it is characterized in that, comprising the following steps: S1:各域控制器唤醒时,部署在各域控制器的任务调度实例向任务调度中心注册并主动拉取更新任务清单;S1: When each domain controller wakes up, the task scheduling instance deployed on each domain controller registers with the task scheduling center and actively pulls and updates the task list; S2:用户通过车机系统进行任务设置,车机系统同步设置信息到任务调度中心;S2: The user sets the task through the vehicle-machine system, and the vehicle-machine system synchronously sets the information to the task dispatching center; S3:任务调度中心接收用户设置的任务信息、更新任务清单,同时通知已注册在线的各域任务调度实例更新任务清单;S3: The task scheduling center receives the task information set by the user, updates the task list, and notifies the registered online task scheduling instances of each domain to update the task list; S4:任务调度中心与处于上电状态的任务调度实例同时扫描任务清单;S4: The task scheduling center scans the task list simultaneously with the task scheduling instance in the power-on state; S5:满足任务执行触发条件后,任务调度实例调用任务、执行服务控制车辆。S5: After the task execution trigger condition is satisfied, the task scheduling instance invokes the task and executes the service to control the vehicle. 2.根据权利要求1所述的一种基于车载以太网的分布式任务调度方法,其特征在于,步骤S5包括:2. a kind of distributed task scheduling method based on vehicle Ethernet according to claim 1, is characterized in that, step S5 comprises: 任务调度实例实时扫描任务清单,满足任务执行触发条件后向任务调度中心获取共享锁加锁请求;The task scheduling instance scans the task list in real time, and obtains a shared lock lock request from the task scheduling center after the task execution trigger condition is met; 加锁成功后任务调度实例调用任务执行服务控制车辆,任务执行完成后向任务调度中心发送任务共享锁解锁请求。After the lock is successfully locked, the task scheduling instance calls the task execution service to control the vehicle, and sends a task shared lock unlock request to the task scheduling center after the task execution is completed. 3.根据权利要求1所述的一种基于车载以太网的分布式任务调度方法,其特征在于,步骤S4包括:3. a kind of distributed task scheduling method based on vehicle Ethernet according to claim 1, is characterized in that, step S4 comprises: 若域控制器处于上电状态则执行S5;If the domain controller is in the power-on state, execute S5; 若域控制器处于断电状态,任务调度中心通过网络管理报文唤醒任务执行服务归属的域控制器。If the domain controller is in a power-off state, the task scheduling center wakes up the domain controller to which the task execution service belongs through a network management message. 4.根据权利要求1所述的一种基于车载以太网的分布式任务调度方法,其特征在于:4. a kind of distributed task scheduling method based on vehicle Ethernet according to claim 1, is characterized in that: 所述步骤S2中,设置信息包括任务执行触发条件、任务执行服务与服务归属域控制器。In the step S2, the setting information includes task execution trigger conditions, task execution service and domain controller to which the service belongs. 5.根据权利要求4所述的一种基于车载以太网的分布式任务调度方法,其特征在于:5. a kind of distributed task scheduling method based on vehicle Ethernet according to claim 4, is characterized in that: 所述任务执行触发条件为任务执行时间。The task execution trigger condition is task execution time. 6.一种基于车载以太网的分布式任务调度系统,采用权利要求1-5任一种基于车载以太网的分布式任务调度方法,其特征在于,包括:6. A distributed task scheduling system based on vehicular Ethernet, adopting any one of claim 1-5 based on vehicular Ethernet distributed task scheduling method, characterized in that, comprising: 车机系统:用于人与车的信息交互,用户通过所述车机系统进行任务设置;Vehicle-machine system: used for information interaction between people and vehicles, users set tasks through the vehicle-machine system; TBOX:用于与后台系统/移动应用进行通信,实现对移动应用的车辆信息显示和控制;TBOX: used to communicate with the background system/mobile application to realize the vehicle information display and control of the mobile application; 任务调度中心:用于统一管理、调度任务;Task scheduling center: used for unified management and scheduling tasks; 任务调度实施例:用于扫描任务清单并执行任务;Example of task scheduling: used to scan the task list and execute the task; 域控制器:根据所述任务,控制硬件设备;Domain controller: according to the task, control the hardware device; 所述任务调度中心与车机系统、任务调度实施例均采用车载以太网连接;The task dispatching center, the vehicle-machine system and the task dispatching embodiment all adopt the vehicle-mounted Ethernet connection; 所述任务调度实施例设置在域控制器上。The task scheduling embodiment is set on the domain controller. 7.根据权利要求6所述的一种基于车载以太网的分布式任务调度系统,其特征在于:7. a kind of distributed task scheduling system based on vehicle Ethernet according to claim 6, is characterized in that: 所述用户任务设置包括任务执行条件;The user task settings include task execution conditions; 所述任务调度中心还包括任务触发模块;所述任务触发模块用于采集车辆信息,并判断采集到的车辆信息是否满足用户任务设置中的任务执行条件。The task dispatching center also includes a task triggering module; the task triggering module is used for collecting vehicle information and judging whether the collected vehicle information satisfies the task execution conditions in the user's task setting. 8.根据权利要求7所述的一种基于车载以太网的分布式任务调度系统,其特征在于:8. a kind of distributed task scheduling system based on vehicle Ethernet according to claim 7, is characterized in that: 所述任务执行条件包括任务执行时间;所述车辆信息为当前时间;The task execution conditions include task execution time; the vehicle information is the current time; 所述任务触发模块包括时间单元,所述时间单元用于获取当前时间,可满足对时间类型数据的基本处理。The task triggering module includes a time unit, and the time unit is used to obtain the current time, which can satisfy the basic processing of time type data. 9.根据权利要求6所述的一种基于车载以太网的分布式任务调度系统,其特征在于:9. a kind of distributed task scheduling system based on vehicle Ethernet according to claim 6, is characterized in that: 所述任务调度中心包括用于判断域控制器是否上电的判断模块;The task scheduling center includes a judging module for judging whether the domain controller is powered on; 所述任务调度中心还包括用于唤醒域控制器的唤醒模块。The task scheduling center also includes a wake-up module for waking up the domain controller.
CN202211051729.2A 2022-08-31 2022-08-31 Distributed task scheduling method and system based on vehicle-mounted Ethernet Pending CN115437322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211051729.2A CN115437322A (en) 2022-08-31 2022-08-31 Distributed task scheduling method and system based on vehicle-mounted Ethernet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211051729.2A CN115437322A (en) 2022-08-31 2022-08-31 Distributed task scheduling method and system based on vehicle-mounted Ethernet

Publications (1)

Publication Number Publication Date
CN115437322A true CN115437322A (en) 2022-12-06

Family

ID=84244285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211051729.2A Pending CN115437322A (en) 2022-08-31 2022-08-31 Distributed task scheduling method and system based on vehicle-mounted Ethernet

Country Status (1)

Country Link
CN (1) CN115437322A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116500896A (en) * 2023-04-28 2023-07-28 重庆大学 Model and method for intelligent real-time scheduling of multi-virtual CPU tasks in intelligent networked vehicle domain controller

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216500A (en) * 2013-05-29 2014-12-17 纬创资通股份有限公司 Embedded controller and power-saving control method
CN110103858A (en) * 2019-05-10 2019-08-09 联陆智能交通科技(上海)有限公司 Automotive electronics ECU and sensor connection and method
CN110281786A (en) * 2019-05-27 2019-09-27 东风柳州汽车有限公司 Electric car power-on and power-off control method
CN112000445A (en) * 2020-07-08 2020-11-27 苏宁云计算有限公司 Distributed task scheduling method and system
CN113238501A (en) * 2021-05-08 2021-08-10 西安联乘智能科技有限公司 Vehicle networking control method and system based on RTOS operating system
CN113472618A (en) * 2021-06-03 2021-10-01 一汽奔腾轿车有限公司 Software-based CANPN network management method
CN114802058A (en) * 2022-06-23 2022-07-29 北京理工大学 Intelligent electric vehicle regional architecture vehicle-mounted networked control system and scheduling method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216500A (en) * 2013-05-29 2014-12-17 纬创资通股份有限公司 Embedded controller and power-saving control method
CN110103858A (en) * 2019-05-10 2019-08-09 联陆智能交通科技(上海)有限公司 Automotive electronics ECU and sensor connection and method
CN110281786A (en) * 2019-05-27 2019-09-27 东风柳州汽车有限公司 Electric car power-on and power-off control method
CN112000445A (en) * 2020-07-08 2020-11-27 苏宁云计算有限公司 Distributed task scheduling method and system
CN113238501A (en) * 2021-05-08 2021-08-10 西安联乘智能科技有限公司 Vehicle networking control method and system based on RTOS operating system
CN113472618A (en) * 2021-06-03 2021-10-01 一汽奔腾轿车有限公司 Software-based CANPN network management method
CN114802058A (en) * 2022-06-23 2022-07-29 北京理工大学 Intelligent electric vehicle regional architecture vehicle-mounted networked control system and scheduling method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116500896A (en) * 2023-04-28 2023-07-28 重庆大学 Model and method for intelligent real-time scheduling of multi-virtual CPU tasks in intelligent networked vehicle domain controller
CN116500896B (en) * 2023-04-28 2024-03-15 重庆大学 Intelligent connected car domain controller multi-virtual CPU task intelligent real-time scheduling model and method

Similar Documents

Publication Publication Date Title
US20220214914A1 (en) Parallel process apparatus, parallel process system, and parallel processing method for parallelizing multiple processes in accordance with multiple process requests
CN108933719B (en) Vehicle-mounted CAN network management method, vehicle-mounted CAN network and vehicle
CN107360072B (en) CAN network capable of synchronously sleeping and control method thereof
WO2021082301A1 (en) Sleep and wakeup method for in-vehicle hybrid network comprising in-vehicle ethernet
CN101828158A (en) System and method for changing the state of vehicle components
JP4046776B2 (en) Data transmission system
KR101610122B1 (en) Method and system for remotely controlling vehicle telematics device
CN103167054A (en) System and method for managing Ethernet communication network for use in vehicle
CN102815274B (en) Management method for bus-mastering system of finished automobile
CN207399265U (en) A kind of onboard system control device
CN111464974A (en) Internet of vehicles data communication method, device, equipment and medium
CN113472618A (en) Software-based CANPN network management method
CN109976319A (en) A kind of vehicle Network Management System framework
CN115437322A (en) Distributed task scheduling method and system based on vehicle-mounted Ethernet
CN110509870B (en) Vehicle-mounted CAN network and vehicle-mounted CAN network management method
US20240192945A1 (en) Vehicle Network Management Method and Apparatus, and OTA Software Update Method
JP5038062B2 (en) Communication system and communication method
CN102416916B (en) Common screen display control method for vehicle-mounted automatic air conditioner and audio systems
CN118833173B (en) Vehicle-mounted HPC power management method and system for central centralized architecture
CN116540666A (en) Vehicle diagnosis system, method, electronic equipment and medium based on TBOX
KR20240039827A (en) Electric vehicle network management system and method for therefor
JP2022132970A (en) ELECTRONIC CONTROLLER AND METHOD OF STARTING ELECTRONIC CONTROLLER
US8655512B2 (en) Method for operating a number of control units
CN117319127A (en) A CAN communication architecture for vehicle-mounted sensors
CN112565359B (en) Network connection method, system, vehicle-mounted terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination