Inter-chip communication software system supporting multiple interfaces

Through an inter-chip communication software system that supports multiple interfaces, a single interface cannot meet diverse needs is solved, reliable data transmission and system stability are achieved in complex environments, and diagnostic functions are provided to improve the operation efficiency and security of embedded devices.

CN120523772APending Publication Date: 2025-08-22COMP APPL TECH INST OF CHINA NORTH IND GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510606665.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-12
Publication Date
2025-08-22

AI Technical Summary

Technical Problem

Existing inter-chip communication software only supports a single interface and cannot meet the diverse needs of different hardware platforms and application scenarios. It is especially prone to data transmission errors in complex electromagnetic environments or long-distance transmission.

Method used

A inter-chip communication software system that supports multiple interfaces is designed, including ICCOM core module, redundant computing module and underlying communication module. It adopts a redundant computing and consistency check mechanism, combines the Socket interface and TTY interface, supports USB interface or wireless communication, and has system diagnostic functions and lightweight design.

Benefits of technology

Reliable transmission of data in different hardware platforms and application scenarios improves system stability and reliability, reduces the probability of failure, ensures data accuracy and integrity, and has the ability to diagnose and detect problems in a timely manner, reduces resource consumption and ensures security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120523772A_ABST
    Figure CN120523772A_ABST
Patent Text Reader

Abstract

The invention discloses an inter-chip communication software system supporting multiple interfaces. The inter-chip communication software system comprises the following raw materials in parts by weight: an ICCOM core module, a redundancy calculation module and a bottom layer communication module, the ICCOM core module is used for completing initialization work of equipment; the redundancy calculation module is used for executing redundancy calculation and consistency check; the bottom layer communication module comprises a Socket interface module and a TTY interface module, the Socket interface module is used for network socket communication, and the TTY interface module is used for serial port communication. The system supports multiple interface modes and can be used in different hardware platforms and application scenes, the accuracy and integrity of data are guaranteed through a redundancy calculation and consistency checking mechanism, reliable transmission can be achieved even in a complex environment, potential problems can be found and processed in time through a system diagnosis function, and the system reliability is improved. The stability and reliability of the system are improved, and the occurrence probability of system faults is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication software, and in particular to an inter-chip communication software system supporting multiple interfaces. Background Art

[0002] With the continuous development of modern embedded systems, multi-chip architectures have been widely used, which has led to a sharp increase in the demand for inter-chip communication. Efficient and reliable inter-chip communication has become a key factor in ensuring system performance and stability. Different application scenarios have diverse requirements for communication interfaces and methods. For example, the industrial control field requires high-reliability and real-time communication, while the consumer electronics field focuses more on communication flexibility and cost-effectiveness.

[0003] Currently, some inter-chip communication software uses a single communication interface and only supports one interface, which cannot meet the diverse needs of different hardware platforms and application scenarios. In complex electromagnetic environments or long-distance transmission, the SPI interface is easily interfered with, resulting in data transmission errors.

[0004] Therefore, we propose an inter-chip communication software system that supports multiple interfaces. Summary of the Invention

[0005] The purpose of the present invention is to provide an inter-chip communication software system supporting multiple interfaces, which solves the problems raised in the background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions: an inter-chip communication software system supporting multiple interfaces, comprising an ICCOM core module, a redundant calculation module, and an underlying communication module;

[0007] The ICCOM core module is responsible for completing the initialization of the device;

[0008] The redundant calculation module is used to perform redundant calculation and consistency check;

[0009] The bottom layer communication module includes a Socket interface module and a TTY interface module. The Socket interface module is used for network socket communication, and the TTY interface module is used for serial port communication.

[0010] As a preferred embodiment of the present invention, the ICCOM core module includes a device initialization submodule, a message processing submodule, a data packet processing submodule, a memory management submodule, and a device management submodule. The device initialization submodule is used to complete the device initialization work; the message processing submodule is used to handle the creation, management and conversion of messages; the data packet processing submodule is used to process, send and receive data packets; the memory management submodule adopts optimized memory pool management to improve memory allocation efficiency; the device management submodule is used to drive initialization, device detection and resource management.

[0011] As a preferred embodiment of the present invention, the Socket interface module includes a socket interface main module, a socket family submodule, a routing management submodule and a loopback interface submodule. The socket interface main module is used for initializing and managing the socket interface; the socket family submodule is used for implementing a custom protocol family and processing socket operations; the routing management submodule is used for managing message routing rules and forwarding; and the loopback interface submodule is used for providing a local loopback test function.

[0012] As a preferred embodiment of the present invention, the TTY interface module includes a TTY driver main module, a TTY API interface submodule, a device detection submodule and a sysfs interface submodule. The TTY driver main module is used for initializing and managing the TTY driver; the TTY API interface submodule is used for providing the implementation of TTY operations; the device detection submodule is used for processing device detection and removal; and the sysfs interface submodule is used for providing the ability to access and configure TTY devices through sysfs.

[0013] As a preferred embodiment of the present invention, the redundant computing module includes a redundant computing main module, a communication module, a thread module, a voting module, a diagnostic module and a tool module. The redundant computing main module is used to implement system initialization, cleanup and API interface; the communication module is used to process ICCOM communication, message queue and channel mapping; the thread module is used to implement receiving, sending, heartbeat and monitoring threads; the voting module is used to process voting and system status management; the diagnostic module is used to provide status monitoring and diagnostic capabilities; the tool module is used to provide checksum calculation and time processing.

[0014] As a preferred embodiment of the present invention, it also includes a diagnostic system module, which includes a diagnostic core submodule, a monitor submodule, a data collection submodule, an analysis engine submodule, a report generation submodule, a recovery management submodule, an API interface submodule and a tool set submodule. The diagnostic core submodule is used to implement the core functions of the diagnostic system; the monitor submodule is used to monitor the system status and performance; the data collection submodule is used to collect performance and status data; the analysis engine submodule is used to analyze the collected data and detect problems; the report generation submodule is used to generate various diagnostic reports; the recovery management submodule is used to manage recovery operations and strategies; the API interface submodule is used to provide a programming interface for the diagnostic system; and the tool set submodule is used to provide various auxiliary tools and functions.

[0015] As a preferred embodiment of the present invention, the bottom layer communication module supports an expansion interface, including a USB interface or a wireless communication interface.

[0016] As a preferred embodiment of the present invention, the ICCOM core module further includes an integrated debugging submodule for providing debugging functions and log recording.

[0017] Compared with the prior art, the present invention has the following beneficial effects:

[0018] The present invention supports multiple interface modes and can be used in different hardware platforms and application scenarios. The redundant calculation and consistency check mechanism ensures the accuracy and integrity of the data, and can be transmitted reliably even in complex environments. The system diagnostic function can promptly detect potential problems and handle them, thereby improving the stability and reliability of the system and reducing the probability of system failures. The lightweight design and efficient algorithm reduce system resource consumption and improve the operating efficiency on embedded devices. The strict security and confidentiality mechanism effectively prevents data leakage and illegal access, ensuring the safe operation of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Other features, objects and advantages of the present invention will become more apparent upon reading the detailed description of non-limiting embodiments with reference to the following drawings:

[0020] Figure 1 This is a distribution diagram of an inter-chip communication software system that supports multiple interfaces according to the present invention. DETAILED DESCRIPTION

[0021] In order to make the technical means, creative features, objectives and effects achieved by the present invention easier to understand, the present invention is further described below in conjunction with specific implementation methods.

[0022] The present technical solution provides an inter-chip communication software system that supports multiple interfaces, including an ICCOM core module, a redundant calculation module, and an underlying communication module; the ICCOM core module is responsible for completing the initialization of the device, and the redundant calculation module is used to perform redundant calculation and consistency checking; the underlying communication module includes a Socket interface module and a TTY interface module, the Socket interface module is used for network socket communication, and the TTY interface module is used for serial port communication; the underlying communication module supports extended interfaces, including a USB interface or a wireless communication interface.

[0023] in:

[0024] The ICCOM core module includes a device initialization submodule, a message processing submodule, a data packet processing submodule, a memory management submodule, a device management submodule, and an integrated debugging submodule. The device initialization submodule is used to complete device initialization; the message processing submodule is used to handle message creation, management, and conversion; the data packet processing submodule is used to process, send, and receive data packets; the memory management submodule adopts optimized memory pool management to improve memory allocation efficiency; the device management submodule is used for driver initialization, device detection, and resource management; and the integrated debugging submodule is used to provide debugging functions and log records.

[0025] The Socket interface module includes a socket interface main module, a socket family submodule, a routing management submodule and a loopback interface submodule. The socket interface main module is used for initializing and managing the socket interface; the socket family submodule is used for implementing a custom protocol family and processing socket operations; the routing management submodule is used for managing message routing rules and forwarding; and the loopback interface submodule is used for providing a local loopback test function.

[0026] The TTY interface module includes a TTY driver main module, a TTY API interface submodule, a device detection submodule and a sysfs interface submodule. The TTY driver main module is used for initializing and managing the TTY driver; the TTY API interface submodule is used for providing the implementation of TTY operations; the device detection submodule is used for processing device detection and removal; and the sysfs interface submodule is used for providing the ability to access and configure TTY devices through sysfs.

[0027] The redundant computing module includes a redundant computing main module, a communication module, a thread module, a voting module, a diagnostic module and a tool module. The redundant computing main module is used to implement system initialization, cleanup and API interface; the communication module is used to handle ICCOM communication, message queue and channel mapping; the thread module is used to implement receiving, sending, heartbeat and monitoring threads; the voting module is used to handle voting and system status management; the diagnostic module is used to provide status monitoring and diagnostic capabilities; and the tool module is used to provide checksum calculation and time processing.

[0028] It also includes a diagnostic system module, which includes a diagnostic core submodule, a monitor submodule, a data collection submodule, an analysis engine submodule, a report generation submodule, a recovery management submodule, an API interface submodule and a tool set submodule. The diagnostic core submodule is used to implement the core functions of the diagnostic system; the monitor submodule is used to monitor the system status and performance; the data collection submodule is used to collect performance and status data; the analysis engine submodule is used to analyze the collected data and detect problems; the report generation submodule is used to generate various diagnostic reports; the recovery management submodule is used to manage recovery operations and strategies; the API interface submodule is used to provide a programming interface for the diagnostic system; and the tool set submodule is used to provide various auxiliary tools and functions.

[0029] It should be noted that:

[0030] Interface design

[0031] External interface: ICCOM software exchanges information with users through the operating system kernel support software, providing a variety of external interfaces, such as socket, connect, send, recv and other interfaces for Socket communication; open, write, read and other interfaces for TTY communication; and a series of interfaces for redundancy modules and diagnostic modules to facilitate user configuration and operation of the system.

[0032] Internal interface: Each module exchanges data and calls functions through internal interfaces. For example, the iccom_init and iccom_start interfaces in the ICCOM core module are used for device initialization and startup, and the iccom_diagnostic_init and iccom_diagnostic_exit interfaces in the diagnostic module are used for initialization and shutdown of the diagnostic system.

[0033] Data processing and management: Strictly verify the format and content of input and output data, using methods such as format checks and data CRC checks to ensure data correctness. Define various data structures and their value ranges, and perform value range checks during program execution to ensure data validity.

[0034] Security and reliability design: For security, we conduct boundary checks to ensure data compliance and log key operations for easy tracking and auditing. For reliability, we adopt a modular design approach to reduce coupling between modules, increase code commenting and enhance code readability, provide a multi-level logging system to facilitate rapid problem identification, and use the Git version control system to manage code for easy rollbacks and fixes.

[0035] Example

[0036] Installation and Deployment

[0037] Install the ICCOM software system on the target embedded device, ensure that the device meets the hardware and software requirements for system operation, and configure various system parameters such as communication interface type, network settings, and redundant computing strategy according to the actual application scenario.

[0038] Hardware Connection

[0039] According to the selected communication interface (such as TTY, Socket, etc.), correctly establish the hardware connection between the devices. For example, for a TTY interface, connect a serial cable; for a Socket interface, ensure that the devices are on the same network.

[0040] Start the system

[0041] Start the ICCOM software system, and the system will automatically perform operations such as device initialization, driver loading, and network configuration.

[0042] Message creation and sending

[0043] On the sending end, the upper-layer application creates a message object through the API interface provided by ICCOM and specifies the message's destination, priority and other parameters. After receiving the message, the ICCOM core module selects the appropriate communication interface and routing path for transmission based on the message's destination and priority. If the redundant calculation module is enabled, the system will perform redundant encoding on the message to improve the reliability of data transmission.

[0044] Message reception and processing

[0045] At the receiving end, the ICCOM underlying communication module receives messages through the corresponding communication interface. The system decodes and verifies the received messages to ensure the integrity and correctness of the messages. If the message passes the verification, the ICCOM core module passes the message to the upper-level application for processing; otherwise, the system will discard the message and record an error message.

[0046] In addition, during system operation, the diagnostic system module monitors the system status and performance data in real time. If an anomaly or potential problem is found, the system will trigger the fault diagnosis mechanism to locate and analyze the problem. Based on the diagnostic results, the system can automatically perform recovery operations or notify the user for manual intervention. The ICCOM software system provides a detailed logging function that records key operations and error information during system operation. Users can view log information at any time through the log viewing tool provided by the system to facilitate problem troubleshooting and system maintenance.

[0047] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention. Therefore, the embodiments should be regarded as illustrative and non-restrictive in all respects. The scope of the present invention is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be included therein.

[0048] In addition, it should be understood that although this specification is described in terms of implementation methods, not every implementation method contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment can also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.

Claims

1. An inter-chip communication software system supporting multiple interfaces, characterized by: Including ICCOM core module, redundant computing module, and underlying communication module; The ICCOM core module is responsible for completing the initialization of the device; The redundant calculation module is used to perform redundant calculation and consistency check; The bottom layer communication module includes a Socket interface module and a TTY interface module. The Socket interface module is used for network socket communication, and the TTY interface module is used for serial port communication.

2. The chip-to-chip communication software system supporting multiple interfaces according to claim 1, characterized in that: The ICCOM core module includes a device initialization submodule, a message processing submodule, a data packet processing submodule, a memory management submodule, and a device management submodule. The device initialization submodule is used to complete the initialization of the device; the message processing submodule is used to handle the creation, management, and conversion of messages; The data packet processing submodule is used for processing, sending and receiving data packets; the memory management submodule adopts optimized memory pool management to improve memory allocation efficiency; the device management submodule is used for driver initialization, device detection and resource management.

3. The chip-to-chip communication software system supporting multiple interfaces according to claim 1, wherein: The Socket interface module includes a socket interface main module, a socket family submodule, a routing management submodule and a loopback interface submodule. The socket interface main module is used for initializing and managing the socket interface; the socket family submodule is used for implementing a custom protocol family and processing socket operations; the routing management submodule is used for managing message routing rules and forwarding; and the loopback interface submodule is used for providing a local loopback test function.

4. The chip-to-chip communication software system supporting multiple interfaces according to claim 1, wherein: The TTY interface module includes a TTY driver main module, a TTY API interface submodule, a device detection submodule and a sysfs interface submodule. The TTY driver main module is used for initializing and managing the TTY driver; the TTY API interface submodule is used for providing the implementation of TTY operations; the device detection submodule is used for processing device detection and removal; and the sysfs interface submodule is used for providing the ability to access and configure TTY devices through sysfs.

5. The inter-chip communication software system supporting multiple interfaces according to claim 1, characterized in that: The redundant computing module includes a redundant computing main module, a communication module, a thread module, a voting module, a diagnostic module and a tool module. The redundant computing main module is used to implement system initialization, cleanup and API interface; the communication module is used to handle ICCOM communication, message queue and channel mapping; the thread module is used to implement receiving, sending, heartbeat and monitoring threads; the voting module is used to handle voting and system status management; the diagnostic module is used to provide status monitoring and diagnostic capabilities; and the tool module is used to provide checksum calculation and time processing.

6. The inter-chip communication software system supporting multiple interfaces according to claim 1, characterized in that: It also includes a diagnostic system module, which includes a diagnostic core submodule, a monitor submodule, a data collection submodule, an analysis engine submodule, a report generation submodule, a recovery management submodule, an API interface submodule and a tool set submodule. The diagnostic core submodule is used to implement the core functions of the diagnostic system; the monitor submodule is used to monitor system status and performance; the data collection submodule is used to collect performance and status data; the analysis engine submodule is used to analyze the collected data and detect problems; the report generation submodule is used to generate various diagnostic reports; and the recovery management submodule is used to manage recovery operations and strategies. The API interface submodule is used to provide a programming interface for the diagnostic system; the tool set submodule is used to provide various auxiliary tools and functions.

7. The inter-chip communication software system supporting multiple interfaces according to claim 1, characterized in that: The bottom layer communication module supports an expansion interface, including a USB interface or a wireless communication interface.

8. The inter-chip communication software system supporting multiple interfaces according to claim 1, characterized in that: The ICCOM core module also includes an integrated debugging submodule for providing debugging functions and log recording.