Unlock instant, AI-driven research and patent intelligence for your innovation.

Communication protocol stack multiplexing method, communication method, computer equipment and medium

A communication protocol stack and communication method technology, applied in the field of computer equipment and media, communication methods, and communication protocol stack reuse methods, can solve the problems of high memory usage, low function encapsulation and portability, and long data life cycle. Achieve the effect of improving synchronization and reliability, improving reliability and multiplexing rate

Pending Publication Date: 2022-07-22
WEICHAI POWER CO LTD +1
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the existing ECU test system, the communication protocol stack is usually coupled with the vehicle terminal program, and data interaction is performed through the shared data area, which has the following problems: the communication protocol stack is coupled with the vehicle terminal program, resulting in secondary The reuse rate of the development code is low, and the vehicle terminal program is interrupted, which will affect the operation of the communication protocol stack program; the interaction between the layers of the communication protocol stack uses a large number of global variables, the data life cycle is long, and the function encapsulation and portability are low. Data synchronization between layers requires additional maintenance. When no communication is in progress, the protocol stack program is in an idling state, and the memory usage is high.
The existing communication protocol stack cannot realize simultaneous communication of multiple buses

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication protocol stack multiplexing method, communication method, computer equipment and medium
  • Communication protocol stack multiplexing method, communication method, computer equipment and medium
  • Communication protocol stack multiplexing method, communication method, computer equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 This is a flowchart of a communication protocol stack multiplexing method provided in Embodiment 1 of the present invention. This embodiment is applicable to an application scenario where multiple ECUs and vehicle-mounted terminals communicate using multiplexed communication protocol stacks, wherein the ECUs communicate through a bus interface. It is connected with the communication protocol stack, and the vehicle terminal and the communication protocol stack communicate by means of message queue. The method can be performed by a computer device, and the computer device can implement the above multiplexing method in the form of hardware and / or software.

[0026] like figure 1 As shown, the multiplexing method specifically includes the following steps:

[0027] Step S1: Acquire the number of buses connected by the communication protocol stack and the type of the bus communication protocol.

[0028] Wherein, the number of buses is the number of bus interfaces ...

Embodiment 2

[0055] Based on the above embodiment, the second embodiment of the present invention provides a vehicle bus communication method. The communication method is implemented based on the above communication protocol stack multiplexing method, and has functional modules and beneficial effects for executing the above communication protocol stack multiplexing method. The communication protocol A message queue is used for communication between the stack and the vehicle terminal equipment.

[0056] Figure 4 This is a flow chart of a vehicle-mounted bus communication method provided by the second embodiment of the present invention.

[0057] like Figure 4 As shown, the communication method specifically includes the following steps:

[0058] Step S10: Determine whether the communication protocol stack has received the message queue.

[0059] Among them, the message queue reception can be realized by setting the message queue reception function. When the message queue reception funct...

Embodiment 3

[0072] According to another aspect of the present invention, a computer device is provided, comprising a memory, a processor and a computer program stored in the memory and running on the processor, and the processor implements the above-mentioned communication protocol stack multiplexing method when the program is executed; Alternatively, the above-mentioned communication method is implemented when the processor executes the program.

[0073] Figure 5 It is a schematic structural diagram of a computer device according to Embodiment 3 of the present invention. Computer equipment is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Computer equipment may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices (eg, helmets, glasses, ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a communication protocol stack multiplexing method, a communication method, computer equipment and a medium. The multiplexing method comprises the following steps: acquiring the number of buses connected with a communication protocol stack and a bus communication protocol type; determining a bus multiplexing number, at least one multiplexing layer and a process program architecture according to the bus number and the bus communication protocol type, wherein the process program architecture comprises at least one independent process program; determining a state machine array of each layer of the communication protocol stack according to the bus multiplexing number; message forwarding is carried out according to the process program architecture and the state machine array, and message queue communication is adopted between any two adjacent layers. According to the method, by creating the independent process of the protocol stack and the message queue communication mode of each layer of the protocol stack, decoupling between each layer of the communication protocol stack and between the protocol stack and the vehicle-mounted terminal program is achieved, the reliability and the reuse rate of the program are improved, and simultaneous communication of multiple buses is supported.

Description

technical field [0001] The present invention relates to the technical field of data communication, and in particular, to a communication protocol stack multiplexing method, a communication method, a computer device and a medium. Background technique [0002] With the improvement of people's requirements for vehicle performance and indicators, the number of Electronic Control Units (ECUs) configured in vehicles is gradually increasing. In order to ensure the stability and reliability of vehicle control systems, it is necessary to conduct automated tests on ECUs. [0003] In the existing ECU test system, the communication protocol stack is usually coupled with the vehicle terminal program, and data interaction is carried out through the shared data area, which has the following problems: the communication protocol stack and the vehicle terminal program are coupled and connected, resulting in the secondary protocol stack. The development code reuse rate is low, and the interrup...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/40H04L69/18
CPCH04L12/40H04L69/18H04L2012/40273
Inventor 周建豪孙彦森刘金栋张振京刘雨霞
Owner WEICHAI POWER CO LTD