CN-121984889-A - Communication mode adjusting method and system
Abstract
The embodiment of the application provides a communication mode adjusting method and a communication mode adjusting system, wherein the method comprises the steps of responding to a received diagnosis request, entering a diagnosis communication mode, and sending the diagnosis communication request to a slave node, wherein the slave node determines according to request information carried in the diagnosis request, the diagnosis communication request is used for indicating the slave node to enter the diagnosis communication mode, a message scheduling mode is determined based on a response state of the slave node, the response state is used for indicating whether the slave node responds to the diagnosis communication request, the message scheduling mode comprises a diagnosis scheduling mode or an application scheduling mode, and the communication mode is adjusted based on the message scheduling mode, wherein the communication mode comprises the diagnosis communication mode corresponding to the diagnosis scheduling mode or the application communication mode corresponding to the application scheduling mode. The application solves the technical problem that the vehicle network in the prior art cannot meet the requirements of real-time performance and sudden fault processing.
Inventors
- ZENG XIAOTIAN
- LU SAI
- WANG ZHONGLIN
- LI JIANCAI
Assignees
- 奇瑞汽车股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260114
Claims (10)
- 1. A method of communication mode adjustment, the method comprising: Responding to a received diagnosis request, entering a diagnosis communication mode, and sending a diagnosis communication request to a slave node, wherein the slave node is determined according to request information carried in the diagnosis request, and the diagnosis communication request is used for indicating the slave node to enter the diagnosis communication mode; Determining a message scheduling mode based on a response state of the slave node, wherein the response state is used for indicating whether the slave node responds to the diagnosis communication request, and the message scheduling mode comprises a diagnosis scheduling mode or an application scheduling mode; and adjusting a communication mode based on the message scheduling mode, wherein the communication mode comprises the diagnosis communication mode corresponding to the diagnosis scheduling mode or the application communication mode corresponding to the application scheduling mode.
- 2. The method of claim 1, wherein prior to said determining a message scheduling pattern based on the response status of the slave node, the method further comprises: Transmitting header information of the diagnostic communication request to the slave node according to a first transmission frequency in a second period in response to not receiving a response message of the slave node in the first period, wherein the response message is used for indicating a response of the slave node to the diagnostic communication request, and the starting time of the second period is later than or equal to the ending time of the first period; responsive to not receiving the response message within the second time period, determining that the response status is not responsive to the diagnostic communication request.
- 3. The method of claim 1, wherein prior to said determining a message scheduling pattern based on the response status of the slave node, the method further comprises: In response to receiving a first response message of the slave node in a first time period or a second time period, starting a timer, and sending header information of the diagnostic communication request to the slave node according to a second sending frequency in a time period, wherein the first response message is used for indicating that the slave node is in a busy state, and the time period is longer than or equal to the time period of the second time period; updating the timer in response to receiving the first response message within the timed duration; And transmitting the header information to the slave node according to the second transmission frequency in the new time period until a second response message of the slave node is not received in a third time period, and determining that the response state is not in response to the diagnostic communication request, wherein the starting time of the third time period is the time for starting the timer, the time of the third time period is longer than the time period, and the second response message is used for indicating that the slave node receives the diagnostic communication request.
- 4. The method of claim 1, wherein prior to said determining a message scheduling pattern based on the response status of the slave node, the method further comprises: Responsive to receiving a second response message from the slave node within the first time period or the second time period or the third time period, determining the response status as responsive to the diagnostic communication request.
- 5. The method of claim 1, wherein the determining a message scheduling pattern based on the response status of the slave node comprises: If the response state indicates that the slave node does not respond to the diagnosis communication request, determining that the message scheduling mode is the application scheduling mode; And if the response state indicates that the slave node responds to the diagnosis communication request, determining that the message scheduling mode is the diagnosis scheduling mode.
- 6. The method of claim 1, wherein the diagnostic request comprises a first diagnostic request or a second diagnostic request, the first diagnostic request being a diagnostic request sent by an external diagnostic device, the second diagnostic request being a diagnostic request for a controller area network to switch to a local interconnect network.
- 7. The method of claim 6, wherein in response to receiving the diagnostic request, entering a diagnostic communication mode and transmitting the diagnostic communication request to the slave node comprises: And responding to the received second diagnosis request, entering the diagnosis communication mode, and sending the diagnosis communication request to the slave node based on a protocol stack strategy, wherein the protocol stack strategy is used for indicating the sending sequence and the sending time interval of the diagnosis communication request and the header information, and the sending time interval corresponding to the slave node is determined according to the functional attribute of the slave node.
- 8. The method according to any one of claims 1-7, further comprising: And performing fault detection in the diagnosis communication mode and generating a fault diagnosis code, wherein the fault diagnosis code carries remark information, and the remark information is used for indicating that a first node in the non-local internet does not allow fault detection during the diagnosis communication mode.
- 9. The method of claim 8, wherein the method further comprises: In the diagnosis communication mode, responding to the received fault detection information of a second node in the non-local interconnection network, and processing the fault detection information to obtain a fault detection result, wherein the priority of the second node is higher than that of the first node, and the fault detection information comprises cyclic redundancy check information and counter information; and sending the fault detection result to the second node.
- 10. A communication mode adjustment system, the system comprising: a master node for performing the communication mode adjustment method according to any one of the preceding claims 1 to 9; And the slave node is used for receiving the diagnosis communication request sent by the master node and sending a response message to the master node based on the diagnosis communication request.
Description
Communication mode adjusting method and system Technical Field The embodiment of the application relates to the technical field of vehicle-mounted network communication, in particular to a communication mode adjusting method and system. Background In the field of vehicle network communication technology, in particular in the use of local interconnect networks (Local Interconnect Network, LIN), cooperative control of diagnostic scheduling and application scheduling has always been an important component of the communication of automotive electronic control units (Electronic Control Unit, ECU). The LIN bus is widely used as a low-speed and low-cost vehicle-mounted network communication scheme for auxiliary communication networks in vehicles, such as door control and seat adjustment. However, the prior art has limitations in processing diagnosis and application scheduling switching of the LIN bus, for example, the conventional LIN bus cannot meet the requirements of real-time and sudden fault processing, so that the validity and reliability of the LIN bus under complex working conditions are limited. There is currently no good solution to the above problems. Disclosure of Invention The embodiment of the application provides a communication mode adjusting method and a communication mode adjusting system, which at least solve the technical problem that a vehicle network in the prior art cannot meet the requirements of real-time and sudden fault processing. According to one aspect of the embodiment of the application, a communication mode adjustment method is provided, and the communication mode adjustment method comprises the steps of responding to a received diagnosis request, entering a diagnosis communication mode and sending the diagnosis communication request to a slave node, wherein the slave node determines according to request information carried in the diagnosis request, the diagnosis communication request is used for indicating the slave node to enter the diagnosis communication mode, a message scheduling mode is determined based on a response state of the slave node, the response state is used for indicating whether the slave node responds to the diagnosis communication request, the message scheduling mode comprises a diagnosis scheduling mode or an application scheduling mode, and the communication mode is adjusted based on the message scheduling mode, wherein the communication mode comprises the diagnosis communication mode corresponding to the diagnosis scheduling mode or the application communication mode corresponding to the application scheduling mode. Further, before determining the message scheduling mode based on the response state of the slave node, the method further comprises, in response to not receiving the response message of the slave node in the first period of time, transmitting header information of the diagnostic communication request to the slave node according to the first transmission frequency in a second period of time, wherein the response message is used for representing the response of the slave node to the diagnostic communication request, the beginning time of the second period of time is later than or equal to the ending time of the first period of time, and in response to not receiving the response message in the second period of time, determining that the response state is not responding to the diagnostic communication request. Further, before determining the message scheduling mode based on the response state of the slave node, the method further comprises starting a timer in response to receiving a first response message of the slave node in a first time period or a second time period, and sending header information of a diagnostic communication request to the slave node according to a second sending frequency in a timing duration, wherein the first response message is used for indicating that the slave node is in a busy state, the timing duration is greater than or equal to the duration of the second time period, updating the timer in response to receiving the first response message in the timing duration, sending the header information to the slave node according to the second sending frequency in a new round of timing duration until the second response message of the slave node is not received in a third time period, determining that the response state is the non-responsive diagnostic communication request, wherein the starting time of the third time period is the time of starting the timer, the time of the third time period is greater than the timing duration, and the second response message is used for indicating that the slave node receives the diagnostic communication request. Further, before determining the message scheduling mode based on the response status of the slave node, the method further includes determining the response status as responsive to the diagnostic communication request in response to receiving a second response message from the slave node