Multi-protocol analysis device based on embedded extensible module
By adopting a multi-protocol resolution device based on embedded extensible modules in the embedded protocol analysis device, the problem of difficulty in dealing with multiple protocols in the prior art is solved, the flexibility and scalability of protocol analysis are achieved, and the requirements of efficient processing of large data volume and high real-time performance are met.
Patent Information
- Application Number
- CN202411861769.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-02-28
AI Technical Summary
Existing embedded protocol parsing devices are difficult to deal with multiple protocols, and major changes to the entire system are required when new protocols are supported, resulting in increased costs and extended development cycles.
It adopts a multi-protocol resolution device based on embedded extensible modules, including power supply module, main control module and multiple expansion modules. It is connected in series through the intranet interface of the same structure and the same protocol. The main control module has built-in protocol resolution manager and protocol resolution program generator, and the extension module has independent resolution capabilities.
It realizes flexible support for multiple communication protocols, has good scalability, can handle a large number of protocol parsing work in parallel, and meets the requirements of large data volume and high real-time.
Smart Images

Figure CN119544841A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of data transmission, and in particular to a multi-protocol parsing device based on an embedded expandable module. Background Art
[0002] The protocol parsing device with embedded structure is in a highly integrated state between software and hardware. The hardware cannot be separated from the embedded software driver, and the embedded software cannot be separated from the hardware support. If the hardware needs to be modified, the system architecture of the entire embedded system needs to be replanned. The maintenance of the entire system will become more and more difficult. Therefore, the current protocol parsing device with embedded structure can usually only handle a single or limited number of protocols, which is difficult to meet the needs of the increasingly complex communication environment.
[0003] In addition, in embedded devices, different sensors or products use different hardware interfaces, and there are hardware interface adaptation issues between the protocol parsing device and the device.
[0004] In addition, with the continuous development of communication technology, higher requirements are placed on the performance and flexibility of protocol parsing devices. When processing large amounts of data, existing protocol parsing solutions will encounter performance bottlenecks due to hardware rigidity, and when adding new protocol support, it is often necessary to make major changes to the entire system, resulting in increased costs and extended development cycles. Summary of the invention
[0005] The present invention is intended to provide a multi-protocol parsing device based on an embedded extensible module, aiming at the transmission performance of transmission between multiple interface styles and multiple protocols and the flexibility of signal transmission.
[0006] To achieve the above-mentioned purpose, the present invention adopts the following technical scheme: a multi-protocol parsing device based on an embedded extensible module, comprising a power supply module, a main control module and a plurality of extension modules, wherein the power supply module, the main control module and the extension modules are all independently packaged, and the power supply module, the main control module and the extension modules are connected in series through an intranet interface of the same structure and the same protocol, the power supply module is used to convert a local power supply into a DC power for a main control module or an extension module, the extension module comprises a local interface for communicating with a local device, and a parsing unit for parsing data of a local device, the main control module comprises a core control unit, the core control unit is equipped with a protocol parsing manager and a protocol parsing program generator, the protocol parsing manager is used to configure a protocol parsing strategy according to a local interface style and a protocol, and the protocol parsing program generator is used to send a protocol parsing strategy that conforms to the local interface to the parsing unit.
[0007] The working principle and advantages of this solution are: during use, the power supply module, the main control module and multiple extension modules are connected in series through the intranet interface of the same structure and the same protocol, so that all modules form a parallel structure in the communication and power supply circuits. The power supply module provides power to all other modules, and the communication lines in the multiple modules connected in series form a bus structure, so that each extension module can communicate directly with the main control module.
[0008] The hardware adopts an extensible modular design, and each communication interface corresponds to an extensible module. Different expansion modules are selected according to the data interface style used by the local device.
[0009] The software uses distributed data management. The main control module is responsible for processing data distribution and data management of the extension module. The main control module determines the communication protocol type of the input data of the extension module. The main control module has a built-in protocol parsing strategy and assigns the protocol parsing strategy that meets the current extension module to the extension module. The main control module is also responsible for monitoring the working status of each protocol parsing module to achieve load balancing and fault switching.
[0010] The parsing device adopts an embedded expandable module architecture, which can flexibly support the parsing of multiple communication protocols and has good scalability; each expansion module has independent parsing capabilities, and the data parsing process is completed through the expansion module connected to the local device. The main control module is no longer responsible for data parsing, which ensures the operating speed of the main control module.
[0011] The expansion module and the main control module process in parallel, distributing a large amount of protocol parsing work to other expansion modules to meet the requirements of large data volume and high real-time performance. The diversity of the expansion module communication interface allows it to connect to the communication environment of all current local devices.
[0012] Preferably, the intranet interface on the power supply module, the main control module and the extension module includes a signal plug and a signal socket, and a power line and a communication bus are arranged between the signal plug and the signal socket. When the power supply module, the main control module and the plurality of extension modules are connected in sequence through the signal plug and the signal socket, the main control module and the plurality of extension modules all draw power from the power line, and the main control module or the plurality of extension modules complete data transmission through the communication bus.
[0013] Preferably, the core control unit in the main control module is a first MCU chip, which is used to implement the functions of the protocol parsing manager and the protocol parsing program generator. The first MCU chip identifies the data protocol parsed by the extension module, configures the parsing rules through the protocol parsing manager, fills the configured protocol rules into the protocol parsing program generator, and allows the protocol parsing program generator to generate the corresponding protocol parsing program and send it to the parsing unit of the extension module.
[0014] Preferably, the parsing unit in the expansion module is a second MCU chip, which is used to execute a protocol parsing program and cache local device data. The second MCU chip executes a protocol parsing program to parse the data of the local device into a universal protocol, and caches the parsed data in the second MCU chip, waiting for the first MCU chip to receive it.
[0015] Preferably, the main control module and the expansion module are both provided with a network switch chip, and the network switch chip is connected between the signal plug and the signal socket through a communication bus. The network switch chip realizes the function of the bus, so that the signals transmitted between the modules do not interfere with each other.
[0016] Preferably, the hardware in the power supply module for converting the local power supply into direct current power for the main control module or the expansion module is an AC-DC chip.
[0017] Preferably, the main control module further includes a wireless network transmission chip, and the core control unit communicates with the wireless network transmission chip via a serial port to upload data in the core control unit to the server.
[0018] Preferably, the intranet interface uses an RJ-45 network interface type and adopts a TCP / IP data transmission protocol. With the above interface type and transmission protocol, a commonly used Ethernet communication line can be directly used for connection. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a schematic diagram of the structure of a multi-protocol parsing device based on an embedded extensible module in Example 1; Figure 2 A schematic diagram of the process of processing data for the main control module; Figure 3 Schematic diagram of the process of processing data for the extension module. DETAILED DESCRIPTION
[0020] The following is further described in detail through specific implementation methods: The reference numerals in the drawings of the specification include: a main control module 1 , a core control unit 11 , a power supply module 2 , an expansion module 3 , a parsing unit 31 , an intranet interface 4 , and a network switch chip 5 .
[0021] Example 1 like Figure 1 A multi-protocol parsing device based on an embedded expandable module includes a power supply module 2, a main control module 1 and an expansion module 3 which are independently packaged and connected in series through an intranet interface 4 of the same structure and the same protocol. The intranet interface 4 uses an RJ-45 network interface type and adopts a TCP / IP data transmission protocol.
[0022] The power supply module 2 is used to convert the local power supply into the DC power for the main control module 1 or the expansion module 3. The power supply module 2 uses an AC-DC chip to convert the local power supply into the DC power for the main control module or the expansion module.
[0023] The main control module 1 includes a core control unit 11, which adopts a 32-bit single-chip microcomputer. The single-chip microcomputer has a built-in protocol parsing manager and a protocol parsing program generator. The protocol parsing manager is used to configure the protocol parsing strategy according to the local interface style and protocol, and the protocol parsing program generator is used to send the protocol parsing strategy that conforms to the local interface to the parsing unit.
[0024] The expansion module 3 includes a local interface for communicating with a local device, and a parsing unit 31 for parsing local device data. The parsing unit 31 also uses a 32-bit single-chip microcomputer, which is used to execute a protocol parsing program and cache local device data.
[0025] The type of the local interface on the extension module 3 is one of an Ethernet port, a serial port, RS232, RS422, RS485, USB, and SPI.
[0026] The intranet interface 4 on the power supply module 2 , the main control module 1 and the extension module 3 includes a signal plug and a signal socket, and a power line and a communication bus are arranged between the signal plug and the signal socket.
[0027] When the power supply module 2, the main control module 1, and the multiple extension modules 3 are connected in sequence through the signal plug and the signal socket, the main control module 1 and the multiple extension modules 3 all draw power from the power line, and the main control module 1 or the multiple extension modules 3 complete data transmission through the communication bus.
[0028] The main control module 1 and the expansion module 3 are both provided with a network switch chip 5, which is connected between the signal plug and the signal socket through a communication bus. The network switch chip 5 realizes the function of the bus, so that the signals transmitted between the modules do not interfere with each other.
[0029] The main control module 1 is connected to a wireless network transmission chip. In this embodiment, a 4G module is specifically selected. The core control unit 11 communicates with the 4G module via a serial port to upload data in the core control unit to the server.
[0030] Embodiment 2: For example, there are four local devices: local device 1, its signal interface is RS485 interface, using DLT645 protocol to transmit data. Local device 2, its signal interface is also RS485 interface, but uses ModbusRTU protocol to transmit data. Local device 3, its signal interface is network port, and the specific protocol is ModbusTCP; local device 4, its signal interface is network port, and uses 104 protocol to transmit data.
[0031] According to the number of local devices connected, select the corresponding number of expansion modules 3, determine the local interface style of the expansion module 3 according to the interface style of the local device data transmission, connect the independently packaged power supply module 2, the main control module 1 and the four expansion modules 3 in series in sequence, and connect the intranet interfaces of adjacent modules to each other.
[0032] The four expansion modules are two expansion modules with local interfaces as network ports and two expansion modules with local interfaces as RS485. The two expansion modules with local interfaces as network ports are connected to local devices of ModbusTCP and 104 protocols respectively, and the two expansion modules with local interfaces as RS485 are connected to local devices of ModbusRTU and DLT645 protocols respectively.
[0033] like Figure 2 and Figure 3 As shown, the process of parsing the local devices of the above four different protocols is as follows: first, the parameters of the main control module and the four expansion modules are initialized after powering on. After the initialization is completed, the main control module reads the IP address, port, module ID, module type, and protocol type of the expansion module; the four expansion modules send heartbeat signals in real time, and the main control module identifies the connection status of each expansion module through the heartbeat signal; After the identification is completed, the main control module sends the protocol configuration strategy that conforms to each expansion module. The four expansion modules receive local data from the local interface respectively. Each expansion module obtains a protocol configuration strategy that conforms to the current interface. Each expansion module independently parses the data of the local device connected to the expansion module without interfering with each other. Since the interface type of each module has matched the local device signal interface, the main control module does not need to configure the interface type, but only needs to configure the parsing strategy for the protocol type. The main control module no longer participates in the specific process of parsing data.
[0034] After the local data is converted into the same data format as the intranet interface transmission protocol in the extension module, the four extension modules send it to the main control module through the internal network interface for data classification and management. The main control module sends the parsed data to the remote server in a unified manner.
[0035] The above is only an embodiment of the present invention, and the common knowledge such as the known specific technical solutions and / or characteristics in the solution is not described in detail here. It should be pointed out that for those skilled in the art, without departing from the technical solution of the present invention, several modifications and improvements can be made, which should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the practicality of the patent. The scope of protection required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.
Claims
1. A multi-protocol parsing device based on an embedded extensible module, characterized in that: It includes a power supply module, a main control module and multiple extension modules, the power supply module, the main control module and the extension modules are all independently packaged, and the power supply module, the main control module and the extension modules are connected in series through an intranet interface with the same structure and the same protocol. The power supply module is used to convert the local power supply into DC power for the main control module or the extension module. The extension module includes a local interface for communicating with a local device, and a parsing unit for parsing local device data. The main control module includes a core control unit, and the core control unit is equipped with a protocol parsing manager and a protocol parsing program generator. The protocol parsing manager is used to configure a protocol parsing strategy according to a local interface style and protocol, and the protocol parsing program generator is used to send a protocol parsing strategy that conforms to the local interface to the parsing unit.
2. A multi-protocol parsing device based on an embedded extensible module according to claim 1, characterized in that: The intranet interface comprises a signal plug and a signal socket, and a power line and a communication bus are arranged between the signal plug and the signal socket.
3. The multi-protocol parsing device based on embedded extensible modules according to claim 1, characterized in that: The core control unit in the main control module is a first MCU chip, which is used to implement the functions of a protocol analysis manager and a protocol analysis program generator.
4. The multi-protocol parsing device based on embedded extensible modules according to claim 3, characterized in that: The parsing unit in the extension module is a second MCU chip, which is used to execute the protocol parsing program and cache local device data.
5. The multi-protocol parsing device based on embedded extensible modules according to claim 4, characterized in that: The main control module and the expansion module are both provided with a network switch chip, and the network switch chip is connected between the signal plug and the signal socket through a communication bus.
6. A multi-protocol analysis device based on an embedded extensible module according to claim 5, characterized in that: The hardware in the power supply module for converting the local power supply into direct current power for the main control module or the expansion module is an AC-DC chip.
7. A multi-protocol parsing device based on an embedded extensible module according to claim 6, characterized in that: The main control module also includes a wireless network transmission chip. The core control unit communicates with the wireless network transmission chip via a serial port to upload data in the core control unit to a server.
8. The multi-protocol parsing device based on embedded extensible modules according to claim 7, characterized in that: The intranet interface uses an RJ-45 network interface type and adopts the TCP / IP data transmission protocol.
Citation Information
Cited By
Bus communication network test system
CN120455243A