Embedded single-network-port multi-IP communication device
By using an embedded single-port multi-IP communication device, which utilizes dual logical network interfaces and a dynamic configuration mechanism, the problem of implementing multi-IP communication on a single network port in embedded devices is solved. This results in reduced hardware costs, improved configuration flexibility, and enhanced system reliability, making it suitable for efficient network communication in embedded devices.
Patent Information
- Application Number
- CN202511688048.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2026-01-16
AI Technical Summary
Existing technologies struggle to enable parallel communication of multiple independent IP addresses on a single physical network interface. They are inflexible in configuration and have poor real-time performance, failing to meet the cost, size, and power consumption constraints of embedded devices. Furthermore, they lack lightweight, highly reliable dynamic network configuration mechanisms.
An embedded single-port multi-IP communication device is adopted. By sharing the same physical Ethernet interface, dual logical network interfaces, combined with a lightweight IP protocol stack and dynamic configuration middleware, the device can realize dynamic IP address updates and fault recovery. It uses EEPROM for persistent storage and supports parallel communication and real-time configuration of the dual logical interfaces.
It achieves optimization of hardware cost and integration, improved network configuration flexibility and real-time performance, enhanced system reliability, and improved resource utilization efficiency, making it suitable for resource-constrained embedded devices.
Smart Images

Figure CN121357153A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of embedded network communication technology, and in particular to an embedded single-port multi-IP communication device. Background Technology
[0002] In embedded applications such as industrial control and BeiDou navigation, devices typically need to communicate with multiple nodes (such as command centers, mobile terminals, and timing servers) located on different IP network segments. Traditional serial communication methods, limited by bandwidth and protocol capabilities, can hardly meet the current demands for large-volume data exchange. Therefore, Ethernet communication has become the mainstream alternative.
[0003] Currently, the main technical solutions for enabling communication between a single device and multiple network segment nodes include the following categories: Multi-port hardware solution: This involves expanding the network with multiple physical network interfaces (such as dual-port or quad-port modules) to connect to different networks. While this solution can achieve network isolation, it increases hardware cost, device size, and power consumption, making it unsuitable for embedded devices with strict limitations on cost, size, and power consumption.
[0004] VLAN-based single-port solution: This solution uses the IEEE 802.1Q protocol to divide a single physical network port into multiple virtual local area networks (VLANs) to achieve logical network isolation. This solution relies on the switch's VLAN support, is complex to configure, and is difficult to deploy in industrial network environments lacking VLAN functionality.
[0005] Single IP port multiplexing scheme: Different service data are distinguished by different port numbers of a single IP address. This method cannot achieve true network layer isolation, nor can it directly communicate with nodes located in different IP network segments.
[0006] Based on existing technologies, the main shortcomings are as follows: it is difficult to achieve parallel communication of multiple independent IP addresses on a single physical network interface; changes to network configuration usually require a system restart to take effect, which cannot meet the real-time requirements of industrial sites; and there is a lack of lightweight, highly reliable dynamic network configuration mechanisms suitable for the resource-constrained characteristics of embedded devices. Summary of the Invention
[0007] To address the shortcomings of existing technologies, this application provides an embedded single-port multi-IP communication device to solve the technical problems of existing embedded single-port communication devices, such as inability to support multi-IP communication, inflexible configuration, and poor real-time performance.
[0008] To achieve the above-mentioned objectives, the present invention provides the following technical solution: An embedded single-port multi-IP communication device includes an embedded microprocessor system for running core control software, a storage system for storing network configuration parameters, a human-machine interface for receiving configuration instructions and displaying status, a network input / output interface for receiving network signals to the core control software and sending core control signals to the outside, and dual logical network interfaces virtualized in the core control software. The network input / output interface is a single physical Ethernet interface, and the dual logical network interfaces include a fixed interface and a dynamic interface that share the same physical network port. The human-machine interface is electrically connected to the embedded microprocessor system, the embedded microprocessor system is electrically connected to the storage system, the network input / output interface is electrically connected to the embedded microprocessor system, and the dual logic network interface is communicatively connected to the network input / output interface.
[0009] In one embodiment, the embedded microprocessor system includes: an application layer for implementing single-port multi-IP communication functions, an intermediate layer for providing system software services, and a driver layer for driving underlying devices. The application layer includes a configuration instruction parsing module, a data routing management module, and a network status monitoring module; the middleware layer includes an embedded operating system, an embedded protocol stack, and a dynamic configuration middleware; the driver layer includes an EMAC driver, a storage driver, and a human-computer interaction driver.
[0010] In one implementation, the storage system is an EEPROM.
[0011] In one implementation, the storage driver in the driver layer reads and writes to the storage system via the I2C bus.
[0012] In one implementation, the embedded protocol stack in the intermediate layer is a lightweight IP protocol stack.
[0013] In one embodiment, the human-computer interaction interface includes an LCD display and a key input device; the human-computer interaction driver includes an LCD display driver and a key input device driver.
[0014] In one implementation, the human-computer interaction interface receives instructions in the NMEA0183 standard format of the $CCNET instruction.
[0015] The present invention also provides a dynamic configuration method for a communication device, wherein the communication device is the aforementioned embedded single-port multi-IP communication device, comprising the following steps: S1. The communication device is powered on and reads the saved network parameters from the storage system. S2. Initialize the dual logic network interface; S3. The communication device receives configuration commands through the network input / output interface; S4. The dynamic configuration middleware in the middle layer calls the protocol stack API to update the parameters of the target logical interface in real time. The parameters of the target logical interface include IP address, gateway, and subnet mask. S5. The updated parameters of the target logical interface are written to the storage system through the storage driver; S6. The configuration results are returned to the user through the human-computer interaction interface.
[0016] The present invention also provides a data transmission method for a communication device, wherein the communication device is the aforementioned embedded single-port multi-IP communication device, comprising the following steps: S1. The communication device is powered on and reads the saved network parameters from the storage system. S2. Initialize the dual logic network interface; S3. Start the data transmission task, including: S301. Identify the target logical interface based on the data packet type; S302. The data packet is routed to the corresponding logical interface through the data routing management module; S303, The data packet is sent to the target network node via the network input / output interface through the logic interface; S4. Monitor data transmission status in real time, record the number of successful or failed transmissions, and provide this information to the network status monitoring module.
[0017] The present invention also provides a fault recovery method for a communication device, wherein the communication device is the aforementioned embedded single-port multi-IP communication device, comprising the following steps: S1. The communication device is powered on and reads the saved network parameters from the storage system. S2. Initialize the dual logic network interface; S3. Start the network status monitoring task; S4. The communication device monitors the data reception status of each logical interface in the dual logical network interface through timed interrupts. When it detects that a certain interface has not transmitted or received data for an extended period, it is determined to be a network fault and automatically triggers the following recovery process: S401. Attempt to send alarm information through another normal interface; S402. Read the backed-up network parameters from the storage system and attempt to reinitialize the faulty interface; S403. If multiple attempts still fail, a soft reset of the communication device is triggered to fully restore network functionality.
[0018] Compared with the prior art, this application has at least the following beneficial effects: 1. Significantly optimized hardware cost and integration. Parallel communication with dual logical IP addresses is achieved through a single physical network port, eliminating the need for additional physical network ports, PHY chips, and related circuitry in traditional solutions, which is expected to reduce hardware costs by approximately 30%-50%. This simplified hardware structure also results in a smaller circuit board area and lower power consumption, making it particularly suitable for embedded devices sensitive to size, cost, and power consumption.
[0019] 2. Network configuration flexibility and real-time performance have been greatly improved. The command-based software dynamic configuration mechanism enables network parameter modifications to take effect in real time without restarting the device, solving the problems of inflexible configuration and high latency in traditional embedded systems. Users can dynamically adjust the device's network identity according to the on-site network environment, greatly improving the flexibility and adaptability of device deployment.
[0020] 3. Enhanced system reliability and maintainability By persistently storing network parameters using EEPROM, the device can automatically restore to the latest operating configuration after power failure or abnormal reset, meeting the high reliability requirements of industrial applications. The built-in network status monitoring and fault recovery mechanism can automatically detect communication link anomalies and attempt recovery, reducing system maintenance costs.
[0021] 4. Improved resource utilization efficiency The dual logic interfaces share the same physical layer and protocol stack, which significantly reduces the consumption of MCU memory and computing resources compared to the solution of running two independent network stacks, making the solution more feasible on resource-constrained embedded platforms. Attached Figure Description
[0022] Figure 1 This is a schematic diagram of the embedded single-port multi-IP communication device in Embodiment 1 of this application; Figure 2 This is a layered architecture diagram of the embedded microprocessor software in Embodiment 1 of this application; Figure 3 This is a flowchart of Embodiment 2 of this application. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of this invention clearer, the invention is described below with reference to specific embodiments shown in the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and not intended to limit the scope of the invention. Furthermore, descriptions of well-known structures and technologies are omitted in the following description to avoid unnecessarily obscuring the concept of the invention.
[0024] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0025] It should be understood that although the terms first, second, third, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms and should not be construed as indicating or implying relative importance. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0026] In the description of this invention, unless otherwise specified and limited, it should be noted that the terms "installation", "connection" and "linking" should be interpreted broadly. For example, they can refer to mechanical connection or internal connection between two components. They can be direct connection or indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms according to the specific circumstances.
[0027] To better understand the technical solution of the present invention, the present invention will be described in detail below with reference to the accompanying drawings. Example 1
[0028] This embodiment provides an embedded single-port multi-IP communication device, such as... Figure 1 As shown, it includes: an embedded microprocessor system for running core control software, a storage system for storing network configuration parameters, a human-machine interface for receiving configuration instructions and displaying status, a network input / output interface for receiving network signals to the core control software and sending core control signals to the outside, and a dual logical network interface virtualized in the core control software. The network input / output interface is a single physical Ethernet interface, and the dual logical network interface includes a fixed interface and a dynamic interface that share the same physical network port.
[0029] The human-machine interface is electrically connected to the embedded microprocessor system, the embedded microprocessor system is electrically connected to the storage system, the network input / output interface is electrically connected to the embedded microprocessor system, and the dual logic network interface is communicatively connected to the network input / output interface.
[0030] An embedded microprocessor system includes: an application layer for implementing single-port multi-IP communication, an intermediate layer for providing system software services, and a driver layer for driving underlying devices.
[0031] The application layer includes a configuration command parsing module, a data routing management module, and a network status monitoring module; the middleware layer includes an embedded operating system (FreeRTOS), an embedded protocol stack (LWIP), and a dynamic configuration middleware; the driver layer includes an EMAC driver, a storage driver (EEPROM / I2C), and a human-computer interaction driver.
[0032] The human-computer interaction interface includes an LCD display and a key input device; the human-computer interaction driver includes an LCD display driver and a key input device driver. The instructions received by the human-computer interaction interface are $CCNET instructions in the NMEA0183 standard format. Example 2
[0033] The dynamic configuration and method of the embedded single-port multi-IP communication device in the Beidou navigation terminal using the method described in Example 1 includes the following steps: S1. The communication device is powered on and reads the saved network parameters from the storage system. S2. Initialize dual logical network interfaces, where the fixed interface (netif_fix) has IP=172.16.104.130 and port=8080, and the dynamic interface (netif_set) has IP=192.168.1.100 and port=5060; S3. User sends command: $CCNET,1,L2,192,168,2,10,5000 XX, the communication device receives configuration commands through the network input / output interface; S4. The dynamic configuration middleware in the middle layer calls the protocol stack API to update the IP of the dynamic interface (L2) to 192.168.2.10 and the port to 5000. It calls set_ip_address(&netif_set, &new_ip) to update the parameters of the target logical interface in real time. The parameters of the target logical interface include IP address, gateway, and subnet mask. S5. Write the new parameters {192,168,2,10, 5000, ...} into the specified area of the EEPROM via I2C; S6. Return response: $CCNET,3,L2,192,168,2,10,5000 XX, the configuration is confirmed to be successful, and the configuration result is returned to the user through the human-computer interaction interface.
[0034] In this embodiment, a data transmission task is also initiated between S2 and S3, and data is transmitted after S6: Location data: sent to the command center through the fixed interface (172.16.104.130:8080); Display and control data: sent to the mobile terminal through the dynamic interface (192.168.2.10:5000); Time synchronization data: can be configured to be broadcast simultaneously through dual interfaces to ensure the reliability of critical services. Example 3
[0035] The network fault recovery method using the embedded single-port multi-IP communication device in Example 1 includes the following steps: S1. The communication device is powered on and reads the saved network parameters from the storage system. S2. Initialize the dual logic network interface; S3. Start the network status monitoring task; S4. The communication device detects that the dynamic interface has not received data for several consecutive cycles through the timer interrupt service routine TIMER3_IRQHandler, determines that there is a network failure, and automatically triggers the following recovery process: S401. Attempt to send alarm information through another normal interface; S402. Read the backed-up network parameters from the storage system and attempt to reinitialize the faulty interface; S403. If the attempt still fails within the specified time, a soft reset of the communication device is triggered to fully restore network functionality.
[0036] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them; although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications can still be made to the specific implementation of the invention or equivalent substitutions can be made to some technical features without departing from the spirit of the technical solutions of the present invention, and all such modifications and substitutions should be covered within the scope of the technical solutions claimed in the present invention.
Claims
1. An embedded single-network-port multi-IP communication device, characterized by, The application relates to an embedded single-network-port multi-IP communication device, which comprises the following parts: an embedded micro-processing system for running core control software, a storage system for storing network configuration parameters, a man-machine interactive interface for receiving configuration instructions and displaying states, a network input-output interface for receiving network signals to the core control software and sending signals of the core control to the outside, and a double-logic network interface virtually output by the core control software, wherein the network input-output interface is a single physical Ethernet interface, and the double-logic network interface comprises a fixed interface and a dynamic interface sharing the same physical network port. The man-machine interactive interface is electrically connected with the embedded micro-processing system, the embedded micro-processing system is electrically connected with the storage system, the network input-output interface is electrically connected with the embedded micro-processing system, and the double-logic network interface is in communication connection with the network input-output interface. The embedded micro-processing system comprises an application layer for realizing single-network-port multi-IP communication, a middle layer for providing system software services, and a driving layer for bottom device driving.
2. The embedded single-NAT multi-IP communication device of claim 1, wherein, The application layer comprises a configuration instruction analysis module, a data routing management module and a network state monitoring module; the middle layer comprises an embedded operating system, an embedded protocol stack and a dynamic configuration middleware; and the driving layer comprises an EMAC driving, a storage driving and a man-machine interactive driving. The storage system is an EEPROM.
3. The embedded single-NAT multi-IP communication apparatus according to claim 2, wherein The storage driving in the driving layer reads and writes the storage system through an I2C bus.
4. The embedded single-NAT multi-IP communication apparatus according to claim 3, wherein The embedded protocol stack in the middle layer is a lightweight IP protocol stack.
5. The embedded single-NAT multi-IP communication device of claim 2, wherein, The man-machine interactive interface comprises an LCD liquid crystal display and a key input device; and the man-machine interactive driving comprises an LCD liquid crystal display driving and a key input device driving.
6. The embedded single-NAT multi-IP communication device of claim 1, wherein, The instructions received by the man-machine interactive interface are $CCNET instructions in the NMEA0183 standard format.
7. The embedded single-NAT multi-IP communication device of claim 1, wherein, The communication device is the embedded single-network-port multi-IP communication device as claimed in any one of claims 2-7, and comprises the following steps:
8. A dynamic configuration method of a communication device, characterized by, S1, powering on the communication device, reading the saved network parameters from the storage system; S2, initializing the double-logic network interface; S3, the communication device receiving configuration instructions through the network input-output interface; S4, the dynamic configuration middleware in the middle layer calling a protocol stack API to update the parameters of a target logic interface in real time, wherein the parameters of the target logic interface include an IP address, a gateway and a subnet mask; S5, the updated parameters of the target logic interface being written into the storage system through the storage driving; S6, the configuration result being returned to the user through the man-machine interactive interface. The communication device is the embedded single-network-port multi-IP communication device as claimed in any one of claims 2-7, and comprises the following steps:
9. A data transmission method of a communication apparatus, characterized by, S1, powering on the communication device, reading the saved network parameters from the storage system; S2, initializing the double-logic network interface; S3, starting a data transmission task, which comprises the following steps: S301, identifying a target logic interface according to a data packet type; S302, routing the data packet to the corresponding logic interface through a data routing management module; S303, sending the data packet to a target network node through the network input-output interface by the logic interface; S4, monitoring the data transmission state in real time, recording the number of successful or failed transmissions for the network state monitoring module. 10. A method of failure recovery for a communication device, the method comprising: The communication device is an embedded single-network-port multi-IP communication device as claimed in any one of claims 2-7, comprising the following steps: S1. The communication device is powered on, and the saved network parameters are read from the storage system; S2. The dual-logical-network interface is initialized; S3. The network state monitoring task is started; S4. The communication device monitors the data receiving state of each logical interface in the dual-logical-network interface through a timing interrupt. When it is detected that a certain interface has no data transmission for a long time, it is determined that there is a network failure, and the following recovery process is automatically triggered: S401. An alarm message is sent through another normal interface; S402. The backup network parameters are read from the storage system, and the failed interface is reinitialized; S403. If multiple attempts still fail, the communication device is soft reset, and the network function is fully recovered.
Citation Information
Patent Citations
Dual-port-random access memory (RAM)-based embedded common Ethernet / Internet protocol (IP) communication interface device
CN102255975A
Device and method for testing electric power automation network communication
CN104092580A
ARM (Advanced RISC Machines) platform-based network port extension method, system and equipment and storage medium
CN115941629A
Body area network networking method fusing multiple physical networks
CN119583590A
Soft-RoCE-based virtual network topology simulation method
CN120474926A
