Communication protocol conversion method and storage medium
By introducing a communication protocol conversion module in the conference video system, the protocol formats of different devices are automatically identified and converted, and the protocol incompatibility between devices is solved, the system integration and data transmission reliability are improved, and the video conferencing is high Quality and low maintenance costs.
Patent Information
- Application Number
- CN202411500915.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-01-17
AI Technical Summary
Incompatible communication protocols between different devices lead to limited integration and flexibility of conference video systems, increasing system deployment and maintenance complexity, and may lead to errors and losses in data transmission, affecting the smoothness of video conferences and quality.
Provide a communication protocol conversion method, which receives and parses conference data signals through the conversion module, automatically recognizes and converts protocol formats of different devices, so that data can be smooth and standardized in the conference system, including parsing and converting them into intermediate data signals. And reconvert according to the protocol format of the target terminal to ensure stable data transmission and compatibility.
Improve the integration and flexibility of the conference video system, reduce errors and losses in data transmission, ensure the smoothness and quality of video conferences, and reduce the cost of system maintenance and upgrades, so that the system does not require large-scale reprogramming. Support new protocols in the case of
Smart Images

Figure CN119324946A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communication technology, and in particular to a method, device, equipment and computer-readable storage medium for converting a communication protocol. Background Art
[0002] In current conference video systems, different devices often use their own unique communication protocols, which results in the inability to communicate directly between devices or communication barriers. This incompatible communication protocol problem seriously limits the integration and flexibility of the conference video system and increases the complexity of system deployment and maintenance. At the same time, data may be lost or erroneous during transmission between different devices due to inconsistent formats, affecting the fluency and quality of the conference video in the device. Summary of the invention
[0003] In view of the above problems, the embodiments of the present invention provide a communication protocol conversion method, apparatus, device and computer-readable storage medium, which are used to solve the problem of incompatibility of communication protocols between different devices in the prior art.
[0004] According to one aspect of an embodiment of the present invention, a communication protocol conversion method is provided, which is applied to a conversion module, and the method includes:
[0005] Receiving a conference data signal sent by a PLC end; the conference data signal is sent to the PLC end by one or more conference video devices;
[0006] Converting the communication protocol of the conference data signal;
[0007] The conversion operation includes: parsing and converting the conference data signal according to a preset protocol format to obtain an intermediate data signal; parsing and converting the conference data signal according to a protocol format of a target terminal to obtain a converted data signal;
[0008] The converted data signal is sent to the PLC end, so that the PLC end sends the converted data signal to the target terminal.
[0009] Specifically, the present invention can automatically identify and efficiently convert the protocols of various conference video devices, and realize unimpeded and standardized processing of video data in the conference system. The present invention can not only improve the integration and flexibility of the conference video system, but also reduce errors and losses caused by compatibility issues during data transmission, and ensure the fluency and quality of the conference video. In addition, separating the protocol conversion function from the PLC and using the conversion module to perform the protocol conversion function can make the maintenance and upgrade of the system easier and reduce maintenance costs. When it is necessary to modify or add new protocol support, it is only necessary to update the conversion module without a large amount of reprogramming and debugging of the PLC.
[0010] In an optional manner, before receiving the conference data signal sent by the PLC end, the method includes:
[0011] Setting communication parameters with the PLC end; the communication parameters include: one or more of the communication port, baud rate and address;
[0012] Based on the communication parameters, communication is established with the PLC terminal.
[0013] Specifically, the communication between the PLC end and the conversion module is established by configuring the communication parameters to ensure stable data transmission.
[0014] In an optional manner, the conference data signal is parsed and converted according to a preset protocol format to obtain an intermediate data signal, including:
[0015] Parsing a preset field, an identifier or a feature code of a data frame of the conference data signal to obtain a communication protocol type of a conference video device corresponding to the conference data signal;
[0016] Determine the corresponding preset protocol format according to the communication protocol type;
[0017] According to the preset protocol format, the conference data signal is converted into an intermediate data signal in the preset protocol format.
[0018] In an optional manner, according to the preset protocol format, converting the conference data signal into an intermediate data signal in a preset protocol format includes:
[0019] Extracting a first preset parameter of the conference data signal, filling the first preset parameter into a data structure of a preset protocol format, and obtaining an intermediate data signal of a preset protocol format;
[0020] The first preset parameter includes: one or more of a device ID, a data type, a function code and data content.
[0021] Specifically, the present invention converts conference data signals into a unified intermediate protocol format to ensure consistency and readability of data in the conference system. The intermediate protocol format is a flexible and extensible part that allows the system to support new protocols by adding or modifying the intermediate protocol format without large-scale reprogramming of the PLC.
[0022] In an optional manner, parsing and converting the conference data signal according to the protocol format of the target terminal to obtain the converted data signal includes:
[0023] parsing and converting the second preset parameter of the intermediate data signal according to the protocol format of the target terminal to obtain a converted data signal;
[0024] The second preset parameters include: one or more of device ID, device type, function description byte, data length and data content.
[0025] Specifically, the present invention performs necessary conversion and adjustment on the conference data signals in the intermediate protocol format according to the needs of the target terminal, and then sends them to the target terminal to complete the conversion of the protocol format, thereby achieving unimpeded and standardized processing of video data in the conference system. The present invention can not only improve the integration and flexibility of the conference video system, but also reduce errors and losses during data transmission, thereby ensuring the fluency and quality of the conference video.
[0026] In an optional manner, after receiving the conference data signal sent by the PLC end, the method further includes:
[0027] Mark the priority of each conference data signal;
[0028] According to the priority of each conference data signal, the conversion operation is performed on each conference data signal in sequence.
[0029] Specifically, the present invention automatically adjusts the load distribution strategy, can reasonably allocate network resources according to the priority and needs of the conference video system, ensure the smoothness of the video conference and the clarity of the audio, and improve the stability and reliability of the system. In the case of limited network resources, high-priority data packets (such as key data packets of video conferences) can be processed first, thereby ensuring the quality of the video conference.
[0030] In an optional manner, before sending the converted data signal to the PLC end, the method further includes:
[0031] determining at least one routing path between the conversion module and the target terminal;
[0032] If there are at least two routing paths between the conversion module and the target terminal, determining an optimal routing path according to the network transmission parameters and the preset strategy of each of the routing paths;
[0033] The converted data signal is sent to the PLC end by using the optimal routing path, so that the PLC end sends the converted data signal to the target terminal.
[0034] Specifically, after determining all possible routing paths, the present invention selects the optimal path according to preset strategies, such as the shortest path, the least delay, and the highest reliability. The present invention automatically selects the optimal routing path to reduce data transmission delays and congestion. When congestion or failure is detected in a routing path, it can quickly switch to an alternative path to ensure the continuity and stability of data transmission.
[0035] According to another aspect of an embodiment of the present invention, there is provided a communication protocol conversion device, which is applied to a conversion module, and the device includes: an identification unit, a conversion unit and a sending unit;
[0036] An identification unit, used for receiving a conference data signal sent by a PLC end; the conference data signal is sent by one or more conference video devices to the PLC end;
[0037] The conversion unit is used to convert the communication protocol of the conference data signal.
[0038] The conversion operation includes: parsing and converting the conference data signal according to a preset protocol format to obtain an intermediate data signal;
[0039] Parsing and converting the conference data signal according to the protocol format of the target terminal to obtain a converted data signal;
[0040] The sending unit is used to send the conversion data signal to the PLC end, so that the PLC end sends the conversion data signal to the target terminal.
[0041] In an optional manner, a communication protocol conversion device is provided, which is applied to a PLC end, and the device includes: a data acquisition unit, a data sending unit and a data receiving unit;
[0042] A data acquisition unit, used to receive conference data signals sent by one or more conference video devices;
[0043] A data sending unit, used for sending the conference data signal to a conversion module, so that the conversion module processes the conference data signal using the communication protocol conversion method according to the present invention;
[0044] or, for sending the converted data signal to a target terminal;
[0045] The data receiving unit is used to receive the converted data signal sent by the conversion module.
[0046] According to another aspect of an embodiment of the present invention, a communication protocol conversion device is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation of the communication protocol conversion method as described in any one of the above-mentioned items.
[0047] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores at least one executable instruction, wherein the executable instruction enables a communication protocol conversion device / apparatus to perform the operation of a communication protocol conversion method as described in any one of the above.
[0048] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0050] Figure 1 A schematic flow chart showing a first embodiment of a method for converting a communication protocol provided by the present invention;
[0051] Figure 2 A schematic flow chart of a second embodiment of the communication protocol conversion method provided by the present invention is shown;
[0052] Figure 3 A schematic diagram showing the interaction between a conference video device, a PLC terminal, a conversion module and a target terminal in the method for converting a communication protocol provided by the present invention;
[0053] Figure 4 A schematic structural diagram of a first embodiment of a communication protocol conversion device provided by the present invention is shown;
[0054] Figure 5 A schematic structural diagram of a second embodiment of a communication protocol conversion device provided by the present invention is shown;
[0055] Figure 6A structural schematic diagram of an embodiment of a communication protocol conversion device provided by the present invention is shown. DETAILED DESCRIPTION
[0056] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0057] Embodiment 1, Figure 1 FIG. 1 is a flow chart showing a first embodiment of a method for converting a communication protocol of the present invention, wherein the method is executed by a conversion module. Figure 1 As shown, the method comprises the following steps:
[0058] Step 110: Receive a conference data signal sent by the PLC end; the conference data signal is sent to the PLC end by one or more conference video devices.
[0059] In some embodiments of the present invention, before receiving the conference data signal sent by the PLC end, the method includes:
[0060] Setting communication parameters with the PLC end; the communication parameters include: one or more of the communication port, baud rate and address;
[0061] Based on the communication parameters, communication is established with the PLC terminal.
[0062] Specifically, the communication between the PLC end and the conversion module is established by configuring the communication parameters to ensure stable data transmission.
[0063] In some embodiments of the present invention, after receiving the conference data signal sent by the PLC end, the method further includes:
[0064] Mark the priority of each conference data signal;
[0065] According to the priority of each conference data signal, the conversion operation is performed on each conference data signal in sequence.
[0066] Preferably, QoS technology (Quality of Service) is integrated in the conversion module. QoS technology can automatically adjust the load distribution strategy to ensure the priority and stability of each conference data signal. QoS technology can reasonably allocate network resources according to the priority and requirements of the conference video system, ensure the fluency of the video conference and the clarity of the audio, and improve the stability and reliability of the system. During the protocol conversion process, QoS technology marks different priorities for data packets of different devices. In this way, when network resources are limited, high-priority data packets (such as key data packets of video conferences) can be processed by conversion operations first, thereby ensuring the quality of video conferences.
[0067] Step 120: converting the communication protocol of the conference data signal.
[0068] The conversion operation includes: parsing and converting the conference data signal according to a preset protocol format to obtain an intermediate data signal; parsing and converting the conference data signal according to a protocol format of a target terminal to obtain a converted data signal.
[0069] In some embodiments of the present invention, the conference data signal is parsed and converted according to a preset protocol format to obtain an intermediate data signal, including:
[0070] Parsing a preset field, an identifier or a feature code of a data frame of the conference data signal to obtain a communication protocol type of a conference video device corresponding to the conference data signal;
[0071] Determine the corresponding preset protocol format according to the communication protocol type;
[0072] According to the preset protocol format, the conference data signal is converted into an intermediate data signal in the preset protocol format.
[0073] In some embodiments of the present invention, converting the conference data signal into an intermediate data signal in a preset protocol format according to the preset protocol format includes:
[0074] Extracting a first preset parameter of the conference data signal, filling the first preset parameter into a data structure of a preset protocol format, and obtaining an intermediate data signal of a preset protocol format;
[0075] The first preset parameters include: one or more of device ID, data type, function code and data content.
[0076] Specifically, the conversion module parses the specific fields, identifiers or feature codes of the data frames of the conference data signal to identify the protocol type of the conference video device, such as HDMI protocol, H.264 protocol or SIP protocol. The conversion module applies the preset conversion rules according to the identified protocol type to convert the device signal into a unified intermediate protocol format. The conversion operation also includes: data decoding, encoding, verification and formatting operations to ensure the consistency and readability of the data in the conference system.
[0077] The intermediate protocol format is customized, and the intermediate protocol data structure is unified and does not depend on a specific source or target protocol.
[0078] When new devices or protocols are added, adjust the data acquisition program on the PLC side and configure new communication parameters, such as baud rate, data bits, and stop bits. Modify the preprocessing algorithm on the PLC side to perform a new format check on the received data to ensure the correctness of the new data format.
[0079] Add new protocol recognition logic in the conversion module, write new conversion rules, including data decoding, encoding, verification and formatting operations, and adjust the intermediate protocol format. Without large-scale reprogramming of the PLC, new protocols can be supported by adding or modifying the intermediate protocol format.
[0080] In some embodiments of the present invention, parsing and converting the conference data signal according to the protocol format of the target terminal to obtain the converted data signal includes:
[0081] parsing and converting the second preset parameter of the intermediate data signal according to the protocol format of the target terminal to obtain a converted data signal;
[0082] The second preset parameters include: one or more of device ID, device type, function description byte, data length and data content.
[0083] For example, taking RS-232 and USB as two communication protocols, a custom data structure is created to store basic information of the device and the data transmission format. This usually includes the device ID, device type identifier, function description byte and other necessary fields.
[0084] Receive first data from the RS-232 port, parse a first data frame under the RS-232 protocol and identify a specific command sequence as a device function identifier, fill it into a data structure of a custom intermediate protocol for encapsulation, and obtain first intermediate data.
[0085] For the second data received from the USB port, the corresponding fields of the second data frame under the USB protocol are parsed and filled into the data structure of the custom intermediate protocol for encapsulation to obtain the second intermediate data.
[0086] The data of the two protocols are converted into the same intermediate format for subsequent unified processing, such as network transmission or data analysis. For example, if the first intermediate data needs to be transmitted to a device supporting the USB protocol, the first intermediate data is converted and adjusted according to the requirements of the USB protocol and then sent to the USB port of the device.
[0087] Preferably, error handling and debugging are performed on the conversion module to ensure that the module can properly handle possible protocol anomalies, data loss or other error situations, and provide effective log and debugging information.
[0088] Step 130: Send the conversion data signal to the PLC end, so that the PLC end sends the conversion data signal to the target terminal.
[0089] In some embodiments of the present invention, before sending the converted data signal to the PLC end, the method further includes:
[0090] determining at least one routing path between the conversion module and the target terminal;
[0091] If there are at least two routing paths between the conversion module and the target terminal, determining an optimal routing path according to the network transmission parameters and the preset strategy of each of the routing paths;
[0092] The converted data signal is sent to the PLC end by using the optimal routing path, so that the PLC end sends the converted data signal to the target terminal.
[0093] Specifically, an intelligent routing algorithm is integrated in the conversion module. The intelligent routing algorithm can dynamically select the optimal routing path according to the network status to ensure the efficiency of data transmission. The conversion module monitors the network status in real time, such as bandwidth, delay, packet loss rate, etc. Based on the real-time monitoring data, it calculates all possible routing paths and selects the optimal path according to preset strategies, such as the shortest path, the least delay and the highest reliability, to reduce the delay and congestion of data transmission. When congestion or failure is detected in a routing path, the algorithm can quickly switch to an alternative path to ensure the continuity and stability of data transmission.
[0094] The present invention can automatically identify and efficiently convert the protocols of different video conferencing devices, ensuring that data is unimpeded in a complex network environment, and that video conferencing has smoother audio and video transmission and lower latency. By converting to a unified intermediate protocol format, the system can standardize the processing of data from different sources, improve the consistency and manageability of data, and ensure seamless collaboration and compatibility between different devices. PLC, as the core of data acquisition and control, combined with the efficient processing capabilities of C language, enables the system to process large amounts of data and maintain stable operation under high-load environments. The present invention separates the protocol conversion function from PLC and uses C language to write independent modules, which can make system maintenance and upgrades easier and reduce maintenance costs. The system can dynamically adjust the data transmission path and load distribution strategy according to the network conditions, ensure the priority and stability of key applications, and help maintain the continuity and quality of audio and video transmission when the network is congested.
[0095] Embodiment 2, Figure 2 FIG. 2 is a flow chart showing a second embodiment of a method for converting a communication protocol of the present invention, which is executed by a PLC terminal. Figure 2 As shown, the method comprises the following steps:
[0096] Step 210: receiving conference data signals sent by one or more conference video devices;
[0097] Step 220: Sending the conference data signal to a conversion module, so that the conversion module processes the conference data signal using the communication protocol conversion method described in Example 1;
[0098] Step 230: Receive the converted data signal sent by the conversion module, and send the converted data signal to the target terminal.
[0099] In some embodiments of the present invention, before sending the conference data signal to the conversion module, the method further includes:
[0100] Preprocessing the conference data signal;
[0101] The preprocessing includes: one or more of signal amplification, signal filtering and signal format verification.
[0102] In some embodiments of the present invention, a programming language supported by the PLC, such as ladder diagram and structured text, is used on the PLC side to write programs for data collection, preprocessing, sending and receiving.
[0103] Among them, the data acquisition program is written using ladder diagrams and is implemented by configuring input modules and reading the status of input signals.
[0104] Data preprocessing involves the use of structured text, by writing algorithms to amplify, filter, and format-check the collected data.
[0105] The data sending and receiving program needs to configure the communication parameters of the PLC and write the corresponding program to realize the sending and receiving of data. Ladder diagrams are suitable for intuitive logic control, while structured text is suitable for complex calculations and algorithm implementation. Configure the communication parameters of the PLC to ensure a stable connection with the host computer or embedded system. Set the communication port, baud rate, address and other parameters of the PLC, and perform correct communication configuration with the protocol conversion module to ensure stable data transmission.
[0106] The interaction between the conference video device, the PLC terminal, the conversion module and the target terminal involved in executing the communication protocol conversion method in some embodiments of the present invention is specifically described:
[0107] Figure 3 The interactive schematic diagram of the conference video equipment, PLC terminal, conversion module and target terminal of the communication protocol conversion method of the present invention is shown as follows: Figure 3 As shown, the PLC end includes: a data acquisition unit, a data sending unit and a data receiving unit; the conversion module includes: an identification unit, a conversion unit and a sending unit;
[0108] One or more conference video devices send conference data signals to the PLC end, the PLC end data acquisition unit uses a data acquisition program to receive the conference data signals sent by the conference video devices, and the PLC end data sending unit uses a data sending program to send the conference data signals to the identification unit of the conversion module.
[0109] The conversion module uses the identification unit to receive the conference data signal sent by the PLC end; the conversion module uses the conversion unit to parse and convert the conference data signal according to the preset protocol format to obtain an intermediate data signal, and parses and converts the conference data signal according to the protocol format of the target terminal to obtain a converted data signal; the conversion module uses the sending unit to send the converted data signal to the data receiving unit of the PLC end.
[0110] The data receiving unit at the PLC end receives the conversion data signal sent by the sending unit of the conversion module using a data receiving program; the data sending unit at the PLC end sends the conversion data signal to the target terminal using a data sending program.
[0111] Embodiment 3, Figure 4 FIG. 4 is a schematic diagram showing the structure of a first embodiment of a communication protocol conversion device of the present invention; the device 400 is applied to a conversion module, such as Figure 4As shown, the device 400 includes: an identification unit 410, a conversion unit 420 and a sending unit 430.
[0112] In an optional manner, the identification unit 410 is used to receive a conference data signal sent by a PLC end; the conference data signal is sent to the PLC end by one or more conference video devices;
[0113] In an optional manner, the conversion unit 420 is used to convert the communication protocol of the conference data signal.
[0114] The conversion operation includes: parsing and converting the conference data signal according to a preset protocol format to obtain an intermediate data signal; parsing and converting the conference data signal according to a protocol format of a target terminal to obtain a converted data signal;
[0115] In an optional manner, the sending unit 430 is used to send the conversion data signal to the PLC end, so that the PLC end sends the conversion data signal to the target terminal.
[0116] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0117] Embodiment 4, in an optional manner, Figure 5 The structure diagram of the second embodiment of the communication protocol conversion device of the present invention is shown; the device 500 is applied to the PLC end, such as Figure 5 As shown, the device 500 includes: a data acquisition unit 510, a data sending unit 520 and a data receiving unit 530;
[0118] In an optional manner, the data acquisition unit 510 is used to receive conference data signals sent by one or more conference video devices;
[0119] In an optional manner, the data sending unit 520 is used to send the conference data signal to the conversion module, so that the conversion module processes the conference data signal using the communication protocol conversion method as described in the present invention;
[0120] or, for sending the converted data signal to a target terminal;
[0121] In an optional manner, the data receiving unit 530 is used to receive the conversion data signal sent by the conversion module.
[0122] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0123] Embodiment 5, Figure 6 The schematic diagram of the structure of the embodiment of the communication protocol conversion device of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the device.
[0124] like Figure 6 As shown, the communication protocol conversion device may include: a processor (processor) 602, a communication interface (Communications Interface) 604, a memory (memory) 606, and a communication bus 608.
[0125] The processor 602, the communication interface 604, and the memory 606 communicate with each other via the communication bus 608. The communication interface 604 is used to communicate with other devices such as a client or other server network elements. The processor 602 is used to execute the program 610, which can specifically execute the relevant steps in the above-mentioned embodiment of the method for converting the communication protocol.
[0126] Specifically, the program 610 may include program code including computer executable instructions.
[0127] The processor 602 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the communication protocol conversion device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0128] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0129] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.
[0130] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.
[0131] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.
[0132] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A method for converting a communication protocol, characterized in that: Applied to the conversion module, the method comprises: Receiving a conference data signal sent by a PLC end; the conference data signal is sent to the PLC end by one or more conference video devices; Converting the communication protocol of the conference data signal; The conversion operation includes: parsing and converting the conference data signal according to a preset protocol format to obtain an intermediate data signal; parsing and converting the conference data signal according to a protocol format of a target terminal to obtain a converted data signal; The converted data signal is sent to the PLC end, so that the PLC end sends the converted data signal to the target terminal.
2. The method for converting a communication protocol according to claim 1, characterized in that: Before receiving the conference data signal sent by the PLC end, the method includes: Setting communication parameters with the PLC end; the communication parameters include: one or more of the communication port, baud rate and address; Based on the communication parameters, communication is established with the PLC terminal.
3. The method for converting a communication protocol according to claim 1, characterized in that: The step of parsing and converting the conference data signal according to the preset protocol format to obtain the intermediate data signal includes: Parsing a preset field, an identifier or a feature code of a data frame of the conference data signal to obtain a communication protocol type of a conference video device corresponding to the conference data signal; Determine the corresponding preset protocol format according to the communication protocol type; According to the preset protocol format, the conference data signal is converted into an intermediate data signal in the preset protocol format.
4. The method for converting a communication protocol according to claim 3, characterized in that: According to the preset protocol format, converting the conference data signal into an intermediate data signal in a preset protocol format includes: Extracting a first preset parameter of the conference data signal, filling the first preset parameter into a data structure of a preset protocol format, and obtaining an intermediate data signal of a preset protocol format; The first preset parameters include: one or more of device ID, data type, function code and data content.
5. The method for converting a communication protocol according to claim 1, characterized in that: The step of parsing and converting the conference data signal according to the protocol format of the target terminal to obtain a converted data signal includes: parsing and converting the second preset parameter of the intermediate data signal according to the protocol format of the target terminal to obtain a converted data signal; The second preset parameters include: one or more of device ID, device type, function description byte, data length and data content.
6. The method for converting a communication protocol according to claim 1, characterized in that: After receiving the conference data signal sent by the PLC end, the method further includes: Mark the priority of each conference data signal; According to the priority of each conference data signal, the conversion operation is performed on each conference data signal in sequence.
7. The method for converting a communication protocol according to claim 1, characterized in that: Before sending the converted data signal to the PLC end, the method further comprises: determining at least one routing path between the conversion module and the target terminal; If there are at least two routing paths between the conversion module and the target terminal, determining an optimal routing path according to the network transmission parameters and preset strategies of each of the routing paths; The optimal routing path is used to send the converted data signal to the PLC end, so that the PLC end sends the converted data signal to the target terminal.
8. A method for converting a communication protocol, characterized in that: Applied to PLC side, including: Receive conference data signals sent by one or more conference video devices; Sending the conference data signal to a conversion module so that the conversion module processes the conference data signal using the communication protocol conversion method according to any one of claims 1 to 7; The conversion data signal sent by the conversion module is received, and the conversion data signal is sent to the target terminal.
9. The method for converting a communication protocol according to claim 8, characterized in that: Before sending the conference data signal to the conversion module, the method further comprises: Preprocessing the conference data signal; The preprocessing includes: one or more of signal amplification, signal filtering and signal format verification.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction, and when the executable instruction is executed on the communication protocol conversion device / apparatus, the device / apparatus performs the operation of the communication protocol conversion method according to any one of claims 1 to 7, or Operation of the communication protocol conversion method as described in any one of claims 8-9.
Citation Information
Patent Citations
Information transfer equipment and video conference system
CN101986696A
Multi-protocol automatic identification and conversion method and intelligent gateway
CN112104654A
Protocol conversion method and device, equipment and storage medium
CN116055577A
Control method and product of integrated PLC (Programmable Logic Controller) supporting multiple interfaces and multiple communication protocols
CN118746956A