Multi-network card integration device based on single-chip microcomputer and software platform

The multi-network card integration on a single-chip microcomputer addresses the challenge of multiple network card implementation by employing PHY chips and Ethernet controllers with SPI/RMII interfaces and optimized software, achieving stable and cost-effective network card operation.

CN119248704APending Publication Date: 2025-01-03BEIJING AEROSPACE SCI & IND CENTURY SATELLITE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411075742.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

Common single-chip microcomputer chips typically support only one or two MAC controllers, making it difficult to implement multiple network cards for communication functions, especially in satellite communication terminal monitoring systems, and existing solutions are costly and complex.

Method used

A multi-network card integration design using a single-chip microcomputer with separate PHY chips and Ethernet controllers connected via SPI and RMII interfaces, along with a software platform utilizing LwIP and μC/OS-II for network communication, enabling low-cost and easy development of multiple network cards.

Benefits of technology

Realizes a stable and low-cost multi-network card integration with each network card functioning independently, meeting isolation requirements without data confusion, using SPI and RMII interfaces and optimized software protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248704A_ABST
    Figure CN119248704A_ABST
Patent Text Reader

Abstract

The invention relates to a multi-network card integration device and software platform based on a single-chip microcomputer, and the device comprises an independent PHY chip which is connected with an MCU through an RMII interface; an Ethernet controller integrated with MAC and PHY and connected with the MCU through an SPI interface; two or more Ethernet controllers are allowed to be connected with the MCU through different SPIs (Serial Peripheral Interface) respectively. According to the device and the software platform, the single-chip microcomputer multi-network card integrated design which is low in cost and easy to develop is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic information technology, and in particular to a multi-network card integration device based on a single-chip microcomputer and a software design method. Background Art

[0002] With the development and progress of science and technology, the integration of multiple devices in embedded single-chip microcomputer systems is becoming more and more complex, and the demand for multi-device interconnection is increasing. Especially in satellite communication terminal monitoring systems, most equipment monitoring and management use Ethernet communication, and some equipment TCP / IP implementations cannot be in the same network segment or require physical isolation.

[0003] Commonly used single-chip microcomputer chips generally only support one or two MAC controllers, and it is difficult to implement more than three independent network cards to complete communication functions.

[0004] Commonly used single-chip microcomputer chips, such as the domestic GigaDevice GD32F series, generally only support one MAC controller. The technology for realizing one Ethernet network card function is very mature, but it is difficult to realize multiple networks. Multi-network card applications are difficult to implement through the common single-chip simple system solutions. If an embedded Linux system is used, the development is difficult, the implementation code is complex, the cycle is long, the software and hardware costs are high, and the maintenance is difficult. FPGA-based design also has the problem of high cost. Summary of the invention

[0005] In view of the problems existing in the above-mentioned solutions, the present invention proposes a multi-network card integration design method based on a single-chip microcomputer, which realizes a low-cost and simple-to-develop multi-network card integration design and supports multi-network card communication design.

[0006] The multi-network card integrated device based on a single-chip microcomputer provided by the present disclosure includes an MCU minimum system and an external connection network, wherein the external connection network includes: a separate PHY chip, and an Ethernet controller with a MAC and a PHY integrated therein;

[0007] The MCU is connected to the separate PHY chip via an RMII interface;

[0008] The MCU is connected to the Ethernet controller via an SPI interface.

[0009] The separate PHY chip and the other end of the Ethernet controller are connected to different network transformers respectively, and the network transformer is connected to connectors such as RJ45, JL24-12ZJB, etc.

[0010] Furthermore, the separate PHY chip adopts DP / SM83848 (DP83848 is an imported product, and SM83848 is a domestically produced product).

[0011] Furthermore, the Ethernet controller adopts W / SM5100 or W5500 (W5100 is an imported product, and SM5100 is a domestically produced product).

[0012] Furthermore, the device includes: two or more Ethernet controllers connected to the MCU via different SPI interfaces respectively.

[0013] Furthermore, when the separate PHY chip or Ethernet controller adopts a current-driven device, the center tap of the network transformer connected thereto needs to be pulled up, and impedance matching needs to be performed at both ends of the network transformer.

[0014] The present disclosure also provides a single-chip microcomputer-based multi-network card integrated software platform applied to the above device, comprising:

[0015] Network software based on a separate PHY chip, which uses the LwIP software network protocol stack to implement network communication functions and the μC / OS-II operating system to implement task scheduling;

[0016] The bottom layer driver software based on the Ethernet controller is used to realize the processing of network communication of the Ethernet controller.

[0017] Furthermore, the specific execution process of the network software based on a separate PHY chip includes:

[0018] Initialization of separate PHY chip and MCU internal MAC;

[0019] LwIP protocol stack initialization;

[0020] Based on Socket, create UDP / TCP processing tasks;

[0021] Communication task scheduling is performed based on μC / OS-II operating system.

[0022] Furthermore, the specific execution process of the underlying driver software includes:

[0023] Initialization of each Ethernet controller;

[0024] Based on Socket, create UDP / TCP processing tasks;

[0025] Scheduling of communication tasks.

[0026] Compared with the prior art, the beneficial effects of the present invention are: (1) a low-cost, easy-to-develop multi-network card integrated design based on a single-chip microcomputer is realized; (2) the SPI interface and the RMII interface are used simultaneously to realize the integration of multiple network cards; (3) each network card can work normally and stably without causing data confusion in different sockets of different network cards, thus meeting the isolation requirements of each network card. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present disclosure.

[0028] Figure 1 A block diagram of an exemplary embodiment structure design according to the present disclosure;

[0029] Figure 2 Implement the process for network communication software based on DP83848 chip;

[0030] Figure 3 Implement the process for network communication software based on W5100. DETAILED DESCRIPTION

[0031] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0032] The present invention provides a multi-network card integration design solution based on a single-chip microcomputer.

[0033] According to an exemplary embodiment of the present disclosure, it mainly includes: 1. Building a multi-network card hardware platform; 2. Building a software platform. The hardware adopts a PHY chip DP83848 and an Ethernet controller W5100 or W5500 with two SPI interfaces and an internal integrated MAC and PHY chip. The system block diagram is as shown in the attached figure. Figure 1 The software platform is mainly divided into the network software program code writing based on the SM83848PHY chip and the modification and code writing of the single network card driver library based on the Ethernet controller SM5100.

[0034] The specific implementation plan is as follows:

[0035] 1. Construction of multi-NIC hardware platform

[0036] It uses GigaDevice MCU GD32F450ZIT6, QLFP144 package. The chip is ARM Cortex-M4, the maximum CPU frequency is 200MHz, the program storage capacity is 2256KB, the total RAM capacity is 512KB, including 1 MAC, and 6 SPI interfaces.

[0037] The MCU peripheral circuit includes the MCU minimum system and the external connection network. It uses the RMII interface to connect to the PHY chip DP83848 and the SPI interface to connect to two Ethernet control circuits W5100 or W5500.

[0038] (1) As a preference, the Ethernet network card chip DP83848 used in this embodiment meets the IEEE802.3 standard and supports a transmission rate of 10Mbps / 100Mbps.

[0039] The main functions and performance indicators are as follows:

[0040] 1) The power supply voltage is 3.3V±0.3V;

[0041] 2) 25MHz / 50MHz clock output;

[0042] 3) Low power consumption design, the typical value of power supply current at room temperature is less than 92mA;

[0043] 4) 3.3V MAC layer interface;

[0044] 5) The maximum transmission rate is 100Mbps;

[0045] 6)Support IEEE 802.3MII / RMII / SNI interface.

[0046] 7) Support energy detection mode;

[0047] 8) Support automatic line sequence detection;

[0048] 9) Support automatic negotiation function;

[0049] 10)ESD ≥ 4000V

[0050] The present disclosure uses the MCU's internal MAC and uses the RMII interface to communicate with the PHY chip;

[0051] The PHY chip DP83848 is a current-type drive PHY, so the center tap needs to be pulled up when connected to the network transformer, and impedance matching must be performed at both ends of the network transformer.

[0052] Of course, the PHY chip can also be JM9161 and so on.

[0053] (2) As a preferred embodiment, the W5100 used in this embodiment is a 10 / 100M Ethernet control circuit with internal integrated MAC and PHY, supports TCP / IP protocol, has internal integrated 16K memory, supports IEEE802.3 10BASE-T, 100BASE-TX, and the hardware TCP / IP protocol stack supports TCP, UDP, IPv4, ICMP, ARP, IGMP and PPPoE. W5100 also has an internal integrated 16KB memory for data transmission. There is no need to consider Ethernet control, only simple Socket programming is required.

[0054] The main functions and performance indicators are as follows:

[0055] 1) 10 / 100M Ethernet control circuit, including MAC and PHY;

[0056] 2) Support TCP / IP protocols: TCP, UDP, IPv4, ICMP, ARP, IGMP, PPPoEthernet;

[0057] 3) Support IEEE802.3 10BASE-T, 100BASE-TX;

[0058] 4) Support automatic communication handshake (full-duplex and half-duplex);

[0059] 5) Support automatic MDI / MDIX and automatic correction of signal polarity;

[0060] 6) Provide SPI interface, direct parallel interface, indirect parallel interface;

[0061] 7) Internally integrated 16K memory and 4-way socket;

[0062] The design uses SPI interface to communicate with the microcontroller;

[0063] The Ethernet controller W5100 is also a current-type driver. When connected to a network transformer, the center tap must be pulled up, and impedance matching must be performed at both ends of the network transformer.

[0064] The design of the other W5100 is the same as the above one, and different SPI interfaces are used to connect to the MCU, so I will not go into details.

[0065] 2. Software platform construction

[0066] (1) Network software design based on DP83848 chip: LwIP software network protocol stack is used to implement network communication functions, and task scheduling is implemented based on μC / OS-II operating system. The software implementation process is shown in the attached figure. Figure 2 shown.

[0067] (2) Based on the underlying driver of SM5100, the network communication processing is directly implemented. The software implementation process is as shown in the attached figure. Figure 3 shown.

[0068] In an actual application of a communication terminal device disclosed in the present invention, three network cards are respectively used to connect a TDMA board card, an FDMA board card and a host computer network management.

[0069] During the actual test, each network card can work normally and stably without causing data confusion in different sockets of different network cards, thus meeting the isolation requirements of each network card.

[0070] The above technical scheme is only an exemplary embodiment of the present invention. For those skilled in the art, it is easy to make various types of improvements or modifications based on the application methods and principles disclosed in the present invention, and it is not limited to the method described in the above specific embodiment of the present invention. Therefore, the method described above is only preferred and does not have a restrictive meaning.

Claims

1. A multi-network card integrated device based on a single-chip microcomputer, characterized in that: include: MCU minimum system and external connection network, wherein the external connection network includes: a separate PHY chip, and an Ethernet controller with MAC and PHY integrated inside; The MCU is connected to the separate PHY chip via an RMII interface; The MCU is connected to the Ethernet controller via an SPI interface.

2. The device according to claim 1, characterized in that The separate PHY chip adopts DP / SM83848.

3. The device according to claim 1 or 2, characterized in that: The Ethernet controller adopts W / SM5100 or W5500.

4. The device according to claim 1, characterized in that include: Two or more Ethernet controllers are connected to the MCU via different SPI interfaces.

5. The device according to claim 1, characterized in that When the separate PHY chip or Ethernet controller adopts a current-driven device, the center tap of the network transformer connected thereto needs to be pulled up, and impedance matching needs to be performed at both ends of the network transformer.

6. A multi-network card integrated software platform based on a single-chip microcomputer applied to the device described in any one of claims 1 to 5, characterized in that: include: Network software based on a separate PHY chip, which uses the LwIP software network protocol stack to implement network communication functions and the μC / OS-II operating system to implement task scheduling; The bottom layer driver software based on the Ethernet controller is used to realize the processing of network communication of the Ethernet controller.

7. The software platform according to claim 6, characterized in that: The specific execution process of the network software based on a separate PHY chip includes: Initialization of separate PHY chip and MCU internal MAC; LwIP protocol stack initialization; Based on Socket, create UDP / TCP processing tasks; Communication task scheduling is performed based on μC / OS-II operating system.

8. The software platform according to claim 6 or 7, characterized in that: The specific execution process of the underlying driver software includes: Initialization of each Ethernet controller; Based on Socket, create UDP / TCP processing tasks; Scheduling of communication tasks.