CN115174706A - Method and system for converting multi-channel bus into Ethernet - Google Patents

Method and system for converting multi-channel bus into Ethernet Download PDF

Info

Publication number
CN115174706A
CN115174706A CN202211092520.0A CN202211092520A CN115174706A CN 115174706 A CN115174706 A CN 115174706A CN 202211092520 A CN202211092520 A CN 202211092520A CN 115174706 A CN115174706 A CN 115174706A
Authority
CN
China
Prior art keywords
bus
ethernet
bus interface
interface
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211092520.0A
Other languages
Chinese (zh)
Inventor
徐立颖
冯笑
李剑平
景三辉
刘野
梁俊
刘正尧
靳琪
周亚光
许松伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CETC 15 Research Institute
Original Assignee
CETC 15 Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CETC 15 Research Institute filed Critical CETC 15 Research Institute
Priority to CN202211092520.0A priority Critical patent/CN115174706A/en
Publication of CN115174706A publication Critical patent/CN115174706A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40032Details regarding a bus interface enhancer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application discloses a method and a system for converting a multi-channel bus into an Ethernet, and also discloses an electronic device and a non-transient computer readable storage medium, belonging to the field of multi-bus device communication, wherein the method comprises the following steps: the method comprises the following steps of finishing multi-path expansion aiming at a multi-path bus interface and an Ethernet bus interface through a chip, wherein the chip comprises an ARM chip and/or an FPGA chip, and the multi-path bus comprises a CAN bus, an RS485 bus, an RS232 bus and an RS422 bus; the construction of a system and the driving realization of a peripheral bus of equipment are completed through an operating system; wherein the operating system comprises a Linux system; and completing the receiving and/or sending of data between the multipath bus interface and the Ethernet bus interface through a specific configuration file. The method and the device can realize unified management of the calling interfaces of the multi-bus equipment in the complex system; by using the bus hardware interface port, the system software can realize the data sending direction according to the data source and the sending port.

Description

Method and system for converting multi-channel bus into Ethernet
Technical Field
The present application relates to the field of multi-bus device communication, and in particular, to a method and system for converting a multi-bus to an ethernet network.
Background
At present, various buses are adopted for communication among devices in the market, unified management of various buses cannot be achieved, and the use and the expansion are difficult.
At present, in the industrial and military fields, a complex system is often composed based on multiple types of equipment, and various functions are cooperatively realized. In order to ensure the communication among various devices in the system, improve the system access efficiency and reduce the development difficulty, the unified interface management of the communication among the devices in the complex system becomes a necessary trend. At present, other bus communication to ethernet communication devices are mainly used for converting a single bus format into an ethernet communication format, and for a complex system comprising a large number of different bus hardware devices, the application mode cannot meet the functional requirements and seriously increases the system load, which is specifically represented as follows:
1) Data of different bus hardware are distinguished completely depending on system software, and software design is difficult to realize in a complex system;
2) The hardware does not have the configurability of the bus interface, and the data confusion of the system is easily caused after the hardware of the bus interface is changed;
3) The system does not have a uniform hardware access standard, newly added bus equipment is difficult to access to the existing system, the equipment management functions are dispersed and isolated, and global equipment management is difficult to realize.
Aiming at the problems, the application provides a method and a system for converting a multi-channel bus into an Ethernet, which can realize the unified management of the calling interfaces of multi-bus equipment in a complex system; by using the bus hardware interface port, the system software can realize the sending direction of the data according to the data source and the sending port area.
Disclosure of Invention
In order to solve the deficiencies of the prior art, the present application provides a method for converting a multi-bus to ethernet, comprising: the method comprises the following steps of finishing multi-path expansion aiming at a multi-path bus interface and an Ethernet bus interface through a chip, wherein the chip comprises an ARM chip and/or an FPGA chip, and the multi-path bus comprises a CAN bus, an RS485 bus, an RS232 bus and an RS422 bus; the construction of a system and the driving realization of a peripheral bus of equipment are completed through an operating system; wherein the operating system comprises a Linux system; completing the receiving and/or sending of data between the multipath bus interface and the Ethernet bus interface through a specific configuration file; the method and the device can realize unified management of the calling interfaces of the multi-bus equipment in the complex system; by using the bus hardware interface port, system software can realize the sending direction of data according to the data source and the sending port; meanwhile, the device for converting the multi-bus communication environment into the unified Ethernet communication can ensure that when buses with different data formats are simultaneously accessed into the system, the system can adopt the unified Ethernet interface to manage the related devices
The technical effect that this application will reach is realized through following scheme:
in a first aspect, an embodiment of the present invention provides a method for converting a multi-path bus into an ethernet network, including:
the method comprises the following steps of finishing multi-path expansion aiming at a multi-path bus interface and an Ethernet bus interface through a chip, wherein the chip comprises an ARM chip and/or an FPGA chip, and the multi-path bus comprises a CAN bus, an RS485 bus, an RS232 bus and an RS422 bus;
the construction of a system and the driving realization of a peripheral bus of equipment are completed through an operating system; wherein the operating system comprises a Linux system;
completing the receiving and/or sending of data between the multipath bus interface and the Ethernet bus interface through a specific configuration file;
the receiving and/or sending of the data comprises any one or more of the following items:
according to the conversion mapping table, data sent by the multi-path bus interface is forwarded to an Ethernet bus interface;
according to a conversion mapping table, the Ethernet bus interface receives data sent by the multi-path bus interface;
according to a conversion mapping table, forwarding the data sent by the Ethernet bus interface to the multi-path bus interface;
and according to the conversion mapping table, the multi-path bus interface receives the data sent by the Ethernet.
Further, the conversion mapping table includes: interface port configuration parameters and transmit port configuration parameters.
Further, the forwarding the data sent by the ethernet bus interface to the multi-path bus interface according to the conversion mapping table includes:
forwarding data sent by the Ethernet bus interface to a first bus interface, wherein the first bus interface is any one of the multiple bus interfaces, and the first bus interface corresponds to a sending port configuration parameter of the data sent by the Ethernet.
In a second aspect, an embodiment of the present invention provides a system for converting a multi-bus to an ethernet network, including:
the system is capable of performing the method of any one of the above, and the system comprises: the system comprises a multi-path bus interface, an Ethernet bus interface and a unified conversion device; wherein
The unified conversion equipment is used for realizing data communication between the multi-path bus interface and the Ethernet bus interface;
the multi-channel bus interface is used for realizing data transmission according to actual needs;
the ethernet bus interface is used for processing the multipath data sent by the multipath bus interface forwarded by the unified conversion equipment through an interface.
Further, still include: and the transparent transmission application module is used for completing the transparent transmission of the data between the multi-path bus interface and the Ethernet bus interface.
Further, still include: a conversion mapping module, configured to implement port mapping between the multiple bus interfaces and the ethernet bus interface.
Further, a port mapping between each of the multiplexed bus interfaces and the ethernet bus interface is unique.
In another aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method as described above when executing the program.
In yet another aspect, there is also provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method as described above.
The method and the system for converting the multipath bus into the Ethernet provided by the embodiment of the invention can shorten the starting time of the Ethernet switching module, improve the real-time property and the robustness of a system communication network and realize the technical effects of quickly establishing system service interaction and quickly recovering fault restart.
Drawings
In order to more clearly illustrate the embodiments or prior art solutions of the present application, the drawings used in the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the description below are only some embodiments described in the present application, and that other drawings can be obtained by those skilled in the art without inventive labor.
Fig. 1 is a schematic flowchart illustrating a method for converting a multi-bus to ethernet in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a system for converting a multi-bus to ethernet in an embodiment of the present application;
fig. 3 is a schematic block diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following embodiments and accompanying drawings. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is to be noted that unless otherwise defined, technical or scientific terms used in one or more embodiments of the present disclosure should have the ordinary meaning as understood by one of ordinary skill in the art to which the present disclosure belongs. The use of "first," "second," and similar terms in one or more embodiments of the present disclosure is not intended to indicate any order, quantity, or importance, but rather is used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item preceding the word comprises the element or item listed after the word and its equivalent, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
Ethernet (Ethernet) is the most widely used lan communication method and is also a protocol. And an ethernet interface is a port for a network data connection.
Embodiments of the present application will be described in detail below with reference to fig. 1-3;
fig. 1 is a schematic flowchart illustrating a method for converting a multi-bus to ethernet in an embodiment of the present application; as shown in fig. 1, the method for converting a multi-path bus into an ethernet mainly includes the following steps:
step 100, completing multi-path expansion aiming at a multi-path bus interface and an Ethernet bus interface through a chip;
illustratively, the chip includes an ARM chip and/or an FPGA chip, and the multi-path bus includes a CAN bus, an RS485 bus, an RS232 bus, an RS422 bus, and the like, where the multi-path bus is merely exemplary, and other buses known to those skilled in the art, in which other buses CAN implement the bus function, may also be applied thereto, and are not particularly limited;
step 101, completing the construction of a system and the driving realization of a peripheral bus of equipment through an operating system;
exemplarily, the operating system includes a Linux system, and other operating systems, such as a Windows system, a Mac system, a Linux system, a Chrome OS system, and a UNIX operating system, may also be applied thereto, which is not limited thereto, and a corresponding operating system may be applied as long as a person skilled in the art can implement the function of the operating system;
102, completing the receiving and/or sending of data between the multi-path bus interface and the Ethernet bus interface through a specific configuration file;
illustratively, the receiving and/or transmitting of data includes any one or more of:
according to a conversion mapping table, forwarding the data sent by the multi-path bus interface to an Ethernet bus interface;
according to the conversion mapping table, the Ethernet bus interface receives the data sent by the multi-path bus interface;
according to a conversion mapping table, forwarding the data sent by the Ethernet bus interface to the multi-path bus interface;
and according to the conversion mapping table, the multi-path bus interface receives the data sent by the Ethernet.
Specifically, the conversion mapping table may include port configuration information, and the port configuration information may include interface port configuration information and sending port configuration information, as shown in the following table:
table 1 conversion mapping table
Figure 873009DEST_PATH_IMAGE001
As can be seen by referring to table 1, the conversion mapping table may include a plurality of contents, the above table is only an example, the example part only shows several relatively important table entries, and other contents, such as baud rate, protocol conversion length, and the like, may also be extended in the table, and the table entries may be extended and selected according to actual needs, which is not described herein again.
Specifically, the conversion mapping table in this embodiment may include a bus interface number for indicating which type of bus is the 15 th interface, for example, CAN-15 indicates the 15 th interface of the CAN bus; the method also comprises receiving port configuration information and sending port configuration information, wherein the port 11+ IP address 22 of the receiving port configuration information represents that the CAN-15 bus is used for receiving data sent by the port 11 and the port with the IP address of 22, and other sending port configuration information CAN refer to the understanding of the port configuration information of the interface.
Moreover, the mapping relations are in one-to-one correspondence, each multipath bus interface is unique to the Ethernet bus interface, the condition that each multipath bus interface has one-to-many Ethernet ports or one-to-many Ethernet ports cannot exist, the mode can ensure the uniqueness of data sources and destinations, and the possibility of data confusion and disorder is avoided.
Fig. 2 is a schematic structural diagram of a system for converting a multi-bus to ethernet in an embodiment of the present application; as shown in fig. 2, the system for converting a multi-path bus into an ethernet mainly includes:
the system comprises a multi-channel bus interface, an Ethernet bus interface and a unified conversion device; wherein
The unified conversion equipment is used for realizing data communication between the multi-path bus interface and the Ethernet bus interface;
the multi-channel bus interface is used for realizing data transmission according to actual needs;
and the Ethernet bus interface is used for processing the multi-path data transmitted by the multi-path bus interface forwarded by the unified conversion equipment through an interface.
Specifically, the unified conversion device is connected with a multi-channel bus interface, and may include a CAN bus, an RS232 bus, an RS422 bus, an RS485 bus, and the like; other buses may be used herein;
illustratively, the other end of the unified conversion device is connected with the straight system server through an Ethernet bus;
illustratively, the unified conversion apparatus further includes: and the transparent transmission application module is used for completing the transparent transmission of data between the multipath bus interface and the Ethernet bus interface.
Exemplarily, the method further comprises the following steps: and the conversion mapping module is used for realizing port mapping between the multi-path bus interface and the Ethernet bus interface.
In particular, the port mapping between each of the multiple bus interfaces and the ethernet bus interface is unique.
The configuration file for converting the multipath bus into the Ethernet can ensure the uniqueness of other bus interfaces and Ethernet bus interfaces, the condition that other bus interfaces are one-to-many Ethernet bus interfaces or one-to-many other bus interfaces of the Ethernet bus interfaces cannot exist, the mode ensures the uniqueness of data sources and destinations, and the possibility of data confusion and disorder is avoided.
The following is further detailed by specific examples:
example one, CAN bus interface and Ethernet bus interface communication example
On one hand, when the Ethernet bus sends data to the CAN bus, the data with the specified format is sent to the specified IP and the specified port number through the Ethernet bus, 0x88 is a data head part which represents that the specified data length is 8 bytes and the data frame format is an extended frame, the next 4 bytes are the frame ID of the data frame, the next 8 bytes are the content of the data frame, and the unified conversion equipment sends the data according to the CAN bus port specified by the port after receiving the data of the specified Ethernet port;
on the other hand, in the case that the CAN bus sends data to the ethernet bus, it is specified that data received through a certain CAN bus is assembled, where "0x88" is a data header, which represents that the designated data length is 8 bytes and the data frame format is an extended frame, the next 4 bytes are the frame ID of the data frame, and the next 8 bytes are the data frame content; after receiving the data of the designated CAN bus port, the unified conversion equipment transmits the data according to the Ethernet bus interface designated by the bus port;
in order to realize the interconnection and intercommunication of data in the system after various bus interfaces are converted into the ethernet, the mapping between each bus interface and the ethernet bus interface is required to be specified.
TABLE 2 CAN bus interface and Ethernet bus interface mapping relation table
Figure 627338DEST_PATH_IMAGE002
For CAN to ethernet, as shown in table 2, in the CAN bus interface mapping table, the receiving port mapped by the CAN-1 bus interface is 209.3.0.17:60000, send port 209.3.0.1:60017, data length 13 bytes; adding configuration 209.3.0.17 to the local IP of the device, when receiving ethernet port 209.3.0.17:60000, sending a CAN frame data to a CAN bus interface CAN-1; when the CAN bus interface CAN-1 receives a CAN data frame, the data frame is transmitted to the ethernet bus interface 209.3.0.1:60017 send 13 bytes of data.
Second example, communication example between serial port bus interface and Ethernet bus interface
On one hand, the serial port bus interface sends data to the Ethernet bus interface, the data received by a certain serial port bus is specified to be assembled, 0x88 is a data head, and then the serial port type bus interface of the unified conversion equipment sends the data to the corresponding Ethernet bus interface according to the specified data length in the configuration file;
on the other hand, the Ethernet sends data to the serial port, stipulates that the specified format data is sent to the specified IP and port number through the Ethernet, the '0 x 88' is the data head, and then according to the specified data length in the configuration file, the specified Ethernet bus interface of the unified conversion equipment sends data to the corresponding serial port type bus interface;
in order to realize the interconnection and intercommunication of data in the system after various bus interfaces are converted into the ethernet, the mapping between each bus interface and the ethernet bus interface is required to be specified.
Table 3 mapping relation table of serial port bus interface and ethernet bus interface
Figure 895509DEST_PATH_IMAGE003
For RS232 to ethernet, as shown in table 3, in the serial port bus interface mapping table, the receiving port mapped by the RS232-1 bus interface is 209.3.0.10:60000, send port 209.3.0.1:60010, data length 30 bytes; adding configuration 209.3.0.10 in the local IP of the device, when receiving ethernet interface 209.3.0.10:60000, 30 bytes of data are sent to a serial port bus interface RS 232-1; when the serial port bus interface RS232-1 receives 30 bytes with a header of 0x88, it will transfer the data to the ethernet bus interface 209.3.0.1:60010 sends the data.
The method for converting the multi-path bus into the Ethernet solves the problem of complicated interaction caused by adopting various bus communication by each device in the system through a method of combining software and hardware, specifies various bus access standards, improves the access freedom of data, realizes the access unification and the convenience of various bus device data in the system in the form of Ethernet interfaces, divides the channels of the configuration files for converting the various bus data into the Ethernet data in the system to form unified uploading and issuing Ethernet data interfaces, provides a convenient and reliable unified data channel for reading and issuing the data by the system, can promote the globalization and unification management of the system, and has wide application prospect.
Fig. 3 is a schematic block diagram of an electronic device in an embodiment of the present application.
It should be noted that the method of one or more embodiments of the present invention may be executed by a single device, such as a computer or server. The method of the embodiment can also be applied to a distributed scene and is completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the devices may perform only one or more steps of the method of one or more embodiments of the present invention, and the devices may interact with each other to complete the method.
It should be noted that the above-mentioned description describes specific embodiments of the present invention. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the same inventive concept, the invention also discloses an electronic device corresponding to the method of any embodiment;
specifically, fig. 3 shows a schematic diagram of a hardware structure of an electronic device supporting the method for converting multiple buses into ethernet in this embodiment, where the device may include: a processor 410, a memory 420, an input/output interface 430, a communication interface 440, and a bus 450. Wherein processor 410, memory 420, input/output interface 430, and communication interface 440 are communicatively coupled to each other within the device via bus 450.
The processor 410 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solution provided by the embodiment of the present invention.
The Memory 420 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 420 may store an operating system and other application programs, and when the technical solution provided by the embodiment of the present invention is implemented by software or firmware, the relevant program codes are stored in the memory 420 and called to be executed by the processor 410.
The input/output interface 430 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 440 is used for connecting a communication module (not shown in the figure) to implement communication interaction between the present device and other devices. The communication module can realize communication in a wired mode (for example, USB, network cable, etc.), and can also realize communication in a wireless mode (for example, mobile network, WIFI, bluetooth, etc.).
Bus 450 includes a path that transfers information between various components of the device, such as processor 410, memory 420, input/output interface 430, and communication interface 440.
It should be noted that although the above-mentioned device only shows the processor 410, the memory 420, the input/output interface 430, the communication interface 440 and the bus 450, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only the components necessary to implement embodiments of the present invention, and need not include all of the components illustrated in the figures.
The electronic device of the foregoing embodiment is used to implement the method for converting a multi-path bus into an ethernet network in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to any of the above-described embodiment methods, one or more embodiments of the present invention further provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method for converting a multi-bus into an ethernet network according to any of the above-described embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the foregoing embodiment are used to enable the computer to execute the method for converting a multi-path bus into an ethernet network according to any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; features from the above embodiments or from different embodiments may also be combined within the inventive idea, steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the invention as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures, for simplicity of illustration and discussion, and so as not to obscure one or more embodiments of the invention. Furthermore, devices may be shown in block diagram form in order to avoid obscuring the one or more embodiments of the present invention, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the one or more embodiments of the present invention are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the invention, it should be apparent to one skilled in the art that one or more embodiments of the invention can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures, such as Dynamic RAM (DRAM), may use the discussed embodiments.
It is intended that the one or more embodiments of the present invention embrace all such alternatives, modifications and variations as fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of one or more embodiments of the present invention are intended to be included within the scope of the present invention.

Claims (9)

1. A method for converting a multiplexed bus to ethernet, the method comprising:
the method comprises the following steps of finishing multi-path expansion aiming at a multi-path bus interface and an Ethernet bus interface through a chip, wherein the chip comprises an ARM chip and/or an FPGA chip, and the multi-path bus comprises a CAN bus, an RS485 bus, an RS232 bus and an RS422 bus;
the construction of a system and the driving realization of a peripheral bus of equipment are completed through an operating system; wherein the operating system comprises a Linux system;
completing the receiving and/or sending of data between the multipath bus interface and the Ethernet bus interface through a specific configuration file;
the receiving and/or sending of the data comprises any one or more of the following:
according to a conversion mapping table, forwarding the data sent by the multi-path bus interface to an Ethernet bus interface;
according to a conversion mapping table, the Ethernet bus interface receives data sent by the multi-path bus interface;
according to a conversion mapping table, data sent by the Ethernet bus interface is forwarded to the multi-path bus interface;
and according to the conversion mapping table, the multi-path bus interface receives the data sent by the Ethernet bus interface.
2. The method of converting multiplexed bus to ethernet of claim 1, wherein the translation mapping table comprises: interface port configuration parameters and transmit port configuration parameters.
3. The method for converting multiple buses to ethernet according to claim 1, wherein the forwarding the data sent by the ethernet bus interface to the multiple bus interfaces according to the conversion mapping table comprises:
forwarding data sent by the Ethernet bus interface to a first bus interface, wherein the first bus interface is any one of the multiple bus interfaces, and the first bus interface corresponds to a sending port configuration parameter of the data sent by the Ethernet bus interface.
4. A multiplexed bus-to-ethernet system capable of performing the method of any of claims 1-3, the system comprising: the system comprises a multi-channel bus interface, an Ethernet bus interface and a unified conversion device; wherein
The unified conversion equipment is used for realizing data communication between the multi-path bus interface and the Ethernet bus interface;
the multi-channel bus interface is used for realizing data transmission according to actual needs;
the ethernet bus interface is used for processing the multipath data sent by the multipath bus interface forwarded by the unified conversion equipment through an interface.
5. The multiplexed bus to ethernet system according to claim 4, further comprising: and the transparent transmission application module is used for completing the transparent transmission of data between the multipath bus interface and the Ethernet bus interface.
6. The multiplexed bus to ethernet system of claim 5, further comprising: a conversion mapping module for implementing port mapping between the multi-path bus interface and the Ethernet bus interface.
7. The multi-bus to ethernet system according to claim 6, wherein the port mapping between each of said multi-bus interfaces and said ethernet bus interface is unique.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method according to any one of claims 1 to 3 when executing the program.
9. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 3.
CN202211092520.0A 2022-09-08 2022-09-08 Method and system for converting multi-channel bus into Ethernet Pending CN115174706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211092520.0A CN115174706A (en) 2022-09-08 2022-09-08 Method and system for converting multi-channel bus into Ethernet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211092520.0A CN115174706A (en) 2022-09-08 2022-09-08 Method and system for converting multi-channel bus into Ethernet

Publications (1)

Publication Number Publication Date
CN115174706A true CN115174706A (en) 2022-10-11

Family

ID=83481874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211092520.0A Pending CN115174706A (en) 2022-09-08 2022-09-08 Method and system for converting multi-channel bus into Ethernet

Country Status (1)

Country Link
CN (1) CN115174706A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201051741Y (en) * 2007-04-30 2008-04-23 西安大唐电信有限公司 Optical fiber multi-service access device
CN201699739U (en) * 2010-05-14 2011-01-05 南京工业职业技术学院 AT91RM9200-based fieldbus protocol conversion gateway platform
CN104363168A (en) * 2014-12-05 2015-02-18 中国北车集团大连机车研究所有限公司 Locomotive mounted general data communication gateway
CN204291023U (en) * 2014-12-11 2015-04-22 中国矿业大学 A kind of RS232, RS485 and CAN based on FPGA turns Ethernet device
CN104901877A (en) * 2015-06-17 2015-09-09 燕山大学 Multi-interface self-adaptive wireless heterogeneous network protocol conversion method and communication device
CN105005215A (en) * 2015-05-28 2015-10-28 徐禄勇 Protocol conversion device and data acquisition control system for industrial bus equipment
CN204928889U (en) * 2015-07-06 2015-12-30 武汉智特科技股份有限公司 Many interfaces protocol converter
CN107995081A (en) * 2017-12-29 2018-05-04 徐州中矿大传动与自动化有限公司 The system and method for a variety of communication bus conversions is supported at the same time

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201051741Y (en) * 2007-04-30 2008-04-23 西安大唐电信有限公司 Optical fiber multi-service access device
CN201699739U (en) * 2010-05-14 2011-01-05 南京工业职业技术学院 AT91RM9200-based fieldbus protocol conversion gateway platform
CN104363168A (en) * 2014-12-05 2015-02-18 中国北车集团大连机车研究所有限公司 Locomotive mounted general data communication gateway
CN204291023U (en) * 2014-12-11 2015-04-22 中国矿业大学 A kind of RS232, RS485 and CAN based on FPGA turns Ethernet device
CN105005215A (en) * 2015-05-28 2015-10-28 徐禄勇 Protocol conversion device and data acquisition control system for industrial bus equipment
CN104901877A (en) * 2015-06-17 2015-09-09 燕山大学 Multi-interface self-adaptive wireless heterogeneous network protocol conversion method and communication device
CN204928889U (en) * 2015-07-06 2015-12-30 武汉智特科技股份有限公司 Many interfaces protocol converter
CN107995081A (en) * 2017-12-29 2018-05-04 徐州中矿大传动与自动化有限公司 The system and method for a variety of communication bus conversions is supported at the same time

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
安妮等: "基于嵌入式的现场总线和TCP/IP协议转换的技术研究", 《现代电子技术》 *
朱成杰等: "基于LPC2292的隔爆兼本安型矿用多协议转换器的研制", 《煤矿机械》 *
李根等: "一种用于汽车台架测试的多协议网关设计", 《电子科技》 *
李策: "基于DSP的混合现场总线以太网网关的设计", 《自动化与仪器仪表》 *
袁飞等: "多类型总线转换器的研究与设计", 《无线通信技术》 *

Similar Documents

Publication Publication Date Title
CN110912836B (en) Method for forwarding data by forwarding device, control device, storage medium and system
US9347990B2 (en) Communication device, test system and test method thereof
TW201832089A (en) Multi-port multi-sideband-gpio consolidation technique over a multi-drop serial bus
CN103415062A (en) Network connection device, wireless router and network connection method
WO2021121203A1 (en) Method and apparatus for configuring service table, network device, and storage medium
CN113507532A (en) Method for network address translation, corresponding server, storage medium and electronic device
US20220070108A1 (en) Combined write enable mask and credit return field
US20230132724A1 (en) Broadcast adapters in a network-on-chip
CN114710513B (en) Processing system and method for network data
CN111756629B (en) Method, device, equipment, network and medium for accessing equipment to overlay network and communication
US9542200B2 (en) Dynamic port naming in a chassis
CN108881247B (en) Message conversion method, device, gateway equipment and storage medium
CN113691466B (en) Data transmission method, intelligent network card, computing device and storage medium
CN115174706A (en) Method and system for converting multi-channel bus into Ethernet
US20080270512A1 (en) Virtual network projection system supporting multiple projection sources and method thereof
CN111679918B (en) Message transmission method and device
CN116450554A (en) Interrupt processing method, root complex device and electronic device
KR20160141558A (en) Application processor accessing data regardless of storage method and mobile apparatus having the same
CN106330787B (en) Data packet transmission method, equipment and system
CN103036815B (en) A kind of information technology and communication technology ICT emerging system
KR930001199B1 (en) Method for processing data in lan
CN116827777B (en) Data acquisition method and network configuration method suitable for n target devices with same IP addresses, electronic device and data acquisition system
WO2023024382A1 (en) Network sharing method and apparatus, and electronic device and computer-readable storage medium
CN112445628B (en) Inter-process resource sharing method and device and electronic equipment
CN111431886B (en) Ethernet communication system, method, device and medium for implementing Ethernet communication

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20221011

RJ01 Rejection of invention patent application after publication