Switch and data transmission method
By using SOC chips to replace bridges or switch chips in switches, the function of providing multiple interfaces when the data transmission volume increases is achieved, solving the problem of high costs and achieving efficient data transmission and cost savings.
Patent Information
- Application Number
- CN202411307311.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-11-15
AI Technical Summary
In the case of increasing data transmission volume, when using switches for data transmission, the prior art requires higher-priced switches to provide a large number of interfaces, resulting in increased costs.
Using a combination of the first processing module and the second processing module, the second processing module is a SOC chip, which provides various types of transmission by setting it into the master mode or the slave mode instead of the bridge or switch chip in the prior art. Interface to realize switch functions and save costs.
In the case where a large number of transmission interfaces are required, various types of transmission interfaces are provided to meet data transmission needs and reduce hardware costs.
Smart Images

Figure CN118972348A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to a switch and a data transmission method. Background Art
[0002] As the amount of data transmission increases, switches are used for data transmission during the transmission process. Switches use switching chips or bridge chips to provide physical interfaces for Ethernet. If a large number of interfaces are required for data transmission, more expensive switches are required. How to provide more transmission interfaces while reducing costs is an urgent problem that needs to be solved. Summary of the invention
[0003] Some embodiments of the present application aim to provide a switch and a data transmission method. Through the technical solution of the embodiments of the present application, the switch includes: a first processing module and a second processing module, the second processing module is a SOC chip, wherein the first interface of the first processing module is connected to the first interface of the second processing module; the second interface of the second processing module is connected to an external device, and data transmission is performed by setting the second processing module to a master mode or a slave mode respectively. In the embodiments of the present application, the first processing module and the second processing module are combined to realize the function of the switch, that is, the first processing module is a CPU, and the second processing module is a SOC chip, which replaces the bridge chip or the switching chip in the prior art, thereby realizing the switch, and when a large number of transmission interfaces are required, various types of transmission interfaces can be provided, thereby performing data transmission and saving costs.
[0004] In a first aspect, some embodiments of the present application provide a switch, comprising: a first processing module and a second processing module, the second processing module being a SOC chip, wherein a first interface of the first processing module is connected to a first interface of the second processing module; and a second interface of the second processing module is connected to an external device, and data transmission is performed by setting the second processing module to a master mode or a slave mode respectively.
[0005] Some embodiments of the present application realize the function of a switch by combining a first processing module and a second processing module, that is, the first processing module is a CPU, and the second processing module is a SOC chip, which replaces the bridge chip or the switching chip in the prior art, thereby realizing a switch, and when a large number of transmission interfaces are required, various types of transmission interfaces can be provided to perform data transmission and save costs.
[0006] Optionally, the first interface is a PCIE interface.
[0007] In some embodiments of the present application, the first processing module and the second processing module are connected via a first interface, which may be a PCIE interface, and the second processing module may perform data transmission with the first processing module via the first interface.
[0008] Optionally, the PCIE2_TXP pin of the first processing module is connected to the PCIE2_TXP pin of the second processing module, and the PCIE2_RXP pin of the first processing module is connected to the PCIE2_RXP pin of the second processing module.
[0009] In some embodiments of the present application, the pins of the PCIE interface of the CPU of the first processing module are connected to the pins of the PCIE interface of the SOC chip of the second processing module for transmitting data.
[0010] Optionally, the second interface includes at least a high-speed interface and a low-speed interface, wherein the high-speed interface includes at least one or more of a PCIE interface, a USB interface, a hard disk interface and an Ethernet interface, and the low-speed interface includes at least one or more of a UART interface, a SPI interface or an IIC interface.
[0011] In some embodiments of the present application, the second processing module, i.e., the SOC chip, further includes a second interface, and the second interface includes various types of interfaces, such as a high-speed interface and a low-speed interface, so as to meet different requirements.
[0012] Optionally, when the second processing module is in the main mode, the second processing module is used to receive data sent by the external device through the second interface and send the data through the second interface, or send the data to the first processing module through the first interface.
[0013] Some embodiments of the present application set the SOC chip to the main mode, and can receive data sent by the external device through the second interface and send the data through the second interface, or send the data to the first processing module through the first interface, thereby realizing the network port expansion of the first processing module.
[0014] Optionally, when the second processing module is in slave mode, the second processing module is used to receive data sent by the first processing module through the first interface.
[0015] In some embodiments of the present application, the second processing module is set to a slave mode, and receives data sent by the first processing module through the first interface, thereby realizing network port expansion of the first processing module.
[0016] Optionally, the second processing module is further used to process the received data to obtain processed data, and forward the processed data.
[0017] In some embodiments of the present application, the second processing module SOC may also process the received data to obtain processed data, and forward the obtained processed data through the first interface and the second interface to meet different data transmission requirements.
[0018] In a second aspect, some embodiments of the present application provide a data transmission method, which is applied to the switch described in the first aspect, and the method includes:
[0019] When the second processing module is in master mode or slave mode, data transmission is performed through the first interface or the second interface.
[0020] Some embodiments of the present application realize the function of a switch by combining a first processing module and a second processing module, that is, the first processing module is a CPU, and the second processing module is a SOC chip, which replaces the bridge chip or the switching chip in the prior art, thereby realizing a switch, and when a large number of transmission interfaces are required, various types of transmission interfaces can be provided to perform data transmission and save costs.
[0021] Optionally, when the second processing module is in a main mode, the method includes:
[0022] The data sent by the external device is received through the second interface, and the data is sent through the second interface, or the data is sent to the first processing module through the first interface.
[0023] Some embodiments of the present application set the SOC chip to the main mode, and can receive data sent by the external device through the second interface and send the data through the second interface, or send the data to the first processing module through the first interface, thereby realizing the network port expansion of the first processing module.
[0024] Optionally, when the second processing module is in slave mode, the method further includes:
[0025] The data sent by the first processing module is received through the first interface.
[0026] In some embodiments of the present application, the second processing module is set to a slave mode, and receives data sent by the first processing module through the first interface, thereby realizing network port expansion of the first processing module. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions of some embodiments of the present application, the drawings required for use in some embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 A schematic diagram of the structure of a switch provided in an embodiment of the present application;
[0029] Figure 2 A schematic diagram of the structure of another switch provided in an embodiment of the present application;
[0030] Figure 3 A schematic diagram of the structure of another switch provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The technical solutions in some embodiments of the present application will be described below in conjunction with the drawings in some embodiments of the present application.
[0032] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0033] As the amount of data transmission increases, a switch is used to transmit data during the transmission process. A switching chip or a bridge chip is used in the switch to provide a physical interface of the Ethernet. If a large number of interfaces are required for data transmission, a more expensive switch is required. In view of this, some embodiments of the present application provide a switch, which includes: a first processing module and a second processing module, the second processing module is a SOC chip, wherein the first interface of the first processing module is connected to the first interface of the second processing module; the second interface of the second processing module is connected to an external device, and data transmission is performed by setting the second processing module to the master mode or the slave mode respectively. In the embodiment of the present application, the first processing module and the second processing module are combined to realize the function of the switch, that is, the first processing module is a CPU, and the second processing module is a SOC chip, which replaces the bridge chip or the switching chip in the prior art, thereby realizing the switch, and when a large number of transmission interfaces are required, various types of transmission interfaces can be provided to perform data transmission and save costs.
[0034] like Figure 1As shown, an embodiment of the present application provides a switch, which includes: a first processing module 101 and a second processing module 102, the second processing module is a SOC chip, wherein the first interface of the first processing module is connected to the first interface of the second processing module; the second interface of the second processing module is connected to an external device 103, and data transmission is performed by setting the second processing module 102 to a master mode or a slave mode respectively.
[0035] The first processing module may be a CPU, i.e. a central processing chip, of the switch;
[0036] The second processing module is a SOC chip, which stands for "System on a Chip" and means "system-level chip" or "system on chip" in Chinese. It is an integrated circuit chip that integrates a microprocessor, analog IP core, digital IP core and memory (or off-chip memory control interface) on a single chip, and has the advantages of strong processing capability, high integration and low power consumption.
[0037] High integration: SOC chips integrate multiple functional modules on a single chip, greatly reducing the size and weight of electronic products, making the products lighter and more portable. This high degree of integration also simplifies circuit design and wiring, reducing production costs.
[0038] Low power consumption: Due to the use of advanced integrated circuit design technology, SOC chips can achieve low power consumption while ensuring performance. This is of great significance for extending battery life and improving the endurance of equipment, especially in the fields of mobile devices and the Internet of Things.
[0039] High performance: SOC chips integrate high-performance processors, memory and other functional modules, allowing the device to maintain efficient and stable operation when processing complex tasks. This is crucial to improving user experience and meeting high-end application requirements.
[0040] Customizability: The design of SOC chips is highly flexible and can be customized according to different application requirements. This means that developers can choose the appropriate processor, memory, interface, etc. according to specific market needs and product positioning to meet specific performance requirements.
[0041] High security: During the design and manufacturing process of SOC chips, various security features such as encryption, decryption, and identity authentication can be added to improve the security of the entire system. This is of great significance for protecting user data and preventing malicious attacks.
[0042] In summary, SOC chips have been widely used in electronic devices, mobile devices, the Internet of Things, etc. with their advantages of high integration, low power consumption, high performance, customizability and high security. With the continuous advancement of technology and the continuous expansion of the market, SOC chips will play a more important role in the future.
[0043] In the present application, the first processing module is a CPU, the second processing module is a SOC chip, and the first processing module is connected to the second processing module through a first interface, the first interface can be PCIE, and the second processing module also includes a second interface, which can be any type of interface, for example, it can be a high-speed interface or a low-speed interface, which can be set as needed in the embodiment of the present application.
[0044] Some embodiments of the present application realize the function of a switch by combining a first processing module and a second processing module, that is, the first processing module is a CPU, and the second processing module is a SOC chip, which replaces the bridge chip or the switching chip in the prior art, thereby realizing a switch, and when a large number of transmission interfaces are required, various types of transmission interfaces can be provided to perform data transmission and save costs.
[0045] Another embodiment of the present application further supplements the switch provided in the above embodiment.
[0046] Optionally, the first interface is a PCIE interface.
[0047] PCI-Express (Peripheral Component Interconnect Express) is a high-speed serial computer expansion bus standard. PCIE is a high-speed serial point-to-point dual-channel high-bandwidth transmission. The connected devices are allocated exclusive channel bandwidth and do not share bus bandwidth. They mainly support active power management, error reporting, end-to-end reliability transmission, hot plugging, and quality of service (QOS) and other functions. PCI Express devices communicate through logical connections called interconnects or links. A link is a point-to-point communication channel between two PCI Express ports that allows them to send and receive ordinary PCI requests (configuration, I / O, or memory read / write) and interrupts (INTX, MSI, or MSI-X). At the physical level, a link consists of one or more channels. Low-speed peripherals (such as 802.11 Wi-Fi cards) use single-channel (×1) links, while graphics adapters typically use wider and faster 16-channel links.
[0048] In some embodiments of the present application, the first processing module and the second processing module are connected via a first interface, which may be a PCIE interface, and the second processing module may perform data transmission with the first processing module via the first interface.
[0049] Optionally, the PCIE2_TXP pin of the first processing module is connected to the PCIE2_TXP pin of the second processing module, and the PCIE2_RXP pin of the first processing module is connected to the PCIE2_RXP pin of the second processing module.
[0050] In some embodiments of the present application, the pins of the PCIE interface of the CPU of the first processing module are connected to the pins of the PCIE interface of the SOC chip of the second processing module for transmitting data.
[0051] Optionally, the second interface includes at least a high-speed interface and a low-speed interface, wherein the high-speed interface includes at least one or more of a PCIE interface, a USB interface, a hard disk interface and an Ethernet interface, and the low-speed interface includes at least one or more of a UART interface, a SPI interface or an IIC interface.
[0052] Universal Serial Bus (USB) is a serial bus standard and a technical specification for input and output interfaces. USB is an external bus standard that regulates the connection and communication between computers and external devices. The USB interface has hot-swappable function. The USB interface can connect to a variety of peripherals, such as mouse and keyboard.
[0053] The hard disk interface type SATA, namely Serial ATA, also known as serial port hard disk, is the mainstream of computer mechanical hard disk and has basically replaced the traditional PATA hard disk.
[0054] The SATA interface has many advantages and features, including simple structure, hot-swap support, and reliable transmission. It uses a serial connection method and can check the transmission instructions (not just data). If an error is found, it will automatically correct it, which greatly improves the reliability of data transmission. USB is a commonly used PC interface. It has only 4 wires, two power wires and two signal wires, so the signal is transmitted serially. The USB interface is also called a serial port. The speed of USB2.0 can reach 480Mbps. The output voltage and current of the USB interface are: +5V, 500mA. In fact, there is an error, and the maximum cannot exceed + / -0.2V, that is, 4.8--5.2V. The 4 wires of the USB interface are generally distributed as follows. It should be noted that you must not reverse the positive and negative poles, otherwise it will burn the USB device or the computer's south bridge chip.
[0055] The Ethernet interface is the RJ45 interface. RJ45 is a type of information socket (i.e., communication lead-out terminal) connector in the wiring system. The connector consists of a plug (connector, crystal head) and a socket (module). The plug has 8 grooves and 8 contacts. RJ is the abbreviation of Registered Jack, which means "registered socket". This interface can be used for the TCP / IP protocol. The TCP / IP protocol stack consists of: the tasks of the entire communication network can be divided into different functional blocks, that is, abstracted into the so-called "layers". The protocols used for the Internet can be classified according to the TCP / IP reference model. The TCP / IP protocol stack starts with the third layer protocol IP (Internet Protocol). All these protocols are discussed and standardized in the corresponding RFC documents. Important protocols are marked with status in the corresponding RFC documents: "required", "recommended", and "elective". Other protocols may also have "experimental" or "historic" status.
[0056] UART interface: UART port refers to a physical interface form (hardware). UART is an asynchronous, full-duplex serial bus. It is much more complex than a synchronous serial port. There are two wires, one TXD for sending and one RXD for receiving.
[0057] UART serial data transmission does not require the use of a clock signal to synchronize transmission, but relies on a predefined configuration between the sending device and the receiving device. For both the sending device and the receiving device, the serial communication configuration of the two should be set to be exactly the same.
[0058] The IIC bus is a synchronous, half-duplex, bidirectional, two-wire serial bus. It consists of two buses: the serial clock line SCL and the serial data line SDA.
[0059] SCL line - responsible for generating synchronous clock pulses.
[0060] SDA line—responsible for transferring serial data between devices.
[0061] The bus can connect multiple I2C devices to the system. Devices connected to the I2C bus can be used as either master devices or slave devices. The SPI bus is a synchronous, full-duplex, bidirectional, 4-wire serial interface bus. It is a system consisting of a "single master device + multiple slave devices".
[0062] In the system, there can be multiple SPI master devices as long as only one master device is active at any time. It is often used to achieve communication between AD converters, EEPROM, FLASH, real-time clocks, digital signal processors and digital signal decoders.
[0063] In order to achieve communication, SPI has 4 signal lines, namely:
[0064] (1) Master Out Slave In (MOSI): The signal line that transmits data from the master device to the slave device, also known as Slave Input / Slave Data In (SI / SDI).
[0065] (2) Master In Slave Out (MISO): The signal line that transmits data from the slave device to the master device, also called slave output (Slave Output / Slave Data Out, SO / SDO).
[0066] (3) Serial Clock (SCLK): A signal line that transmits clock signals.
[0067] (4) Slave Select (SS): Signal line used to select slave devices, low level is valid.
[0068] The working timing mode of SPI is determined by the phase relationship between CPOL (Clock Polarity) and CPHA (Clock Phase). CPOL indicates the initial level of the clock signal. CPOL is 0, which means the initial state of the clock signal is low level, and 1, which means the initial level of the clock signal is high level. CPHA indicates the clock edge at which data is sampled. CPHA is 0, which means the data is sampled at the first clock change edge, and CPHA is 1, which means the data is sampled at the second clock change edge.
[0069] The master device is responsible for controlling the communication, sending data and generating the required synchronous clock pulses by initializing the data transmission. The slave device waits for commands from the master device and responds to command reception.
[0070] Both the master device and the slave device can act as a sending device or a receiving device. Regardless of whether the master device acts as a sending device or a receiving device, the synchronous clock signal can only be generated by the master device.
[0071] If you use a general-purpose IO port to simulate the I2C bus and implement bidirectional transmission, you will need an input / output port (SDA) and an output port (SCL).
[0072] In some embodiments of the present application, the second processing module, i.e., the SOC chip, further includes a second interface, and the second interface includes various types of interfaces, such as a high-speed interface and a low-speed interface, so as to meet different requirements.
[0073] Optionally, when the second processing module is in the master mode, the second processing module is used to receive data sent by an external device through the second interface and send the data through the second interface, or send data to the first processing module through the first interface.
[0074] Some embodiments of the present application set the SOC chip to the main mode, and can receive data sent by an external device through the second interface and send data through the second interface, or send data to the first processing module through the first interface, thereby realizing the network port expansion of the first processing module.
[0075] Optionally, when the second processing module is in slave mode, the second processing module is used to receive data sent by the first processing module through the first interface.
[0076] In some embodiments of the present application, the second processing module is set to a slave mode, and receives data sent by the first processing module through the first interface, thereby realizing network port expansion of the first processing module.
[0077] Optionally, the second processing module is further used to process the received data to obtain processed data, and forward the processed data.
[0078] In some embodiments of the present application, the second processing module SOC may also process the received data to obtain processed data, and forward the obtained processed data through the first interface and the second interface to meet different data transmission requirements.
[0079] Figure 2 A schematic diagram of the structure of another switch provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the switch provided in the embodiment of the present application includes a CPU and a SOC chip, and the CPU and the SOC chip are interconnected through PCIE, the PCIE interface of the CPU serves as the master device end, and the PCIE controller corresponding to the "PCIE2_TXP, PCIE2_RXP" pins of the SOC chip serves as the slave device end. The SOC chip leads the UXSGMII bus to the outside. Among them, the type of the SOC chip can be set as needed and is not specifically limited in the embodiment of the present application.
[0080] The switch provided in the embodiment of the present application is based on a SOC chip (system on chip), which realizes multiple functions such as PCIE conversion to Ethernet or other protocol interfaces. The use of SOC chips solves the demand for autonomous and controllable network cards and reduces hardware costs for customers.
[0081] When the types or number of external interfaces of the main CPU are insufficient, the SOC chip is used to replace the bridge chip in the existing switch, providing a high-speed interface, such as PCIE, to connect to the switch CPU, and an Ethernet interface to achieve network port expansion of the main processor, i.e., the CPU.
[0082] Figure 3 A schematic diagram of the structure of another switch provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the SOC chip in the switch includes:
[0083] The second processing module is a SOC chip, which can provide multiple interfaces.
[0084] 1) Set the first interface of the SOC chip, i.e., a high-speed interface such as PCIE or USB, to "slave" mode. "Slave" mode may also be called "slave" mode or "EP" mode. The "slave" mode interface may also be called the "northbound" interface, which is connected to the main CPU and can only receive data but cannot forward it;
[0085] 2) Set the second interface of the SOC chip, such as high-speed interfaces such as PCIE or USB or SATA or DP, and low-speed interfaces such as uart or spi or iic, to "master" mode. The "master" mode may also be called "master" mode or "RC" mode. The "master" mode interface can also be called the "southbound" interface, which connects to peripherals such as USB flash drives, hard boards, and mice;
[0086] 3) The operating system runs in the SOC chip, and is also equipped with a "soft forwarding" program;
[0087] 4) The data received by the "southbound" interface can be directly transferred to the northbound interface in the software system kernel, or it can be transferred to the "soft forwarding" program, and then transferred to the "northbound" interface by the "soft forwarding" program.
[0088] 5) The data received by the "northbound" interface is transferred to the "soft forwarding" program, which analyzes the "address" in the data. If the address is a "southbound" interface, the data is transferred to the corresponding "southbound" interface driver.
[0089] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.
[0090] Another embodiment of the present application provides a data transmission method, which is used to execute the switch provided in the above embodiment, and the method includes:
[0091] When the second processing module is in master mode or slave mode, data transmission is performed through the first interface or the second interface.
[0092] Some embodiments of the present application realize the function of a switch by combining a first processing module and a second processing module, that is, the first processing module is a CPU, and the second processing module is a SOC chip, which replaces the bridge chip or the switching chip in the prior art, thereby realizing a switch, and when a large number of transmission interfaces are required, various types of transmission interfaces can be provided to perform data transmission and save costs.
[0093] Optionally, when the second processing module is in the main mode, the method includes:
[0094] The data sent by the external device is received through the second interface, and the data is sent through the second interface, or the data is sent to the first processing module through the first interface.
[0095] Some embodiments of the present application set the SOC chip to the main mode, and can receive data sent by an external device through the second interface and send data through the second interface, or send data to the first processing module through the first interface, thereby realizing the network port expansion of the first processing module.
[0096] Optionally, when the second processing module is in slave mode, the method further includes:
[0097] The data sent by the first processing module is received through the first interface.
[0098] In some embodiments of the present application, the second processing module is set to a slave mode, and receives data sent by the first processing module through the first interface, thereby realizing network port expansion of the first processing module.
[0099] Regarding the device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0100] Regarding the device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0101] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.
[0102] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0103] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0104] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A switch, It is characterized in that The switch includes: a first processing module and a second processing module, wherein the second processing module is a SOC chip, wherein a first interface of the first processing module is connected to a first interface of the second processing module; a second interface of the second processing module is connected to an external device, and data transmission is performed by setting the second processing module to a master mode or a slave mode respectively.
2. The switch according to claim 1, It is characterized in that The first interface is a PCIE interface.
3. The switch according to claim 2, It is characterized in that The PCIE2_TXP pin of the first processing module is connected to the PCIE2_TXP pin of the second processing module, and the PCIE2_RXP pin of the first processing module is connected to the PCIE2_RXP pin of the second processing module.
4. The switch according to claim 1, It is characterized in that The second interface includes at least a high-speed interface and a low-speed interface, wherein the high-speed interface includes at least one or more of a PCIE interface, a USB interface, a hard disk interface and an Ethernet interface, and the low-speed interface includes at least one or more of a UART interface, an SPI interface or an IIC interface.
5. The switch according to claim 1, It is characterized in that When the second processing module is in the master mode, the second processing module is used to receive data sent by the external device through the second interface and send the data through the second interface, or send the data to the first processing module through the first interface.
6. The switch according to claim 1, It is characterized in that When the second processing module is in slave mode, the second processing module is used to receive data sent by the first processing module through the first interface.
7. The switch according to claim 1, It is characterized in that The second processing module is further used to process the received data to obtain processed data and forward the processed data.
8. A data transmission method, It is characterized in that Applied to the switch according to any one of claims 1 to 7, the method comprises: When the second processing module is in master mode or slave mode, data transmission is performed through the first interface or the second interface.
9. The data transmission method according to claim 8, It is characterized in that In case the second processing module is in main mode, the method comprises: The data sent by the external device is received through the second interface, and the data is sent through the second interface, or the data is sent to the first processing module through the first interface.
10. The data transmission method according to claim 8, It is characterized in that In the case where the second processing module is in slave mode, the method further includes: The data sent by the first processing module is received through the first interface.
