Multi-protocol vehicle-mounted communication management system based on QNX
By designing core control units, protocol stack management units, security control units and test verification units in the QNX-based multi-protocol on-board communication management system, the problem that existing systems are difficult to obtain sufficient technical support when facing complex customization needs is solved, multiple communication functions and high reliability are achieved, and the security and performance of the system are ensured.
Patent Information
- Application Number
- CN202411964884.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-18
AI Technical Summary
The existing QNX-based multi-protocol on-vehicle communication management system is difficult to obtain sufficient technical support when facing complex customization needs due to the closed development environment, poor compatibility, and limited documentation and support resources. This limits the flexibility and innovation potential of the system, and cannot realize multiple communication functions, reducing the reliability of system services.
A multi-protocol in-vehicle communication management system based on QNX is designed, including a core control unit, a protocol stack management unit, a security control unit and a test and verification unit. Through the core control unit and protocol stack management unit, multiple communication protocols are managed and implemented to ensure effective communication between different components; ensure the security of system operation through the security control unit; comprehensive testing and verification of the system through the test verification unit to ensure that the functions, performance and security of the system meet the expected requirements.
It realizes a variety of communication functions, improves the reliability of the system and low-latency communication services, ensures the efficient operation of the system under strict time constraints, and ensures the security and performance of the system through multiple security guarantees and test verifications.
Smart Images

Figure CN119854388A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle-mounted communication, and in particular to a multi-protocol vehicle-mounted communication management system based on QNX. Background Art
[0002] The QNX-based multi-protocol vehicle communication management system uses the QNX real-time operating system to support multiple communication protocols within the vehicle and between the vehicle and the outside world. The QNX-based multi-protocol vehicle communication management system provides a stable and secure platform that supports a range of applications from basic vehicle information display, multimedia entertainment to advanced driver assistance systems, vehicle health monitoring, remote diagnosis, and emergency rescue services.
[0003] In the existing QNX-based multi-protocol vehicle communication management system, the development environment of the QNX system is relatively closed, resulting in poor compatibility with external tools and development resources. QNX's development documentation and support resources are relatively limited. When faced with complex customization requirements, developers may find it difficult to obtain sufficient technical support and guidance, which limits the flexibility and innovation potential of the vehicle communication management system, makes it impossible to realize multiple communication functions, and reduces the reliability of system services. Summary of the invention
[0004] In view of this, the present invention provides a QNX-based multi-protocol vehicle communication management system that can realize multiple communication functions and improve reliability and low-latency communication services.
[0005] The present invention provides a QNX-based multi-protocol vehicle communication management system, which includes: a core control unit, which is used to coordinate control system resources and management system operations, and support different components to communicate; a protocol stack management unit, which is used to manage multiple communication protocols, and realize communication between different components based on multiple communication protocols; a security control unit, which is used to detect security events based on a security assurance function to achieve data security; and a test verification unit, which is used to test and verify the vehicle communication management system based on the security assurance of the security control unit.
[0006] In this implementation, the application manages and implements multiple communication protocols through the core control unit and the protocol stack management unit to ensure effective communication between different components, and through the real-time characteristics of QNX, ensure that the system can complete tasks under strict time constraints. At the same time, the safety control unit ensures the safety of system operation, and based on the safety guarantee of the safety control unit, the system is comprehensively tested and verified through the test verification unit to ensure that the system's functions, performance and safety meet the expected requirements, and achieve high reliability and low latency communication services.
[0007] In one possible implementation, the core control unit includes: a resource management module for managing and allocating system software resources and system hardware resources; a real-time monitoring module for obtaining the operating status information of the vehicle communication management system, and performing operating data recording and operating data abnormality monitoring; a service call module for providing a standardized API interface and supporting cross-platform service calls, which allow different components of different nodes to communicate and collaborate.
[0008] In this implementation, the resource management module is used to rationally allocate system resources, efficiently utilize system resources, and ensure the security of resource use; the real-time monitoring module is used to monitor the operating status of the vehicle communication management system to ensure the stability and reliability of the system; the service call module provides an API interface to support component communication and facilitate the realization of various service functions.
[0009] In one possible implementation, the protocol stack management unit includes: a protocol design module, which is used to determine the multiple communication protocols supported and design the protocol functions of the multiple communication protocols; a protocol conversion module, which is used to convert the formats between the multiple communication protocols based on the protocol functions; and a protocol optimization module, which is used to evaluate and optimize the performance of the multiple communication protocols and perform error detection and data retransmission.
[0010] In this implementation, multiple communication protocols are managed through the protocol design module, format conversion between protocols is achieved through the protocol conversion module, and the communication protocol is further optimized through the protocol optimization module, which can achieve more stable and efficient communication in the vehicle communication management system.
[0011] In a possible implementation, the protocol design module is used to determine the protocol types of multiple communication protocols supported; based on the protocol types, the data format and transmission method of the communication protocol are designed, and encoded for implementation.
[0012] In one possible implementation, the protocol conversion module is used to determine the data format mapping relationship between multiple communication protocols based on the protocol function; write the format conversion logic between multiple communication protocols based on the format mapping relationship, and optimize the format conversion logic; and perform format conversion between multiple communication protocols based on the format conversion logic.
[0013] In this implementation, the data format mapping relationship between different protocols is used to write code to implement the data format conversion logic and optimize performance. This ensures efficient and reliable data conversion between different protocols, thereby supporting effective communication between different components in the vehicle communication management system.
[0014] In a possible implementation, the protocol optimization module is used to obtain communication data and evaluate the communication efficiency of the communication protocol based on the communication data; formulate an optimization strategy for the communication protocol based on the communication efficiency, and optimize the communication protocol based on the optimization strategy.
[0015] In this implementation, by evaluating and optimizing the performance of the communication protocol, implementing error detection and retransmission mechanisms, and ensuring the efficiency and reliability of data transmission, more stable and efficient communication can be achieved in the vehicle communication management system.
[0016] In one possible implementation, the security control unit includes: a data encryption module, used to encrypt sensitive data through the RSA data encryption algorithm; an access control module, used to establish an access control list to limit access rights to system resources; an intrusion detection module, used to obtain system behavior data of the vehicle communication management system, and monitor abnormal behavior data based on the system behavior data; a security audit module, used to record the system operation log of the vehicle communication management system, and track and analyze security incidents based on the system operation log.
[0017] In this implementation, security monitoring is carried out from multiple aspects such as data security, behavioral security and operational security through data encryption, intrusion detection and security auditing, ensuring the system's identity authentication, data encryption, access control, security auditing, intrusion detection and security updates to protect the security of the system.
[0018] In one possible implementation, the test verification unit includes: a function verification module, used to verify whether the system functions of the vehicle communication management system work as expected; a performance verification module, used to verify whether the system performance of the vehicle communication management system meets the performance design requirements; a security verification module, used to verify whether the security of the vehicle communication management system can resist various security threats; a compatibility verification module, used to verify the compatibility of the vehicle communication management system in different environments.
[0019] In this implementation, based on the security assurance of the safety control unit, the system is comprehensively tested and verified in terms of function, performance, safety, and compatibility, which can further ensure that the system's function, performance, and safety meet the expected requirements.
[0020] In one possible implementation, the function verification module is used to perform unit testing on each module of the vehicle communication management system to verify whether the functions of each module are correct; to perform integration testing on each module of the vehicle communication management system to verify whether the interaction and collaboration between each module are normal; to perform system testing on the vehicle communication management system to verify whether the overall functions and performance of the system are normal; and to perform regression testing after repairing defects to verify whether new problems are introduced after the repair.
[0021] In a possible implementation, the performance verification module is used to test the system performance of the vehicle communication management system, including load capacity, response time, limit performance, stability and reliability; and performance tuning is performed based on the test results of the system performance.
[0022] In this implementation, comprehensive verification and testing are carried out on the modules themselves, between modules, and the entire management system to further ensure the safe operation of the system, including load capacity, response time, extreme performance, stability, and reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 is a schematic diagram of a QNX-based multi-protocol vehicle communication management system according to an embodiment of the present invention;
[0025] Figure 2 is a schematic diagram of another QNX-based multi-protocol vehicle communication management system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0027] The QNX-based multi-protocol vehicle communication management system is a highly integrated and reliable software solution that leverages the power of the QNX real-time operating system (RTOS) to support multiple communication protocols within the vehicle and between the vehicle and the outside world. The system can not only efficiently handle vehicle network protocols, but also achieve seamless connection with the outside world through wireless communication technologies such as cellular networks, Wi-Fi and Bluetooth. It aims to provide a stable and secure platform to support a range of applications from basic vehicle information display and multimedia entertainment to advanced driver assistance systems, vehicle health monitoring, remote diagnosis and emergency rescue services. In addition, the system also has powerful data processing capabilities, which can collect, analyze and transmit a large amount of vehicle operation data to help drivers make more informed decisions, while also providing valuable insights for automakers and service providers to optimize products and services. By integrating advanced user interface technologies such as OpenGL ES and HTML5, the QNX-based multi-protocol vehicle communication management system can provide users with an intuitive and smooth operating experience, greatly enhancing the vehicle's intelligence level and user experience.
[0028] In the existing QNX-based multi-protocol vehicle communication management system, the development environment of the QNX system is relatively closed, resulting in poor compatibility with external tools and development resources. QNX's development documentation and support resources are relatively limited. When faced with complex customization requirements, developers may find it difficult to obtain sufficient technical support and guidance, which limits the flexibility and innovation potential of the vehicle communication management system, makes it impossible to realize multiple communication functions, and reduces the reliability of system services.
[0029] Therefore, this application proposes a QNX-based multi-protocol vehicle communication management system that can realize multiple communication functions and improve reliability and low-latency communication services.
[0030] This application provides a multi-protocol vehicle communication management system based on QNX. Figure 1 , Figure 1 Schematic diagram of a multi-protocol vehicle communication management system according to an embodiment of the present invention. The QNX-based multi-protocol vehicle communication management system comprises a core control unit 1, a protocol stack management unit 2, a safety control unit 3 and a test verification unit 4.
[0031] The core control unit 1 is used to coordinate control system resources and system operation, and supports communication between different components.
[0032] Specifically, the core control unit 1 is based on the QNX real-time operating system.
[0033] In one implementation, the core control unit 1 is used to coordinate and control system resources such as CPU time, memory, I / O devices, network interfaces, storage devices, etc. to ensure efficient use of system resources and normal operation of devices.
[0034] In another implementation, the core control unit 1 is used to manage the operating status information of the vehicle communication management system, such as CPU usage, memory usage, and disk space.
[0035] In another implementation, the core control unit 1 is used to provide a communication and collaboration basis for different components of different nodes by setting interface information between different components.
[0036] The protocol stack management unit 2 is used to manage multiple communication protocols and implement communication between different components based on the multiple communication protocols.
[0037] Specifically, the protocol stack management unit 2 determines the multiple communication protocols to be supported, further designs the functions of the communication protocols and the conversion methods of the protocol converters, and performs communication between the multiple communication protocols based on the communication interfaces and the conversion methods.
[0038] The security control unit 3 is used to detect security events based on the security assurance function to achieve data security.
[0039] Specifically, the security control unit 3 performs security event detection such as data, access, intrusion and audit based on the security assurance function to ensure data security, system resource access security, behavior security and operation security.
[0040] The test and verification unit 4 is used to test and verify the vehicle communication management system based on the safety guarantee of the safety control unit.
[0041] Specifically, the test verification unit 4 performs multi-faceted tests and verifications on various functions, performances, safety and compatibility of the vehicle communication management system during operation, so as to further ensure the service safety of the vehicle communication management system.
[0042] In this implementation, the application manages and implements multiple communication protocols through the core control unit and the protocol stack management unit to ensure effective communication between different components, and through the real-time characteristics of QNX, ensure that the system can complete tasks under strict time constraints. At the same time, the safety control unit ensures the safety of system operation, and based on the safety guarantee of the safety control unit, the system is comprehensively tested and verified through the test verification unit to ensure that the system's functions, performance and safety meet the expected requirements, and achieve high reliability and low latency communication services.
[0043] See also Figure 2 , Figure 21 is a schematic diagram of another multi-protocol vehicle communication management system according to an embodiment of the present invention. The QNX-based multi-protocol vehicle communication management system comprises a core control unit 1, a protocol stack management unit 2, a safety control unit 3 and a test verification unit 4.
[0044] The core control unit 1 includes a resource management module 11 , a real-time monitoring module 12 and a service calling module 13 .
[0045] The resource management module 11 is used to manage and allocate system software resources and system hardware resources.
[0046] Specifically, the resource management module 11 manages and allocates various system software resources in the vehicle communication management system. For example, by managing and allocating resources such as CPU (Central Processing Unit) time, memory, and I / O devices, the efficient use of resources in the vehicle communication management system can be ensured. Furthermore, the resource management module 11 ensures that each process can obtain the necessary system resources by creating, managing, and destroying processes. And according to the dynamic allocation and recovery of memory, the efficiency and security of memory use are ensured.
[0047] The resource management module 11 manages and allocates various system hardware resources in the vehicle communication management system. For example, it manages and allocates network interfaces, storage devices, etc. to ensure the normal operation of the equipment. Furthermore, it provides file system management and access functions and supports multiple file system types, such as QNX's Power-Safe file system. It schedules according to the priority of the process to ensure that high-priority processes can get CPU time first and ensure the real-time performance of the system.
[0048] The real-time monitoring module 12 is used to obtain the operating status information of the vehicle communication management system, and to record the operating data and monitor the abnormality of the operating data.
[0049] Specifically, the operation status information includes CPU usage, memory usage, disk space, etc. The real-time monitoring module 12 obtains the detailed operation status information of each running vehicle communication management system, records the operation status information, and detects whether there is abnormal behavior in the process according to the operation status information, such as process crash, excessive resource usage, etc. When there is abnormal behavior, abnormal behavior record and warning are performed. At the same time, the real-time monitoring module 12 records the events and operations during the process operation, including start, stop, error information, etc. Further, troubleshooting and analysis are performed later through the recorded events and operations.
[0050] The real-time monitoring module of the present application monitors the operating status of the vehicle communication management system, records events and operations during system operation, and can ensure the stability and reliability of the system.
[0051] The service calling module 13 is used to provide a standardized API interface and support cross-platform service calling.
[0052] Specifically, the service call module 13 provides standardized API interfaces covering various aspects such as system management, network communication, file operation, and device control, which can facilitate developers to call corresponding API interfaces for operation. The service call module 13 also supports service registration and discovery mechanisms, which are used to dynamically discover and call services of other components in different components. The service call module 13 also supports cross-platform service calls, which allow different components of different nodes to communicate and collaborate.
[0053] The protocol stack management unit 2 includes a protocol design module 21 , a protocol conversion module 22 and a protocol optimization module 23 .
[0054] The protocol design module 21 is used to determine the multiple communication protocols to be supported and to design the protocol functions of the multiple communication protocols.
[0055] Among them, the protocol functions include data format and transmission method.
[0056] Specifically, the protocol design module 21 writes code according to the type of communication protocol to implement the protocol function of each communication protocol. The specific steps are as follows:
[0057] Step a1, determining the protocol types of the multiple communication protocols supported.
[0058] Among them, the types of communication protocols include CAN protocol, LIN protocol, FlexRay protocol, MOST protocol, Ethernet protocol, etc.
[0059] Step a2, designing the data format and transmission method of the communication protocol based on the protocol type, and implementing them by encoding.
[0060] The data format includes identifier (ID), data length code (DLC), data field (Data Field), cyclic redundancy check (CRC), acknowledgement field (ACK), end flag (EOF), synchronization segment, checksum, frame tail, etc. Among them, the identifier is used to identify the priority and type of the message, the data length code indicates the number of bytes in the data field, the data field contains the actual transmitted data, the cyclic redundancy check is used to detect data transmission errors, the acknowledgement field is used to confirm the receipt of the correct message, the end flag indicates the end of the message, the checksum is used to detect data transmission errors, and the frame tail includes the frame check sequence (FCS).
[0061] The transmission methods include those of the physical layer, data link layer, network layer, transport layer and application layer.
[0062] Specifically, design the specific protocol functions of each communication protocol, and write code to implement the functions of each protocol.
[0063] For example, the data format of the CAN protocol is designed as:
[0064] Identifier (ID): 11 bits or 29 bits, used to identify the priority and type of the message.
[0065] Data Length Code (DLC): 4 bits, indicating the number of bytes in the data field.
[0066] Data Field: 0-8 bytes, containing the actual data transmitted.
[0067] Cyclic Redundancy Check (CRC): 15 bits, used to detect data transmission errors.
[0068] Acknowledgement field (ACK): 1 bit, used to confirm receipt of the correct message.
[0069] End flag (EOF): 7 bits, indicating the end of the message.
[0070] For example, the transmission mode of the CAN protocol is designed as follows:
[0071] Physical layer: uses differential signal transmission. Common physical layer standards include ISO 11898-2.
[0072] Data link layer: implements message encapsulation, decapsulation, error detection and retransmission mechanisms.
[0073] Network layer: manages communications between multiple nodes, including address allocation and routing.
[0074] Application layer: defines specific application protocols, such as ISO 15765-2 (for diagnostic communications).
[0075] For example, the code is written to implement the CAN protocol function as follows:
[0076]
[0077]
[0078] Exemplarily, the data format of the LIN protocol is designed as:
[0079] Message header: includes synchronization segment and identifier.
[0080] Data field: 0-8 bytes, containing the actual data transmitted.
[0081] Checksum: 8 bits, used to detect data transmission errors.
[0082] For example, the transmission mode of the LIN protocol is designed as follows:
[0083] Physical layer: single-line transmission, common physical layer standards include SAE J2602.
[0084] Data link layer: implements message encapsulation, decapsulation, error detection and retransmission mechanisms. Network layer: manages communications between multiple nodes, including synchronization and scheduling of master and slave nodes. Application layer: defines specific application protocols, such as LIN 2.0.
[0085] For example, the code is written to implement the LIN protocol function as follows:
[0086]
[0087] Exemplarily, the data format of the FlexRay protocol is designed as:
[0088] Message header: includes identifier, data length, etc.
[0089] Data field: Contains the actual data transmitted.
[0090] Checksum: Used to detect data transmission errors.
[0091] Exemplarily, the transmission mode of the FlexRay protocol is designed as follows:
[0092] Physical layer: two-wire transmission. Common physical layer standards include ISO 17458.
[0093] Data link layer: implements message encapsulation, decapsulation, error detection and retransmission mechanisms.
[0094] Network layer: manages the communication between multiple nodes, including time-triggered and event-triggered communication modes. Application layer: defines specific application protocols, such as FlexRay V3.0.
[0095] Exemplarily, the code is written to implement the function of the FlexRay protocol:
[0096]
[0097]
[0098] Exemplarily, the data format of the MOST protocol is designed as:
[0099] Message header: includes identifier, data length, etc.
[0100] Data field: Contains the actual data transmitted.
[0101] Checksum: Used to detect data transmission errors.
[0102] For example, the transmission mode of the MOST protocol is designed as follows:
[0103] Physical layer: Fiber optic transmission. Common physical layer standards include ISO 11783.
[0104] Data link layer: implements message encapsulation, decapsulation, error detection and retransmission mechanisms. Network layer: manages communications between multiple nodes, including ring topology and point-to-point communications. Application layer: defines specific application protocols, such as MOST 150.
[0105] For example, the code is written to implement the MOST protocol functions as follows:
[0106]
[0107]
[0108] For example, the data format of the Ethernet protocol is designed as follows:
[0109] MAC header: includes source MAC address, destination MAC address, and type / length field.
[0110] IP header: includes version, header length, service type, total length, identification, flag, fragment offset, lifetime, protocol, header checksum, source IP address, and destination IP address.
[0111] TCP / UDP header: includes source port, destination port, sequence number, acknowledgment number, header length, flag, window size, checksum, and urgent pointer.
[0112] Data field: Contains the actual data transmitted.
[0113] Frame trailer: includes the frame check sequence (FCS).
[0114] For example, the transmission mode of the Ethernet protocol is designed as follows:
[0115] Physical layer: uses twisted pair, optical fiber and other transmission media. Common physical layer standards include IEEE 802.3. Data link layer: implements frame encapsulation, decapsulation, error detection and retransmission mechanisms.
[0116] Network layer: manages communications between multiple nodes, including routing and address resolution.
[0117] Transport layer: manages end-to-end communications, including connection management, flow control, and error recovery. Application layer: defines specific application protocols, such as HTTP, FTP, TCP / IP, etc.
[0118] For example, the code is written to implement the Ethernet protocol function as follows:
[0119]
[0120]
[0121] The protocol design module 21 of the protocol stack management unit 2 can effectively manage and implement multiple communication protocols to ensure efficient and reliable communication between different components in the vehicle communication management system. Each protocol has a clear data format and transmission method, and the coding implementation also provides specific functions and logic to ensure the communication efficiency and reliability of the system.
[0122] The protocol conversion module 22 is used to perform format conversion between multiple communication protocols based on protocol functions.
[0123] Specifically, the specific steps for the protocol conversion module 22 to implement data format conversion between different protocols are as follows:
[0124] Step b1, based on the protocol functions, determining the data format mapping relationship between multiple communication protocols.
[0125] Taking the format conversion between the CAN protocol and the LIN protocol as an example, the data format of the CAN protocol is mapped to the data format of the LIN protocol.
[0126] Exemplarily, the data format of the CAN protocol message is:
[0127] Identifier (ID): 11 or 29 digits.
[0128] Data Length Code (DLC): 4 bits.
[0129] Data Field: 0-8 bytes.
[0130] Cyclic Redundancy Check (CRC): 15 bits.
[0131] Acknowledgement field (ACK): 1 bit.
[0132] End flag (EOF): 7 bits.
[0133] The data format of the LIN protocol message is:
[0134] Message header: includes synchronization segment and identifier.
[0135] Data field: 0-8 bytes.
[0136] Checksum: 8 bits.
[0137] The data format mapping relationship between CAN protocol messages and LIN protocol messages is:
[0138] CAN ID->LIN ID: CAN's 11-bit ID can be directly mapped to LIN's 8-bit ID.
[0139] CAN DLC->LIN DLC: CAN's DLC is directly mapped to LIN's DLC.
[0140] CAN Data->LIN Data: The data field of CAN is directly mapped to the data field of LIN.
[0141] Among them, the LIN protocol has its own checksum mechanism, and the CRC and ACK of the CAN protocol message do not need to be mapped into the LIN protocol message.
[0142] Step b2, writing format conversion logic between multiple communication protocols based on the format mapping relationship, and optimizing the format conversion logic.
[0143] Exemplarily, the format conversion logic between the CAN protocol and the LIN protocol is written based on the above format mapping relationship as follows:
[0144]
[0145]
[0146] Furthermore, the format conversion logic is optimized to reduce conversion time and resource consumption.
[0147] Among them, optimization methods include reducing unnecessary copies, using inline functions, pre-calculating constants, using bit operations, etc.
[0148] Specifically, by reducing unnecessary data copying, data can be modified directly in situ; by declaring frequently called small functions as inline functions, the overhead of function calls can be reduced; by pre-calculating some constants, repeated calculations can be avoided at each conversion; and by utilizing bit operations to optimize data processing, such as when processing IDs and checksums.
[0149] For example, the optimized conversion logic is:
[0150]
[0151]
[0152] Step b3: Perform format conversion between multiple communication protocols based on format conversion logic.
[0153] Exemplarily, the CAN protocol is converted into the LIN protocol using the above-mentioned optimized format conversion logic.
[0154] In this implementation, by defining the data format mapping relationship between different protocols, writing code to implement the data format conversion logic, and optimizing performance, it ensures efficient and reliable data conversion between different protocols, thereby supporting effective communication between different components in the vehicle communication management system.
[0155] The protocol optimization module 23 is used to evaluate and optimize the performance of various communication protocols, and perform error detection and data retransmission.
[0156] Specifically, the specific steps of the protocol optimization module 23 to evaluate and optimize the performance of multiple communication protocols are as follows:
[0157] Step c1, acquiring communication data, and evaluating the communication efficiency of the communication protocol based on the communication data.
[0158] Specifically, use performance monitoring tools (such as QNX's tracing tool, network analyzer, etc.) to collect communication data during the communication process and record key indicators in the communication process, such as transmission rate, latency, packet loss rate, CPU and memory usage, etc. Analyze the collected data and identify performance bottlenecks, such as network congestion, processor overload, insufficient memory, etc.
[0159] Exemplarily, the code for evaluating and optimizing the performance of multiple communication protocols is implemented as:
[0160]
[0161]
[0162] Step c2, formulating an optimization strategy for the communication protocol based on the communication efficiency, and optimizing the communication protocol based on the optimization strategy.
[0163] Specifically, if the transmission efficiency is low due to the large size of the communication data packet, the data packet size can be reduced by packetizing or compressing the data, the optimal transmission path can be selected, the number of intermediate nodes can be reduced, and the delay can be reduced; multi-threading or multi-channel parallel data transmission can be used to improve transmission efficiency; a cache mechanism can be used to reduce frequent data reading and writing operations and improve system performance.
[0164] Exemplarily, the code for formulating the optimization strategy of the communication protocol is implemented as follows:
[0165]
[0166]
[0167] In one implementation, the optimization strategy includes an error detection mechanism.
[0168] Specifically, the checksum of the data is calculated and verified at the receiving end; a cyclic redundancy check algorithm is used to improve the reliability of error detection.
[0169] Exemplarily, the code of the error detection mechanism is implemented as:
[0170]
[0171]
[0172] In one implementation, the optimization strategy includes a data retransmission mechanism.
[0173] Specifically, a timeout is set, and if no confirmation response is received within the specified time, the data is resent; a sliding window mechanism is used to allow multiple data packets to be transmitted simultaneously and confirmed at the receiving end; a maximum number of retransmissions is set to avoid infinite retransmissions that cause waste of system resources.
[0174] Exemplarily, the code of the data retransmission mechanism is implemented as follows:
[0175]
[0176]
[0177] In this implementation, the performance of the communication protocol is evaluated and optimized, and the error detection and retransmission mechanism is implemented to ensure the efficiency and reliability of data transmission. This enables more stable and efficient communication in the vehicle communication management system.
[0178] The security control unit 3 includes a data encryption module 31 , an access control module 32 , an intrusion detection module 33 and a security audit module 34 .
[0179] The data encryption module 31 is used to encrypt sensitive data using the RSA data encryption algorithm.
[0180] Specifically, the RSA data encryption algorithm includes key generation, determination of public and private keys, decryption, and encryption.
[0181] The key generation method includes: selecting two large prime numbers:
[0182]
[0183] Among them, p and q represent two large prime numbers; Represents a large set of prime numbers.
[0184] Calculate the modulus:
[0185] n=p×q.
[0186] Here, n represents the modulus.
[0187] Compute Euler's function:
[0188] φ(n)=(p-1)×(q-1).
[0189] Here, φ(n) represents the Euler function.
[0190] Select the public key exponent:
[0191] 1 <e<φ(n),gcd(e,φ(n))=1。
[0192] Where, e represents the public key exponent; gcd represents the greatest common divisor operation;
[0193] Calculate the private key exponent:
[0194] d=e -1 (modφ(n)).
[0195] Where d represents the private key exponent and mod represents the modulo operation.
[0196] That is, find d such that:
[0197] e×d≡1(modφ(n)).
[0198] Determine the public key and private key as: (n,e) and (n,d) respectively.
[0199] The encryption method is: given a plaintext M, convert it into an integer m, 0≤m <n:
[0200] c=m e (mod n).
[0201] Among them, c represents the ciphertext obtained during the encryption process.
[0202] The decryption method is: given a ciphertext c, use the private key (n, d) to decrypt:
[0203] m=c d (mod n).
[0204] Among them, m represents the decrypted plaintext.
[0205] Specifically, sensitive data is obtained and encrypted using the above encryption algorithm.
[0206] The access control module 32 is used to establish an access control list to limit access rights to system resources.
[0207] Specifically, the access rights of different system resources are classified to obtain access control lists of different permission classifications, and permission settings are performed for each type of system resource.
[0208] The intrusion detection module 33 is used to obtain the system behavior data of the vehicle communication management system and monitor abnormal behavior data based on the system behavior data.
[0209] Specifically, the intrusion detection module 33 integrates an intrusion detection system and monitors the behavior data of the vehicle communication management system in real time to ensure the security and reliability of the vehicle communication management system.
[0210] Among them, the security audit module 34 is used to record the system operation log of the vehicle communication management system, and track and analyze security events based on the system operation log.
[0211] Specifically, the security audit module 34 provides a security audit function to check the system operation log and monitor whether there are any events that affect the system security.
[0212] The test verification unit 4 includes a function verification module 41 , a performance verification module 42 , a safety verification module 43 and a compatibility verification module 44 .
[0213] The function verification module 41 is used to verify whether the system functions of the vehicle communication management system work as expected.
[0214] Specifically, the specific steps of the function verification module 41 verifying the system function include:
[0215] Step d1, performing unit testing on each module of the vehicle communication management system to verify whether the functions of each module are correct.
[0216] Step d2, performing integration testing on each module of the vehicle communication management system to verify whether the interaction and collaboration between the modules are normal.
[0217] Step d3, perform system testing on the vehicle communication management system to verify whether the overall function and performance of the system are normal.
[0218] Step d4: Perform regression testing after fixing the defects to verify whether new problems are introduced after the fix.
[0219] The performance verification module 42 is used to verify whether the system performance of the vehicle communication management system meets the performance design requirements.
[0220] Specifically, the specific steps of the performance verification module 42 to verify the system performance include:
[0221] Step e1, testing the system performance of the vehicle communication management system.
[0222] Among them, system performance includes load capacity, response time, extreme performance, stability and reliability.
[0223] Specifically, simulate a large number of users accessing the system at the same time to test the system's load capacity and response time; gradually increase the system load to test the system's extreme performance and stability; run the system for a long time to test the system's stability and reliability.
[0224] Step e2: Perform performance tuning based on the test results of system performance.
[0225] Specifically, according to the test results, performance tuning is performed to improve the performance and efficiency of the system.
[0226] The security verification module 43 is used to verify whether the security of the vehicle communication management system can resist various security threats.
[0227] Specifically, simulate hacker attacks, test the system's security protection capabilities, use vulnerability scanning tools to detect whether the system has known security vulnerabilities, review the system's security configuration to ensure that the configuration complies with best practices, test the system's authentication mechanism to ensure that only authorized users can access the system, and test the system's data encryption and integrity protection mechanism to ensure secure data transmission.
[0228] The compatibility verification module 44 is used to verify the compatibility of the vehicle communication management system in different environments.
[0229] Specifically, the system is tested on different hardware platforms; the system is tested on different operating systems and software environments; and the system's communication capabilities are tested in different network environments.
[0230] The QNX-based multi-protocol vehicle communication management system provided in this embodiment ensures that the system can complete tasks under strict time constraints and provide high-reliability and low-latency communication services through the real-time characteristics of QNX. Manage and implement multiple communication protocols to ensure effective communication between different components, support protocol conversion, data parsing, data encapsulation and error handling. Implement multiple security technology modules to ensure the system's identity authentication, data encryption, access control, security auditing, intrusion detection and security updates to protect the security of the system. Based on the security guarantee of the security control unit, the system is comprehensively tested and verified to ensure that the system's functions, performance and security meet the expected requirements.
[0231] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A multi-protocol vehicle communication management system based on QNX, characterized in that: The system comprises: The core control unit is used to coordinate control system resources and manage system operation, and support communication between different components; A protocol stack management unit, used to manage multiple communication protocols and implement communication between the different components based on the multiple communication protocols; A security control unit, which is used to detect security events based on security assurance functions to achieve data security; The test and verification unit is used to test and verify the vehicle communication management system based on the safety guarantee of the safety control unit.
2. The QNX-based multi-protocol vehicle communication management system according to claim 1, characterized in that: The core control unit comprises: Resource management module, used to manage and allocate system software resources and system hardware resources; A real-time monitoring module, used to obtain the operating status information of the vehicle-mounted communication management system, and to record operating data and monitor abnormal operating data; The service calling module is used to provide a standardized API interface and support cross-platform service calling, which allows different components of different nodes to communicate and collaborate.
3. The QNX-based multi-protocol vehicle communication management system according to claim 1, characterized in that: The protocol stack management unit comprises: A protocol design module, used to determine the multiple communication protocols supported and design protocol functions of the multiple communication protocols; A protocol conversion module, used for performing format conversion between the plurality of communication protocols based on the protocol functions; The protocol optimization module is used to evaluate and optimize the performance of the multiple communication protocols, and perform error detection and data retransmission.
4. The QNX-based multi-protocol vehicle communication management system according to claim 3, characterized in that: The protocol design module is used to determine the protocol types of the multiple communication protocols supported; The data format and transmission method of the communication protocol are designed based on the protocol type, and are coded and implemented.
5. The QNX-based multi-protocol vehicle communication management system according to claim 3, characterized in that: The protocol conversion module is used to determine the data format mapping relationship between the multiple communication protocols based on the protocol function; Writing format conversion logic between the multiple communication protocols based on the format mapping relationship, and optimizing the format conversion logic; Format conversion is performed between the multiple communication protocols based on the format conversion logic.
6. The QNX-based multi-protocol vehicle communication management system according to claim 3, characterized in that: The protocol optimization module is used to obtain communication data and evaluate the communication efficiency of the communication protocol based on the communication data; An optimization strategy for the communication protocol is formulated based on the communication efficiency, and the communication protocol is optimized based on the optimization strategy.
7. The QNX-based multi-protocol vehicle communication management system according to claim 1, characterized in that: The safety control unit comprises: Data encryption module, used to encrypt sensitive data using RSA data encryption algorithm; An access control module, used to establish an access control list to restrict access rights to the system resources; An intrusion detection module, used to obtain system behavior data of the vehicle-mounted communication management system, and perform abnormal behavior data monitoring based on the system behavior data; The security audit module is used to record the system operation log of the vehicle communication management system and track and analyze security events based on the system operation log.
8. The QNX-based multi-protocol vehicle communication management system according to claim 1, characterized in that: The test verification unit comprises: A function verification module, used to verify whether the system functions of the vehicle communication management system work as expected; A performance verification module, used to verify whether the system performance of the vehicle communication management system meets the performance design requirements; A security verification module, used to verify whether the security of the vehicle communication management system can resist various security threats; The compatibility verification module is used to verify the compatibility of the vehicle communication management system in different environments.
9. The QNX-based multi-protocol vehicle communication management system according to claim 8, characterized in that: The function verification module is used to perform unit tests on each module of the vehicle communication management system to verify whether the functions of each module are correct; Performing integration testing on the modules of the vehicle communication management system to verify whether the interaction and collaboration between the modules are normal; Conducting system testing on the vehicle communication management system to verify whether the overall function and performance of the system are normal; Regression testing is performed after fixing defects to verify whether new problems are introduced after the fix.
10. The QNX-based multi-protocol vehicle communication management system according to claim 8, characterized in that: The performance verification module is used to test the system performance of the vehicle communication management system, and the system performance includes load capacity, response time, limit performance, stability and reliability; Performance tuning is performed based on the test results of the system performance.