Data stream selection control method, apparatus, device, and storage medium

CN119270823BActive Publication Date: 2026-09-08LAUNCH TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411380993.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2026-09-08
Estimated Expiration
2044-09-29

AI Technical Summary

Technical Problem

[0005]本申请的主要目的在于提供一种数据流选择控制方法、装置、设备及存储介质,旨在解决多系统存在互斥情况下查看数据流出现异常的技术问题

Benefits of technology

[0039] This application proposes a data stream selection control method, apparatus, device, and storage medium. It receives system information from an electronic control unit (ECU) on a controller area network (Controller Area Network) bus sent by a vehicle. Based on the ECU's system information, it configures a mutual exclusion system list for the corresponding ECU bus. Then, it selects and controls the data stream of the ECU based on the mutual exclusion system list. By configuring the mutual exclusion system list for the corresponding ECU bus and selecting and controlling the ECU's data stream based on this list, it ensures that no communication errors occur when refreshing multiple system data streams, improving data stream viewing efficiency and enhancing user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119270823B_ABST
    Figure CN119270823B_ABST
Patent Text Reader

Abstract

The application discloses a data flow selection control method and device, equipment and a storage medium, and relates to the technical field of vehicle diagnosis. The method comprises the following steps: receiving system information of an electronic control unit corresponding to a controller area network bus sent by a vehicle end; configuring a mutual exclusion system list of a corresponding controller area network bus according to the system information of the electronic control unit; and performing selection control on a data flow of the electronic control unit based on the mutual exclusion system list. By configuring the mutual exclusion system list of the corresponding controller area network bus and performing selection control on the data flow of the electronic control unit based on the mutual exclusion system list, it can be ensured that no communication exception occurs when refreshing the data flow of multiple systems, the viewing efficiency of the data flow is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle diagnostic technology, and in particular to data stream selection control methods, apparatus, devices and storage media. Background Technology

[0002] When using diagnostic equipment to diagnose a vehicle, it is necessary to view data streams across systems. However, when selecting data streams from multiple systems, there may be mutual exclusion between systems on the same CAN (Controller Area Network) bus. This means that the data streams of two mutually exclusive systems cannot be viewed simultaneously. Therefore, it is necessary to control the selection of mutually exclusive systems.

[0003] The current solution lacks restrictions on multiple system selection, leading to issues when refreshing data streams from multiple systems. This can result in CAN bus communication failures, refresh failures, or delays in data refresh due to frequent system switching, followed by a user notification that the selected systems cannot be accessed simultaneously. This fails to address the problem of viewing multiple system data streams under mutually exclusive conditions. Therefore, a solution that allows for data stream selection control in the event of system mutual exclusion is urgently needed.

[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main objective of this application is to provide a data stream selection control method, apparatus, device, and storage medium, which aims to solve the technical problem of abnormal data stream viewing under conditions of mutual exclusion among multiple systems.

[0006] To achieve the above objectives, this application proposes a data flow selection control method, which is applied to a diagnostic end and includes the following steps:

[0007] Receive corresponding system information from the electronic control unit on the controller area network bus sent by the vehicle;

[0008] Configure the mutual exclusion system list for the corresponding controller local area network bus based on the system information of the electronic control unit;

[0009] The data flow of the electronic control unit is selected and controlled based on the list of mutually exclusive systems.

[0010] In one embodiment, the step of configuring the mutual exclusion system list of the corresponding controller area network bus according to the system information of the electronic control unit includes:

[0011] Based on the system information of the electronic control unit, determine the electronic control unit connected to each controller area network bus;

[0012] Based on the connected electronic control unit, obtain the corresponding mutual exclusion system information of the electronic control unit;

[0013] Based on the mutual exclusion system information of the electronic control unit, configure and generate a list of mutual exclusion systems for the corresponding controller area network bus.

[0014] In one embodiment, the step of selecting and controlling the data stream of the electronic control unit based on the list of mutually exclusive systems includes:

[0015] The diagnostic interface of the diagnostic terminal is initialized based on the list of mutually exclusive systems, and a data flow selection control menu is generated.

[0016] Based on the data stream selection control menu, the data stream of the electronic control unit is selected and controlled.

[0017] In one embodiment, the step of selecting and controlling the data stream of the electronic control unit based on the data stream selection control menu includes:

[0018] Receive data stream selection instructions from users;

[0019] The target data stream selected by the user and the target system where the target data stream is located are obtained according to the data stream instruction;

[0020] Based on the data flow selection control menu, the mutual exclusion system of the target system in the data flow selection control menu is set to a disabled state.

[0021] In one embodiment, the method further includes:

[0022] Receive modification operation instructions;

[0023] The mutual exclusion system list is modified according to the modification operation instruction, so that a modified data stream selection control menu is generated based on the modified mutual exclusion system list.

[0024] In one embodiment, the data stream selection control method is applied to the vehicle end, and the method includes:

[0025] Scan the controller area network bus of the target vehicle, obtain the electronic control unit on each controller area network bus, and obtain the corresponding system information of the electronic control unit;

[0026] The corresponding system information of the electronic control unit is sent to the diagnostic terminal, so that the diagnostic terminal can configure a list of mutually exclusive systems based on the system information of the electronic control unit and select and control the data flow of the electronic control unit.

[0027] In one embodiment, the step of scanning the controller area network (CLAN) bus of the target vehicle, acquiring the electronic control units (ECUs) on each CLAN bus, and obtaining the corresponding data streams of the ECUs includes:

[0028] Initialize the target vehicle's multithreading;

[0029] The bus information of the controller area network (CLAN) bus of the target vehicle is obtained by scanning the CLAN bus of the target vehicle using a multi-threaded method.

[0030] Analyze the bus information to obtain the electronic control units on each controller area network bus and obtain the corresponding data stream of the electronic control units.

[0031] Furthermore, to achieve the above objectives, this application also proposes a data stream selection control device, which includes:

[0032] The information receiving module is used to receive corresponding system information from the electronic control unit on the controller area network bus sent by the vehicle.

[0033] The list configuration module is used to configure the mutual exclusion system list of the corresponding controller area network bus according to the system information of the electronic control unit;

[0034] The selection control module is used to select and control the data flow of the electronic control unit based on the list of mutually exclusive systems.

[0035] In addition, to achieve the above objectives, this application also proposes a data stream selection control device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the data stream selection control method as described above.

[0036] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the data flow selection control method described above.

[0037] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the data flow selection control method described above.

[0038] One or more technical solutions proposed in this application have at least the following technical effects:

[0039] This application proposes a data stream selection control method, apparatus, device, and storage medium. It receives system information from an electronic control unit (ECU) on a controller area network (Controller Area Network) bus sent by a vehicle. Based on the ECU's system information, it configures a mutual exclusion system list for the corresponding ECU bus. Then, it selects and controls the data stream of the ECU based on the mutual exclusion system list. By configuring the mutual exclusion system list for the corresponding ECU bus and selecting and controlling the ECU's data stream based on this list, it ensures that no communication errors occur when refreshing multiple system data streams, improving data stream viewing efficiency and enhancing user experience. Attached Figure Description

[0040] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0041] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 A flowchart illustrating the data flow selection control method of this application in Embodiment 1;

[0043] Figure 2 A flowchart illustrating the second embodiment of the data flow selection control method of this application;

[0044] Figure 3 This is a schematic diagram of the module structure of the data flow selection control device in an embodiment of this application;

[0045] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the data flow selection control method in the embodiments of this application.

[0046] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0047] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0048] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0049] The main solution of this application embodiment is: receiving the corresponding system information of the electronic control unit on the controller local area network bus sent by the vehicle end; configuring the mutual exclusion system list of the corresponding controller local area network bus according to the system information of the electronic control unit; and selecting and controlling the data flow of the electronic control unit based on the mutual exclusion system list.

[0050] When using diagnostic equipment to diagnose a vehicle, it is necessary to view data streams across systems. However, when selecting data streams from multiple systems, there may be mutual exclusion between systems on the same CAN (Controller Area Network) bus. This means that the data streams of two mutually exclusive systems cannot be viewed simultaneously. Therefore, it is necessary to control the selection of mutually exclusive systems.

[0051] The current solution lacks restrictions on multiple system selection, leading to issues when refreshing data streams from multiple systems. This can result in CAN bus communication failures, refresh failures, or delays in data refresh due to frequent system switching, followed by a user notification that the selected systems cannot be accessed simultaneously. This fails to address the problem of viewing multiple system data streams under mutually exclusive conditions. Therefore, a solution that allows for data stream selection control in the event of system mutual exclusion is urgently needed.

[0052] This application configures a mutual exclusion system list for the corresponding controller LAN bus, and selects and controls the data stream of the electronic control unit based on the mutual exclusion system list. This ensures that no refresh communication abnormalities occur when refreshing multiple system data streams, improves the efficiency of data stream viewing, and enhances the user experience.

[0053] In this embodiment, for ease of description, the following description will focus on the identification data stream selection control device as the execution subject.

[0054] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or data stream selection and control device capable of performing the above functions. The following description uses a data stream selection and control device as an example to illustrate this embodiment and the subsequent embodiments.

[0055] Based on this, embodiments of this application provide a data flow selection control method, referring to... Figure 1 , Figure 1This is a flowchart illustrating the first embodiment of the data flow selection control method of this application, which is applied to the diagnostic end.

[0056] In this embodiment, the data stream selection control method includes steps S10 to S30:

[0057] Step S10: Receive the corresponding system information from the electronic control unit on the controller area network bus sent by the vehicle.

[0058] It should be noted that the diagnostic terminal refers to external devices or software that are directly or indirectly connected to the vehicle, such as diagnostic instruments or diagnostic programs in computers. They communicate with the vehicle through an interface to perform operations such as fault detection, performance monitoring, data recording, and analysis.

[0059] Additionally, it should be noted that the vehicle terminal typically refers to a system or device installed on a vehicle to monitor the vehicle's operating status in real time, collect vehicle data, and transmit this data to external devices or cloud servers for analysis and processing via specific methods (such as Bluetooth, Wi-Fi, mobile networks, etc.).

[0060] Additionally, it should be noted that the Controller Area Network (CAN) bus refers to the CAN bus, a serial communication protocol primarily used to achieve real-time and reliable data communication between nodes in a distributed system. In automotive environments, it serves as a microcontroller communication interface, exchanging information between various electronic control units (ECUs) to form an automotive electronic control network. Currently, CAN buses are widely used in automotive electronics, industrial automation, marine engineering, medical equipment, and many other fields. It features high reliability (the Controller Area Network (CAN) bus uses a two-wire serial communication method, which has strong error detection and anti-interference capabilities, and can work stably in high-noise interference environments), multi-master control (the CAN bus supports multi-master operation mode, that is, any node on the bus can send messages when idle, improving the system's flexibility and real-time performance), long-distance communication (the CAN bus has a long communication distance, up to 10 kilometers, suitable for long-distance communication needs), high speed (the CAN bus has a high communication rate, up to 1Mbps, which can meet the needs of high-speed data transmission), and good scalability (the CAN bus system is easy to expand, and adding new nodes does not require changing the software and hardware configuration of existing nodes).

[0061] Additionally, it should be noted that the Electronic Control Unit (ECU) is a microcomputer controller specifically designed for automobiles. It acts as the brain of the vehicle. The ECU's main function is to receive signals from various sensors, such as engine speed, intake air volume, coolant temperature, and oil pressure. It then processes these signals according to a predetermined program and finally sends control commands to the actuators to control various vehicle functions. These functions include, but are not limited to, engine control, fuel injection, ignition control, emission control, transmission control, and vehicle stability control.

[0062] Additionally, it should be noted that the system information corresponding to the electronic control unit refers to the information of the system corresponding to the electronic control unit, including but not limited to the system name, system abbreviation, system identifier ID, and the data flow information contained in the system (data flow name, data flow type, and unit).

[0063] More specifically, a vehicle may have multiple controller area networks (CANs). Traditional gasoline-powered vehicles may be equipped with around five CAN buses, while pure electric vehicles may have more and more complex CAN bus systems. Each CAN may have multiple electronic control units (ECUs), each with its own system and system information. The number of CANs and ECUs depends on the vehicle's design, manufacturer, and functional requirements. These ECUs include, but are not limited to, the engine control unit (primarily responsible for engine control, including fuel injection, ignition control, and emission control), the transmission control unit (responsible for transmission control, ensuring that the transmission can shift gears appropriately according to driving conditions and driver needs), the brake control unit (responsible for braking system control, including the implementation of functions such as anti-lock braking system and electronic stability program), and the body control unit (primarily responsible for controlling the body's electrical equipment, such as lights, wipers, door locks, and windows).

[0064] Specifically, the vehicle-side uses multi-threaded scanning of the target vehicle's controller area network (CAN) bus to obtain the electronic control units (ECUs) connected to each CAN bus. It then reads the corresponding system and system information for each ECU, including but not limited to the system name, system abbreviation, system identifier ID, and data stream information (data stream name, data stream type, and unit). The vehicle-side then sends the corresponding system information of the ECU to the diagnostic end, which receives the system information from the vehicle-side.

[0065] Step S20: Configure the mutual exclusion system list of the corresponding controller local area network bus according to the system information of the electronic control unit.

[0066] It should be noted that the mutual exclusion system list is a list of system identifiers used to record mutual exclusion phenomena between systems. Some electronic control units (ECUs) may have communication mutual exclusion relationships. This mutual exclusion relationship may arise for various reasons, such as security considerations, functional conflicts, or resource limitations. When one ECU is performing certain operations, it may be necessary for other mutually exclusive ECUs to suspend their activities or communications to ensure the normal operation and safety of the system. In this application, when there is mutual exclusion between two systems, it is not possible to simultaneously view the data streams of the two systems.

[0067] Specifically, first, the system information of the received electronic control unit is analyzed to determine the electronic control unit connected to each controller area network bus; then, based on the connected electronic control unit, the corresponding mutual exclusion system information of the electronic control unit is obtained, that is, the system ID that has a mutual exclusion relationship with the electronic control unit is determined, and the system IDs of the systems that have a mutual exclusion relationship with the system corresponding to the electronic control unit are added to the mutual exclusion system list of that system. Finally, each system has a corresponding mutual exclusion system list.

[0068] More specifically, determining whether mutual exclusion exists between systems can be done through the following steps: First, understand the function and task of the corresponding electronic control units (ECUs) within the system, clarifying the specific function and task of each ECU in the vehicle system. Different ECUs may be responsible for different vehicle subsystems, such as engine control, transmission control, and body control. Next, identify whether there are shared resources between the ECUs, such as sensor data, actuator control signals, and bus communication bandwidth. The existence of shared resources is the basis for mutual exclusion.

[0069] Then, on the one hand, we analyze the communication and bus architecture to understand the communication protocols used between electronic control units (such as CAN, LIN, etc.) and how these protocols manage message transmission, priority, and conflict resolution; on the other hand, we study the connection methods and topology of electronic control units in the vehicle bus network, which helps to understand how electronic control units communicate with each other and the possible communication conflicts and synchronization problems.

[0070] On the other hand, the mutual exclusion control mechanism can be examined to check whether the electronic control unit (ECU) software implements mutexes, semaphores, or other synchronization mechanisms to control access to shared resources. These mechanisms are typically used to ensure that only one ECU can access a specific resource or perform a specific task at a time. Analysis should also be conducted on how the ECU handles interrupts, especially when multiple interrupts occur simultaneously, and how the ECU allocates processing priorities and prevents critical tasks from being interrupted. Interrupt management strategies can directly affect the mutual exclusion relationships between ECUs.

[0071] On the other hand, one can also consult the electronic control unit (ECU) software documentation and code, carefully reading the ECU's software design documents, requirements specifications, etc., to understand the system's definition and implementation of mutual exclusion relationships. These documents typically provide detailed information about the ECU's functions, resource access, task scheduling, and communication protocols; reviewing the parts of the ECU's source code related to mutual exclusion control helps in gaining a deeper understanding of how mutual exclusion relationships between ECUs are implemented at the software level.

[0072] Step S30: Selectively control the data flow of the electronic control unit based on the list of mutually exclusive systems.

[0073] Specifically, the diagnostic interface on the diagnostic terminal allows users to select and view data streams. The diagnostic terminal initializes the interface based on the generated list of mutually exclusive systems, displaying a data stream selection control menu. This menu includes, but is not limited to, the data stream name, data stream ID, the system name of the system containing the data stream, and the system ID of the system containing the data stream. Users can also set the maximum number of selectable systems and the maximum number of data streams selectable per system within the data stream selection control menu on the diagnostic interface.

[0074] When a user selects a data stream in the data stream selection control menu on the diagnostic interface, the device obtains the system ID of the data stream, determines the mutual exclusion system of the system by comparing it with the list of mutual exclusion systems, and sets the mutual exclusion system to a disabled state, that is, a state that cannot be clicked and the data stream under the mutual exclusion system cannot be selected.

[0075] When the number of systems selected in the data stream selection control menu reaches the maximum number of selectable systems, the device will disable other systems that have not selected a data stream, making them unclickable.

[0076] In any system with selectable data streams, when the number of selected data streams reaches the maximum number of selectable data streams, the device will disable the other unselected data streams, making them unselectable.

[0077] This embodiment, through the above-described scheme, receives system information of the electronic control unit (ECU) on the Controller Area Network (CLAN) bus from the vehicle at the diagnostic end; configures a mutual exclusion system list for the corresponding CLAN bus based on the ECU's system information; and selects and controls the data stream of the ECU based on the mutual exclusion system list. By configuring the mutual exclusion system list for the corresponding CLAN bus and selecting and controlling the data stream of the ECU based on the mutual exclusion system list, it is possible to ensure that no refresh communication anomalies occur when refreshing multiple system data streams, thereby improving data stream viewing efficiency and enhancing user experience.

[0078] Based on the above implementation scheme, in one feasible implementation, configuring the mutual exclusion system list of the corresponding controller local area network bus according to the system information of the electronic control unit includes steps S21 to S23:

[0079] Step S21: Based on the system information of the electronic control unit, determine the electronic control unit connected to each controller area network bus.

[0080] Specifically, the equipment analyzes the system information received from the electronic control unit. The system information includes, but is not limited to, the system name, system abbreviation, system identifier ID, and data flow information (data flow name, data flow type, and unit) of the system corresponding to the electronic control unit, and determines the electronic control unit connected to each controller area network bus.

[0081] Step S22: Based on the connected electronic control unit, obtain the corresponding mutual exclusion system information of the electronic control unit.

[0082] Specifically, the system information of the received electronic control unit is first analyzed to determine the electronic control unit connected to each controller area network bus; then, based on the connected electronic control unit, the corresponding mutual exclusion system information of the electronic control unit is obtained, that is, the system ID that has a mutual exclusion relationship with the electronic control unit is determined.

[0083] Step S23: Based on the mutual exclusion system information of the electronic control unit, configure and generate a mutual exclusion system list for the corresponding controller area network bus.

[0084] Specifically, after determining the system ID of the system that has a mutually exclusive relationship with the electronic control unit, the system IDs of the systems that have a mutually exclusive relationship with the system corresponding to the electronic control unit are added to the mutually exclusive system list of that system. In the end, each system has a corresponding mutually exclusive system list.

[0085] Based on the above implementation scheme, in one feasible implementation, the selection and control of the data stream of the electronic control unit based on the mutual exclusion system list includes steps S31 to S32:

[0086] Step S31: Initialize the diagnostic interface of the diagnostic terminal based on the mutual exclusion system list and generate a data flow selection control menu.

[0087] Specifically, based on the list of mutually exclusive systems, available data stream information, including data stream name, data type, and unit, is parsed from the documents or configuration files of the corresponding electronic control units in the list. Based on the parsed data stream information, a data stream selection control menu is constructed in the diagnostic interface. This menu can be a drop-down list, a checkbox group, or a tree structure, depending on the number and type of data streams.

[0088] Step S32: Based on the data stream selection control menu, select and control the data stream of the electronic control unit.

[0089] Specifically, when a user selects a data stream in the data stream selection control menu on the diagnostic interface, the device will obtain the system ID of the data stream, determine the mutual exclusion system of the system by comparing it with the mutual exclusion system list, set the mutual exclusion system to a disabled state, make it unclickable, and prevent the selection of data streams under the mutual exclusion system.

[0090] When the number of systems selected in the data stream selection control menu reaches the maximum number of selectable systems, the device will disable other systems that have not selected a data stream, making them unclickable.

[0091] In any system with selectable data streams, when the number of selected data streams reaches the maximum number of selectable data streams, the device will disable the other unselected data streams, making them unselectable.

[0092] Based on the above implementation scheme, in one feasible implementation, the step of selecting and controlling the data stream of the electronic control unit based on the data stream selection control menu includes steps S321 to S323:

[0093] Step S321: Receive the data stream selection instruction sent by the user.

[0094] It should be noted that the data stream selection instruction refers to the instruction issued by the user and received by the diagnostic interface of the diagnostic terminal to select the data stream.

[0095] Specifically, the user issues a data stream selection command, selects the data stream to be viewed from the data stream selection control menu, and the diagnostic interface receives the data stream selection command issued by the user.

[0096] Step S322: Obtain the target data stream selected by the user and the target system where the target data stream is located according to the data stream instruction.

[0097] Specifically, after receiving the instruction, the diagnostic end needs to parse the instruction content to determine the target data stream that the user wants to select and the target system in which it is located; based on the parsing result, the system queries and obtains the target data stream selected by the user; the device identifies the target system in which the target data stream is located.

[0098] Step S323: Based on the data flow selection control menu, set the mutual exclusion system of the target system in the data flow selection control menu to a disabled state.

[0099] Specifically, after identifying the target system where the target data stream is located, the device obtains the system ID of the target system, compares it with the list of mutually exclusive systems, determines the mutually exclusive systems of the target system, and sets the mutually exclusive systems of the target system in the data stream selection control menu to a disabled state.

[0100] This embodiment, through the above-described scheme, ensures that only one system in the mutual exclusion system is active and selectable by setting the mutual exclusion system of the target system in the data flow selection control menu to a disabled state. This avoids communication anomalies caused by simultaneously selecting data flows under the mutual exclusion system, prevents data conflicts, and improves system efficiency. Furthermore, automatically setting the mutual exclusion system to a disabled state after selection also improves the user experience.

[0101] Based on the above implementation scheme, in one feasible implementation method, the data flow selection control method further includes steps S40 to S50:

[0102] Step S40: Receive modification operation instruction.

[0103] Step S50: Modify the mutual exclusion system list according to the modification operation instruction, so as to generate a modified data stream selection control menu based on the modified mutual exclusion system list.

[0104] Specifically, the modification operation instruction is an instruction on how to modify the list of mutual exclusion systems; the modified list of mutual exclusion systems is based on the original list of mutual exclusion systems, modified according to the changes caused by specific realities, and then the diagnostic end initializes according to the modified list of mutual exclusion systems to obtain a new data flow selection control menu; the modification operation includes, but is not limited to, adding, deleting, and modifying menu status, etc., used to modify the list of mutual exclusion systems according to specific realities, and thus generate the corresponding data flow selection control menu.

[0105] This embodiment, through the above-described scheme, specifically modifies the list of mutually exclusive systems according to the actual situation. The diagnostic end then obtains the data stream selection control menu based on the modified list of mutually exclusive systems, which can effectively adapt to changes in the data stream viewing scenario and improve the precise control of data stream viewing permissions.

[0106] Reference Figure 2 , Figure 2 This is a flowchart illustrating a second embodiment of the data flow selection control method of this application, which is applied to the vehicle side.

[0107] Based on the first embodiment, a second embodiment of this application is proposed. The difference between the second embodiment and the first embodiment is as follows:

[0108] Based on the above implementation scheme, in one feasible implementation, the data flow selection control method is applied to the vehicle end, and the method includes steps S60 to S70:

[0109] Step S60: Scan the controller area network bus of the target vehicle, obtain the electronic control unit on each controller area network bus, and obtain the corresponding system information of the electronic control unit.

[0110] Specifically, the target vehicle's multi-threading is initialized, and the target vehicle's controller area network (CLAN) bus is scanned through the multi-threading to obtain the CLAN bus information. The bus information is analyzed to obtain the electronic control units on each CLAN bus, and the system information of the electronic control units is obtained through analysis.

[0111] Step S70: Send the corresponding system information of the electronic control unit to the diagnostic terminal so that the diagnostic terminal can configure a mutual exclusion system list according to the system information of the electronic control unit and select and control the data flow of the electronic control unit.

[0112] Specifically, the corresponding system information of the electronic control unit is sent to the diagnostic terminal. After receiving the system information, the diagnostic terminal determines the electronic control unit connected to each controller area network bus based on the system information of the electronic control unit. Based on the connected electronic control units, the corresponding mutual exclusion system information of the electronic control unit is obtained. Based on the mutual exclusion system information of the electronic control unit, the mutual exclusion system list of the corresponding controller area network bus is generated.

[0113] Based on the above implementation scheme, in one feasible implementation, the step of scanning the controller area network bus of the target vehicle, obtaining the electronic control unit on each controller area network bus, and obtaining the corresponding data stream of the electronic control unit includes steps S61 to S63:

[0114] Step S61: Initialize the multithreading of the target vehicle.

[0115] Specifically, firstly, a multi-threaded architecture is designed based on the number and complexity of the target vehicle's Controller Area Network (CAN) buses. Each thread can be responsible for scanning one or more CAN channels. Threads are created using appropriate programming languages ​​(such as C / C++, Python, etc.) and libraries (such as SocketCAN, python-can, etc.). Then, thread parameters are configured, setting the CAN interface (such as can0, can1, etc.), baud rate (such as 500kbps, 1Mbps, etc.), and other necessary communication parameters for each thread. Necessary resources, such as memory and file handles, are allocated to each thread. Next, the vehicle's CAN buses are assigned to different threads, ensuring that at least one thread is responsible for each bus. Finally, the threads are started, initializing all threads and initiating their CAN bus scanning tasks.

[0116] Step S62: Scan the controller local area network (CLAN) bus of the target vehicle using multi-threaded scanning to obtain the bus information of the CLAN bus.

[0117] Specifically, all threads are started to begin parallel scanning. Each thread scans the assigned Controller Area Network (CLAN) bus, listens for communications on the bus, and collects information about the CLAN bus, including bus load, error frames, remote transmission requests, etc. The bus information is analyzed to identify all electronic control units connected to the CLAN bus.

[0118] Step S63: Analyze the bus information, obtain the electronic control unit on each controller area network bus, and obtain the corresponding data stream of the electronic control unit.

[0119] Specifically, the bus information is analyzed to identify all electronic control units connected to the controller area network bus. The information of the electronic control units is analyzed to obtain the data stream of each electronic control unit under the corresponding system. The acquired data stream is analyzed to extract useful information, such as vehicle status and performance parameters.

[0120] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the data flow selection control method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0121] This application also provides a data stream selection control device, please refer to... Figure 3 The data stream selection control device includes:

[0122] Information receiving module 301 is used to receive corresponding system information from the electronic control unit on the controller area network bus sent by the vehicle.

[0123] The list configuration module 302 is used to configure the mutual exclusion system list of the corresponding controller area network bus according to the system information of the electronic control unit;

[0124] The selection control module 303 is used to select and control the data stream of the electronic control unit based on the list of mutually exclusive systems.

[0125] The data stream selection control device provided in this application, employing the data stream selection control method described in the above embodiments, can solve the technical problem of abnormal data stream viewing when multiple systems are mutually exclusive. Compared with the prior art, the beneficial effects of the data stream selection control device provided in this application are the same as those of the data stream selection control method described in the above embodiments, and other technical features in the data stream selection control device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0126] This application provides a data flow selection control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the data flow selection control method in the first embodiment described above.

[0127] The following is for reference. Figure 4 The diagram illustrates a structural schematic of a data stream selection control device suitable for implementing embodiments of this application. The data stream selection control device in embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptor), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The data flow selection control device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0128] like Figure 4As shown, the data flow selection control device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the data flow selection control device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the data flow selection control device to communicate wirelessly or wiredly with other devices to exchange data. Although a data flow selection control device with various systems is shown in the figure, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.

[0129] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0130] The data stream selection control device provided in this application, employing the data stream selection control method described in the above embodiments, can solve the technical problem of abnormal data stream viewing when multiple systems are mutually exclusive. Compared with the prior art, the beneficial effects of the data stream selection control device provided in this application are the same as those of the data stream selection control method described in the above embodiments, and other technical features of this data stream selection control device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0131] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0132] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0133] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the data flow selection control method in the above embodiments.

[0134] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0135] The aforementioned computer-readable storage medium may be included in the data stream selection control device; or it may exist independently and not assembled into the data stream selection control device.

[0136] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by the data stream selection control device, the data stream selection control device: receives the corresponding system information of the electronic control unit on the controller local area network bus sent by the vehicle end; configures the mutual exclusion system list of the corresponding controller local area network bus according to the system information of the electronic control unit; and performs selection control on the data stream of the electronic control unit based on the mutual exclusion system list.

[0137] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smallport, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0138] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0139] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0140] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described data stream selection control method. This solves the technical problem of abnormal data stream viewing when multiple systems are mutually exclusive. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the data stream selection control method provided in the above embodiments, and will not be repeated here.

[0141] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the data flow selection control method described above.

[0142] The computer program product provided in this application can solve the technical problem of abnormal data stream viewing when multiple systems are mutually exclusive. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the data stream selection and control method provided in the above embodiments, and will not be repeated here.

[0143] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A data stream selection control method, characterized in that, The data flow selection control method is applied to the diagnostic end, and the method includes: Receive corresponding system information from the electronic control unit on the controller area network bus sent by the vehicle; Configure the mutual exclusion system list for the corresponding controller local area network bus based on the system information of the electronic control unit; The data flow of the electronic control unit is selected and controlled based on the list of mutually exclusive systems. The step of configuring the mutual exclusion system list of the corresponding controller area network bus based on the system information of the electronic control unit includes: Based on the system information of the electronic control unit, determine the electronic control unit connected to each controller area network bus; Based on the connected electronic control units, the corresponding mutual exclusion system information of the electronic control units is obtained. The mutual exclusion system information includes whether there are shared resources between the electronic control units, whether there are communication conflicts and synchronization problems between the electronic control units, and the mutual exclusion control mechanism between the electronic control units. Based on the mutual exclusion system information of the electronic control unit, configure and generate a list of mutual exclusion systems for the corresponding controller area network bus.

2. The method as described in claim 1, characterized in that, The step of selecting and controlling the data stream of the electronic control unit based on the mutual exclusion system list includes: The diagnostic interface of the diagnostic terminal is initialized based on the list of mutually exclusive systems, and a data flow selection control menu is generated. Based on the data stream selection control menu, the data stream of the electronic control unit is selected and controlled.

3. The method as described in claim 2, characterized in that, The step of selecting and controlling the data stream of the electronic control unit based on the data stream selection control menu includes: Receive data stream selection instructions from users; The target data stream selected by the user and the target system where the target data stream is located are obtained according to the data stream selection instruction; Based on the data flow selection control menu, the mutual exclusion system of the target system in the data flow selection control menu is set to a disabled state.

4. The method as described in claim 1, characterized in that, The method further includes: Receive modification operation instructions; The mutual exclusion system list is modified according to the modification operation instruction, so that a modified data stream selection control menu is generated based on the modified mutual exclusion system list.

5. A data stream selection control method, characterized in that, The data stream selection control method is applied to the vehicle end, and the method includes: Scan the controller area network bus of the target vehicle, obtain the electronic control unit on each controller area network bus, and obtain the corresponding system information of the electronic control unit; The corresponding system information of the electronic control unit is sent to the diagnostic terminal, so that the diagnostic terminal can configure a mutual exclusion system list according to the system information of the electronic control unit and select and control the data flow of the electronic control unit. The step of configuring a mutual exclusion system list based on the system information of the electronic control unit at the diagnostic end includes: The diagnostic terminal determines the electronic control unit connected to each controller local area network bus based on the system information of the electronic control unit. Based on the connected electronic control units, the corresponding mutual exclusion system information of the electronic control units is obtained. The mutual exclusion system information includes whether there are shared resources between the electronic control units, whether there are communication conflicts and synchronization problems between the electronic control units, and the mutual exclusion control mechanism between the electronic control units. Based on the mutual exclusion system information of the electronic control unit, configure and generate a list of mutual exclusion systems for the corresponding controller area network bus.

6. The method as described in claim 5, characterized in that, The steps of scanning the controller area network (CLAN) bus of the target vehicle, acquiring the electronic control units (ECUs) on each CLAN bus, and obtaining the corresponding system information of the ECUs include: Initialize the target vehicle's multithreading; The bus information of the controller area network (CLAN) bus of the target vehicle is obtained by scanning the CLAN bus of the target vehicle using a multi-threaded method. By analyzing the bus information, the electronic control units on each controller area network bus are obtained, and the corresponding system information of the electronic control units is obtained.

7. A data stream selection control device, characterized in that, The device includes: The information receiving module is used to receive corresponding system information from the electronic control unit on the controller area network bus sent by the vehicle. The list configuration module is used to configure the mutual exclusion system list of the corresponding controller area network bus according to the system information of the electronic control unit; The selection control module is used to select and control the data stream of the electronic control unit based on the list of mutually exclusive systems. The list configuration module is further configured to determine the electronic control units connected to each controller local area network bus based on the system information of the electronic control unit. Based on the connected electronic control units, the corresponding mutual exclusion system information of the electronic control units is obtained. The mutual exclusion system information includes whether there are shared resources between the electronic control units, whether there are communication conflicts and synchronization problems between the electronic control units, and the mutual exclusion control mechanism between the electronic control units. Based on the mutual exclusion system information of the electronic control unit, configure and generate a list of mutual exclusion systems for the corresponding controller area network bus.

8. A data stream selection control device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the data stream selection control method as described in any one of claims 1 to 6.

9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the data flow selection control method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • On-board diagnostic method, device and system

    WO2023205916A1