CN-122027387-A - Vehicle-mounted communication control system and device based on FlexRay bus
Abstract
The invention relates to the technical field of vehicle-mounted communication control, and provides a vehicle-mounted communication control system and device based on a FlexRay bus, wherein the system comprises the following steps that a communication node module is configured in a first time slot of a main communication channel through a main controller, real-time control data are written into the communication node module to execute a real-time control instruction, and non-real-time control data generated based on the real-time control data are written into a second time slot to execute the non-real-time control instruction; and the master controller starts a synchronous mechanism, acquires non-real-time data from the storage unit when the master channel occupies a first time slot, writes the non-real-time data into the slave channel to execute non-real-time control, and acquires real-time data to execute real-time control when the master channel occupies a second time slot. The system also comprises protocol conversion, data verification and storage functions, and periodic switching is realized through a time slot switching module. The invention can improve the reliability and response speed of vehicle-mounted communication and enhance the flexibility and safety of the system.
Inventors
- ZHOU YOU
- Ding Kani
- ZHANG JIGUI
- YANG GUOZHI
- LIU XUAN
Assignees
- 贵阳信息科技学院
Dates
- Publication Date
- 20260512
- Application Date
- 20251224
Claims (10)
- 1. A FlexRay bus based vehicle communication control system, characterized in that the system performs the following steps: the method comprises the steps that a communication node module is configured in a first time slot and a second time slot of a main communication channel through a main controller, received real-time control data are written into a storage unit and are written into the communication node module of the first time slot, a real-time control instruction is executed, non-real-time control data generated based on the real-time control data are written into the storage unit and are written into the communication node module of the second time slot, and the non-real-time control instruction is executed; Activating and configuring a new communication slot on the slave communication channel; Configuring a communication node module on a new time slot of the slave communication channel by the master controller; And when the main communication channel occupies the second time slot, acquiring the real-time control data from the storage unit, writing the real-time control data into the communication node module configured by the slave communication channel, and executing the real-time control instruction.
- 2. The FlexRay bus-based vehicle communication control system of claim 1 further comprising generating non-real time control data based on the real time control data by a protocol conversion relationship of the real time control data and the non-real time control data.
- 3. The FlexRay bus-based vehicle-mounted communication control system according to claim 2, further comprising the steps of performing parameter adjustment on corresponding real-time control data or non-real-time control data on the basis of the received configuration instruction on the main communication channel, and performing updated real-time control or non-real-time control; Obtaining the adjusted real-time control data or the non-real-time control data or the real-time control data corresponding to the non-real-time control data through the protocol conversion relation between the real-time control data and the non-real-time control data; Writing the obtained non-real-time control data or real-time control data into a communication node module of a corresponding time slot, and executing updated non-real-time control or real-time control; And writing the adjusted real-time control data or non-real-time control data and the corresponding non-real-time control data or real-time control data into the storage unit.
- 4. The vehicle-mounted communication control system based on the FlexRay bus according to claim 3, wherein the specific step of writing real-time control data or non-real-time control data in the communication node module is that a communication protocol stack is loaded through a main controller, and a data writing controller and a bus communication controller are integrated in the protocol stack; Simultaneously, the type identifier of the data stored in the storage unit is acquired through the main controller, and real-time control data or non-real-time control data is written in a communication protocol stack through the data writing controller according to the acquired type identifier, wherein when the acquired type identifier is an initial configuration identifier, the received real-time control data is written in the protocol stack of the first time slot of the main communication channel through the data writing controller, and the type identifier is marked as a real-time data identifier; When the acquired type identifier is a real-time data identifier, acquiring real-time control data from a storage unit through a bus communication controller, and writing the real-time control data into a protocol stack through a data writing controller; And when the acquired type identifier is a non-real-time data identifier, acquiring non-real-time control data from the storage unit through the bus communication controller, and writing the non-real-time control data into a protocol stack through the data writing controller.
- 5. The vehicle-mounted communication control system based on the FlexRay bus according to claim 1, wherein an event trigger is set in the slave communication channel and is used for capturing an instruction issued by the master controller to write real-time control data or non-real-time control data in a communication node module configured in the slave communication channel.
- 6. The vehicle-mounted communication control system based on the FlexRay bus according to claim 1, further comprising the steps of verifying and storing real-time control data of a first time slot and non-real-time control data of a second time slot of the main communication channel, wherein the verification content comprises timeliness verification, integrity verification and protocol compliance verification by the verification controller; When the verification result fails, the main controller triggers an interrupt signal and generates an error code, and according to the error code, the real-time control data of the first time slot is modified through the data writing controller, and the modified real-time control data is verified again; when the verification result is passed, the main controller starts a synchronous mechanism to verify the non-real-time control data of the second time slot; until the control data verification results of all time slots of the main communication channel pass; And saving the control data of all the time slots passing verification on the main communication channel to a storage unit through a storage controller.
- 7. The vehicle-mounted communication control device based on the FlexRay bus is characterized by comprising a main controller module, a communication interface module and a storage unit; the communication interface module comprises a main communication channel interface and a slave communication channel interface; The master communication channel interface and the slave communication channel interface are both used for configuring a communication node module, and the communication node module comprises a data writing controller and a bus communication controller; The main controller module is used for controlling the communication node module to be configured in a first time slot and a second time slot of a main communication channel, and simultaneously, the main controller module is used for controlling the received real-time control data to be written into a storage unit, a data writing controller of the communication node module in the first time slot of the main communication channel is used for controlling the communication node module which writes the real-time control data into the first time slot and executing a real-time control instruction; The master controller module is also used for activating and configuring a new communication time slot on the slave communication channel, and configuring a communication node module on the new time slot; the main controller module is also used for starting a synchronous mechanism; And when the main communication channel occupies the second time slot, the bus communication controller configured by the slave communication channel is used for acquiring real-time control data from the storage unit, and the communication node module configured by the slave communication channel is written into the data writing controller configured by the slave communication channel to execute the real-time control instruction.
- 8. The FlexRay bus-based vehicle-mounted communication control device according to claim 7, further comprising a data writing controller, wherein the specific workflow of the data writing controller is as follows, on the main communication channel, based on the received configuration instruction, performing parameter adjustment on corresponding real-time control data or non-real-time control data, and performing updated real-time control or non-real-time control; Obtaining the adjusted real-time control data or the non-real-time control data or the real-time control data corresponding to the non-real-time control data through the protocol conversion relation between the real-time control data and the non-real-time control data; Writing the obtained non-real-time control data or real-time control data into a communication node module of a corresponding time slot, and executing updated non-real-time control or real-time control; And writing the adjusted real-time control data or non-real-time control data and the corresponding non-real-time control data or real-time control data into the storage unit.
- 9. The vehicle-mounted communication control device based on the FlexRay bus according to claim 7, further comprising an authentication controller and a storage controller, wherein the specific workflow of the authentication control module is as follows, the authentication controller is used for authenticating the real-time control data of the first time slot, and the authentication content comprises timeliness authentication, integrity authentication and protocol compliance authentication; When the verification result fails, the main controller module triggers an interrupt signal and generates an error code, and according to the error code, the real-time control data of the first time slot is modified through the data writing controller, and the modified real-time control data is verified again; when the verification result is passed, the main controller starts a synchronous mechanism to verify the non-real-time control data of the second time slot; until the control data verification results of all time slots of the main communication channel pass; The memory controller is used for storing the control data of all the time slots passing the verification on the main communication channel to the memory unit.
- 10. The FlexRay bus based vehicle communication control unit according to claim 7, further comprising a time slot switching module for periodically switching the first time slot and the second time slot of the main communication channel.
Description
Vehicle-mounted communication control system and device based on FlexRay bus Technical Field The invention relates to the technical field of vehicle-mounted communication control, in particular to a vehicle-mounted communication control system and device based on a FlexRay bus. Background In the field of automotive electronics today, the importance of vehicular communication systems is becoming increasingly prominent with increasing sophistication of vehicle functions. Traditional vehicle-mounted communication systems mainly depend on technologies such as CAN buses, and the like, and the requirements of modern automobiles on Advanced Driving Assistance Systems (ADAS), automatic driving, networking and other complex applications are difficult to meet in terms of data transmission rate, real-time performance and reliability. For example, CAN buses may suffer from data delays and packet losses when handling high frequency real-time data interactions, which may lead to safety risks in an autopilot scenario. Furthermore, as the number of vehicle Electronic Control Units (ECUs) increases, the problem of synchronization and coordination between communication nodes becomes more complex. The conventional communication system has a certain limitation in multi-node synchronous control, and accurate timing control and data synchronization are difficult to realize. The FlexRay bus has received attention as an emerging vehicle communication technology with its high bandwidth, high reliability and excellent real-time. It is capable of supporting multiple data transmission modes, including static and dynamic data transmission, which allows it greater flexibility in handling real-time and non-real-time data. The FlexRay bus enables precise timing control through a time-triggered communication mechanism, which is a significant advantage for automotive applications requiring strict synchronization. However, current vehicle-mounted communication control systems based on FlexRay buses have some challenges in practical applications. For example, how to achieve efficient data synchronization and switching between a master communication channel and a slave communication channel, and how to ensure data integrity and protocol compliance while ensuring data instantaneity are all issues that need to be addressed. In the process of realizing the embodiment of the invention, the inventor finds that at least the following problems or defects exist in the prior art, namely the existing vehicle-mounted communication control system based on the FlexRay bus is not perfect enough in data synchronization mechanism, especially in the process of data interaction between a master communication channel and a slave communication channel, the conditions of inconsistent data and disordered time sequence are easy to occur, in addition, the processing of real-time control data and non-real-time control data is not provided with an effective distinguishing and optimizing mechanism, so that the efficiency and the reliability of the system are influenced when the complex data are processed, and the existing system is insufficient in a data verification link, so that the timeliness, the integrity and the protocol compliance of the data are not comprehensively verified, and the stability and the safety of the whole communication system are influenced. Disclosure of Invention The invention provides a vehicle-mounted communication control system and device based on a FlexRay bus. In a first aspect of the present invention, there is provided a FlexRay bus-based vehicle-mounted communication control system comprising: the method comprises the steps that a communication node module is configured in a first time slot and a second time slot of a main communication channel through a main controller, received real-time control data are written into a storage unit and are written into the communication node module of the first time slot, a real-time control instruction is executed, non-real-time control data generated based on the real-time control data are written into the storage unit and are written into the communication node module of the second time slot, and the non-real-time control instruction is executed; Activating and configuring a new communication slot on the slave communication channel; Configuring a communication node module on a new time slot of the slave communication channel by the master controller; And when the main communication channel occupies the second time slot, acquiring the real-time control data from the storage unit, writing the real-time control data into the communication node module configured by the slave communication channel, and executing the real-time control instruction. Further, the method also comprises the step of generating the non-real-time control data based on the real-time control data through the protocol conversion relation between the real-time control data and the non-real-time control data. Further, the method comp