CN117336378A - Method, device and gateway for realizing communication of terminals with different protocols - Google Patents
Method, device and gateway for realizing communication of terminals with different protocols Download PDFInfo
- Publication number
- CN117336378A CN117336378A CN202311176594.7A CN202311176594A CN117336378A CN 117336378 A CN117336378 A CN 117336378A CN 202311176594 A CN202311176594 A CN 202311176594A CN 117336378 A CN117336378 A CN 117336378A
- Authority
- CN
- China
- Prior art keywords
- data stream
- terminal
- transmission data
- communication protocol
- configuration information
- 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
Links
- 230000006854 communication Effects 0.000 title claims abstract description 215
- 238000004891 communication Methods 0.000 title claims abstract description 214
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000005540 biological transmission Effects 0.000 claims abstract description 223
- 238000012360 testing method Methods 0.000 claims description 18
- 238000006243 chemical reaction Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 12
- 230000004044 response Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 5
- 238000005070 sampling Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000004888 barrier function Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/10—Architectures or entities
- H04L65/102—Gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/65—Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/70—Media network packetisation
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Communication Control (AREA)
Abstract
The embodiment of the invention provides a method, a device and a gateway for realizing communication of terminals with different protocols, wherein the method comprises the following steps: receiving a first transmission data stream sent by a first terminal, wherein a first communication protocol corresponding to the first terminal is different from a second communication protocol corresponding to the second terminal; acquiring a first communication protocol and first transmission data stream configuration information corresponding to a first terminal; decoding the first transport data stream according to the first communication protocol and the first transport data stream configuration information to determine a multimedia data stream; acquiring a second communication protocol and second transmission data stream configuration information corresponding to a second terminal; encoding the multimedia data stream according to the second transmission data stream configuration information, and converting the encoded multimedia data stream into a second transmission data stream according to a second communication protocol; and sending the second transmission data stream to the second terminal. The embodiment of the invention realizes the interconnection and intercommunication of different terminals of different protocol terminals.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for implementing communications between terminals of different protocols, a device for implementing communications between terminals of different protocols, and a gateway.
Background
With the development of network technology, the society is promoted, and under the strong support of the country, a plurality of independently developed devices are born and have own independent protocols.
Meanwhile, the principle of not wasting resources and reasonably utilizing resources is inherited, and the devices not in the IP protocol are required to be matched with the IP protocol devices.
However, in the current market, the direct communication between the non-IP protocol and the IP protocol cannot be supported, and products of different protocols cannot be matched, so that barriers are generated between products of different protocols of the same type.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention are provided to provide a method for implementing communication of terminals with different protocols, and an apparatus and a gateway for implementing communication of terminals with different protocols.
In order to solve the above problems, in a first aspect, an embodiment of the present invention discloses a method for implementing communication of terminals with different protocols, where the method includes:
receiving a first transmission data stream sent by a first terminal, wherein the first transmission data stream is sent to a second terminal by the first terminal, and a first communication protocol corresponding to the first terminal is different from a second communication protocol corresponding to the second terminal;
Acquiring a first communication protocol and first transmission data stream configuration information corresponding to the first terminal;
decoding the first transmission data stream according to the first communication protocol and the first transmission data stream configuration information, and determining a multimedia data stream;
acquiring a second communication protocol and second transmission data stream configuration information corresponding to the second terminal;
encoding the multimedia data stream according to the second transmission data stream configuration information, and converting the encoded multimedia data stream into a second transmission data stream according to the second communication protocol;
and sending the second transmission data stream to the second terminal.
The method above, optionally, decodes the first transport data stream according to the first communication protocol and first transport data stream configuration information, and determines a multimedia data stream, including:
analyzing the first transmission data stream according to the first communication protocol, and determining a first coding data stream;
and decoding the first coded data stream according to the first transmission data stream configuration information, and determining the multimedia data stream.
The method above, optionally, the encoding the multimedia data stream according to the second transmission data stream configuration information, and converting the encoded multimedia data stream into a second transmission data stream according to the second communication protocol, includes:
Encoding the multimedia data stream according to the second transmission data stream configuration information, and determining a second encoded data stream;
and encapsulating the second coded data stream according to the second communication protocol, and determining a second transmission data stream.
In order to solve the above problem, in a second aspect, an embodiment of the present invention discloses an apparatus for implementing communication of terminals with different protocols, where the apparatus includes:
a receiving unit, configured to receive a first transmission data stream sent by a first terminal, where the first transmission data stream is sent by the first terminal to a second terminal, and a first communication protocol corresponding to the first terminal is different from a second communication protocol corresponding to the second terminal;
a first obtaining unit, configured to obtain a first communication protocol and first transmission data stream configuration information corresponding to the first terminal;
a decoding unit, configured to decode the first transport data stream according to the first communication protocol and first transport data stream configuration information, and determine a multimedia data stream;
a second obtaining unit, configured to obtain a second communication protocol and second transmission data stream configuration information corresponding to the second terminal;
the conversion unit is used for encoding the multimedia data stream according to the second transmission data stream configuration information and converting the encoded multimedia data stream into a second transmission data stream according to the second communication protocol;
And the sending unit is used for sending the second transmission data stream to the second terminal.
To solve the above problem, in a third aspect, an embodiment of the present invention discloses a gateway, including:
the device comprises an identification module, a storage module, a configuration module and a soft compiling and soft solving module;
the identification module is used for identifying the communication protocol and the transmission data stream configuration information corresponding to each terminal;
the storage module is used for storing the communication protocol and the transmission data stream configuration information corresponding to each terminal and sending the stored information to the configuration module;
the configuration module is used for associating each terminal, a communication protocol and transmission data stream configuration information, generating terminal configuration information and sending the terminal configuration information to the soft-editing soft-decoding module;
the soft-programming soft-decoding module is used for executing the method for realizing communication of the terminals with different protocols according to the first aspect.
As mentioned above, optionally, the identification module is specifically configured to:
acquiring terminal identifiers corresponding to all terminals, and identifying communication protocols corresponding to the terminals according to the terminal identifiers;
and determining the configuration information of the transmission data stream corresponding to the terminal according to the communication protocol.
As mentioned above, optionally, the identification module is specifically configured to:
and receiving the communication protocol and the transmission data stream configuration information corresponding to each terminal input by the user.
As mentioned above, optionally, the identification module is specifically configured to:
sending test data packets to each terminal;
and receiving the test data response packet returned by each terminal, analyzing the test data response packet, and acquiring the communication protocol and the transmission data stream configuration information corresponding to each terminal.
In order to solve the above-mentioned problem, in a fourth aspect, an embodiment of the present invention discloses an electronic device, including:
one or more processors; and
one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform the method of implementing different protocol terminal communications as described in the first aspect.
In order to solve the above-mentioned problems, in a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a computer program for causing a processor to execute the method for implementing communication of terminals of different protocols as described in the first aspect.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the transmission data streams of different communication protocols are converted into the transmission data streams of opposite-end communication protocols according to the communication protocols and the transmission data stream configuration information between the terminals of different communication protocols, and the terminals of different communication protocols can communicate with each other under the condition of not modifying any configuration by the communication protocol conversion and the transmission data stream configuration information conversion, so that the interconnection and the intercommunication of the different terminals of different protocols are realized.
Drawings
FIG. 1 is a flow chart of steps of an embodiment of a method of the present invention for implementing communication of different protocol terminals;
FIG. 2 is a block diagram illustrating an embodiment of an apparatus for implementing communication of different protocol terminals in accordance with the present invention;
FIG. 3 is a block diagram of one embodiment of a gateway of the present invention;
FIG. 4 is a flow chart illustrating the communication between a V2V terminal and an IP terminal according to an embodiment of the gateway of the present invention;
fig. 5 is a block diagram of an embodiment of an electronic device of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Products among different protocols in the prior art cannot be matched, so that barriers are generated among products of different protocols of the same type, and communication among terminals of different protocols of different types and different coding formats cannot be performed.
To solve this problem, in the embodiment of the present invention, a first transmission data stream sent by a first terminal is received, where the first transmission data stream is sent by the first terminal to a second terminal, and a first communication protocol corresponding to the first terminal is different from a second communication protocol corresponding to the second terminal; acquiring a first communication protocol and first transmission data stream configuration information corresponding to the first terminal; decoding the first transmission data stream according to the first communication protocol and the first transmission data stream configuration information, and determining a multimedia data stream; acquiring a second communication protocol and second transmission data stream configuration information corresponding to the second terminal; encoding the multimedia data stream according to the second transmission data stream configuration information, and converting the encoded multimedia data stream into a second transmission data stream according to the second communication protocol; and sending the second transmission data stream to the second terminal.
According to the embodiment of the invention, the transmission data streams of different communication protocols are converted into the transmission data streams of opposite-end communication protocols according to the communication protocols and the transmission data stream configuration information between the terminals of different communication protocols, and the terminals of different communication protocols can communicate with each other under the condition of not modifying any configuration by the communication protocol conversion and the transmission data stream configuration information conversion, so that the interconnection and the intercommunication of the different terminals of different protocols are realized.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for implementing communication between terminals with different protocols according to the present invention is applied to an apparatus for implementing communication between terminals with different protocols, which may specifically include the following steps:
step S110, receiving a first transmission data stream sent by a first terminal, wherein the first transmission data stream is sent to a second terminal by the first terminal, and a first communication protocol corresponding to the first terminal is different from a second communication protocol corresponding to the second terminal;
in particular, the more common protocol type of terminal equipment currently in use is the internet protocol (Internet Protocol, IP), and there are also many independently self-developed terminal communication protocols, different protocol types being unable to communicate. In addition, audio and video encoding and decoding are of various types, and only the same type of audio and video encoding and decoding can be used for communication, normal audio and video pictures are displayed, and different encoding and communication have various problems such as black screen.
When terminals of different protocols need to communicate, a transmitting end (denoted as a first terminal) transmits a transmission data stream (denoted as a first transmission data stream) to a receiving end (denoted as a second terminal), wherein the first transmission data stream can be an audio stream or a video stream, and the audio stream or the video stream is encapsulated by the first terminal according to the communication protocol type of the first terminal and is directly transmitted to the second terminal, so that the second terminal cannot analyze.
In order to solve this problem, a device for implementing communication between terminals with different protocols (hereinafter referred to as an implementation device for short) may acquire a first transmission data stream sent from a first terminal to a second terminal, process the first transmission data stream, and then send the first transmission data stream to the second terminal, so that the second terminal can analyze the transmission data stream, and implement communication between the first terminal and the second terminal.
For example, the first terminal may be a private protocol terminal and the second terminal may be an IP terminal.
Step S120, a first communication protocol and first transmission data stream configuration information corresponding to the first terminal are obtained;
specifically, after the implementation device obtains a first transmission data stream to be sent to the second terminal by the first terminal, the implementation device obtains a first communication protocol corresponding to the first terminal and first transmission data stream configuration information. The configuration information of the first transmission data stream may be information such as format, sampling rate, resolution, frame rate, code rate, etc. of the first transmission data stream.
The implementation device can provide an interface for inputting information for the user, the user manually inputs the first communication protocol and the first transmission data stream configuration information corresponding to the first terminal, and after submitting, the implementation device obtains the first communication protocol and the first transmission data stream configuration information corresponding to the first terminal.
The implementation device can also acquire the identification information corresponding to the first terminal, such as an identity, and retrieve the identity of the existing terminal, the communication protocol and the transmission data stream configuration information database through the identity, and acquire the first communication protocol and the first transmission data stream configuration information corresponding to the first terminal from the identification information corresponding to the first terminal.
The implementation device can also send a test data packet to the first terminal before receiving the first transmission data stream sent by the first terminal, receive the test data packet returned by the first terminal, analyze the test data packet, analyze from each field, and obtain the first communication protocol and the first transmission data stream configuration information corresponding to the first terminal.
In practical applications, the implementation device may further obtain the first communication protocol and the first transmission data stream configuration information corresponding to the first terminal through other manners, which are not described herein in detail.
For example, the first terminal is an internet of view terminal, the second terminal is an IP terminal, the transmission data stream sent by the first terminal to the second terminal is an audio data stream, and the implementation device may acquire that the communication protocol of the first terminal is an internet of view protocol, where the configuration information of the audio data stream includes an audio coding format, and the coding format is specifically Opus, which is a lossy sound coding format, developed by xiph. Org foundation, and then standardized by IETF (internet engineering task force), where the objective is to use a single format to include sound and voice, and to be suitable for low-delay instant sound transmission on a network.
Still taking the internet of view as an example, if the transmission data stream sent by the first terminal to the second terminal is a video data stream, the implementation device may acquire that the communication protocol of the first terminal is the internet of view protocol, and the configuration information of the video data stream includes information such as an encoding format, resolution, frame rate, code rate and the like of the video data stream, where the encoding format specifically is: h265, resolution 2K, frame rate 60FPS, code rate 406KBPS.
Step S130, decoding the first transmission data stream according to the first communication protocol and the first transmission data stream configuration information, and determining a multimedia data stream;
Specifically, after obtaining a first communication protocol and first transmission data stream configuration information corresponding to a first terminal, the implementation device decapsulates the first transmission data stream according to the first communication protocol, and parses the decapsulated first transmission data stream according to the first transmission data stream configuration information to obtain a multimedia data stream.
Step S140, acquiring a second communication protocol and second transmission data stream configuration information corresponding to the second terminal;
specifically, the implementation device acquires a first communication protocol corresponding to the second terminal and second transmission data stream configuration information. The configuration information of the second transmission data stream may be information of format, sampling rate, resolution, frame rate, code rate, etc. of the second transmission data stream.
The implementation device can provide an interface for inputting information for the user, the user manually inputs the second communication protocol and the second transmission data stream configuration information corresponding to the second terminal, and after submitting, the implementation device obtains the second communication protocol and the second transmission data stream configuration information corresponding to the second terminal.
The implementation device can also acquire the identification information corresponding to the second terminal, such as an identity, and retrieve the identity of the existing terminal, the communication protocol and the transmission data stream configuration information database through the identity, and acquire the second communication protocol and the second transmission data stream configuration information corresponding to the second terminal from the identification information corresponding to the second terminal.
The implementation device can also send a test data packet to the second terminal before receiving the first transmission data stream sent by the first terminal, receive the test data packet returned by the second terminal, analyze the test data packet, analyze from each field, and obtain the configuration information of the second communication protocol and the first transmission data stream corresponding to the second terminal.
In practical applications, the implementation device may further obtain the second communication protocol and the second transmission data stream configuration information corresponding to the second terminal through other manners, which are not described herein in detail.
For example, the first terminal is an internet of view terminal, the second terminal is an IP terminal, and the transmission data stream sent by the first terminal to the second terminal is an audio data stream, so that the implementation device can obtain that the communication protocol of the second terminal is an IP protocol, and the configuration information of the audio data stream includes an audio coding format, where the coding format is specifically G711A.
Still taking the internet of view as an example, if the transmission data stream sent by the first terminal to the second terminal is a video data stream, the implementation device may acquire that the communication protocol of the second terminal is an IP protocol, and the configuration information of the video data stream includes information such as an encoding format, resolution, frame rate, code rate, and the like of the video data stream, where the encoding format specifically is: h264, 1080P resolution, 30FPS frame rate, 326KBPS code rate.
Step S150, encoding the multimedia data stream according to the second transmission data stream configuration information, and converting the encoded multimedia data stream into a second transmission data stream according to the second communication protocol;
step S160, transmitting the second transmission data stream to the second terminal.
Specifically, the implementation device encodes the multimedia data stream according to the second transmission data stream configuration information, converts the encoded multimedia data stream into the second transmission data stream according to the second communication protocol, and sends the second transmission data stream to the second terminal.
After the second terminal receives the second transmission data stream, the second terminal can directly acquire the information sent by the first terminal by using the second transmission data stream because the communication protocol and the transmission data stream configuration information of the second terminal are consistent with each other.
In a specific implementation, after the second terminal receives the second transmission data stream, the second terminal may further send a third transmission data stream to the first terminal, and after the implementation device obtains the third transmission data stream, the implementation device determines the multimedia data stream according to the second communication protocol of the second terminal and the third transmission data stream configuration information, determines the fourth transmission data stream according to the first communication protocol of the first terminal and the fourth transmission data stream configuration information, and sends the fourth transmission data stream to the first terminal, so as to implement a communication process between terminals with different communication protocols.
In the embodiment of the invention, the transmission data streams of different communication protocols are converted into the transmission data streams of opposite-end communication protocols according to the communication protocols and the transmission data stream configuration information between the terminals of different communication protocols, and the terminals of different communication protocols can communicate with each other under the condition of not modifying any configuration by the communication protocol conversion and the transmission data stream configuration information conversion, so that the interconnection and the intercommunication of the different terminals of different protocols are realized.
In a preferred embodiment of the present invention, said decoding said first transport data stream according to said first communication protocol and first transport data stream configuration information, determining a multimedia data stream, comprises:
analyzing the first transmission data stream according to the first communication protocol, and determining a first coding data stream;
and decoding the first coded data stream according to the first transmission data stream configuration information, and determining the multimedia data stream.
Specifically, after the implementation device obtains the first transmission data stream, the first communication protocol and the first transmission data stream configuration information, the implementation device parses the first transmission data stream according to the first communication protocol, for example, decapsulates the first transmission data stream according to the first communication protocol, to obtain the first encoded data stream.
And then the realizing device decodes the first coded data stream according to the first transmission data stream configuration information to obtain a multimedia data stream, namely an original data stream to be transmitted by the first terminal.
In the embodiment of the invention, the transmission data stream is decoded through protocol decapsulation and configuration information, and the multimedia data stream is identified. And the second transmission data stream which can be identified by the second terminal can be converted according to the multimedia data stream, so that the interconnection and intercommunication of the terminals with different protocols are realized.
In a preferred embodiment of the present invention, the encoding the multimedia data stream according to the second transport data stream configuration information and converting the encoded multimedia data stream into the second transport data stream according to the second communication protocol includes:
encoding the multimedia data stream according to the second transmission data stream configuration information, and determining a second encoded data stream;
and encapsulating the second coded data stream according to the second communication protocol, and determining a second transmission data stream.
Specifically, after the implementation device obtains the multimedia data stream, the second communication protocol and the second data stream configuration information, the implementation device encodes the multimedia data stream according to the second transmission data stream configuration information to obtain a second indication data stream.
And then, the realization device encapsulates the second coded data stream according to the second communication protocol to obtain a second transmission data stream.
And then, the realization device sends the second transmission data stream to the second terminal, so as to realize interconnection and intercommunication between the first terminal and the second terminal.
For example, the first terminal is a video networking terminal, the second terminal is an IP terminal, the implementation device determines that the communication protocol of the first terminal is a video networking V2V protocol in advance, the configuration information of the audio data stream is an encoding format Opus, and the configuration information of the video data stream is: encoding format H265, resolution 2K, frame rate 60FPS, code rate 406KBPS. Meanwhile, the implementation device determines that the communication protocol of the second terminal is an IP protocol in advance, the configuration information of the audio data stream is in a coding format G711A, and the configuration information of the video data stream is: the coding format H264 has 1080P resolution, 30FPS frame rate and 326KBPS code rate.
When the first terminal sends a first audio-video stream to the second terminal, the implementation device analyzes the first audio-video stream according to the V2V protocol of the video network, converts the first audio-video stream with an audio coding format of Opus, a video coding format of H265, a resolution of 2k, a frame rate of 60FPS and a code rate of 406KBPS into a second audio-video stream conforming to an IP protocol with an audio coding format of G711A, a video coding format of H264, a resolution of 1080P, a frame rate of 30FPS and a code rate of 326KBPS, and then sends the second audio-video stream to the second terminal.
Similarly, when the second terminal sends the third audio-video stream to the first terminal, the implementation device analyzes the third audio-video stream according to the IP protocol, converts the third audio-video stream with the audio coding format of G711A, the video coding format of H264, the resolution of 1080P, the frame rate of 30FPS, the code rate of 326KBPS into the fourth audio-video stream with the audio coding format of opu, the video coding format of H265, the resolution of 2k, the frame rate of 60FPS, the code rate of 406KBPS and conforming to the V2V protocol of the video network, and then sends the fourth audio-video stream to the first terminal, so that the non-IP protocol terminal and the IP protocol terminal can communicate with each other without modifying any configuration, thereby realizing the requirement that the terminal and the IP protocol terminal of the non-IP protocol can communicate with each other under the conditions of different protocols, inconsistent encoding and decoding and non-uniform resolution.
In the embodiment of the invention, the transmission data streams of different communication protocols are converted into the transmission data streams of opposite-end communication protocols according to the communication protocols and the transmission data stream configuration information between the terminals of different communication protocols, and the terminals of different communication protocols can communicate with each other under the condition of not modifying any configuration by the communication protocol conversion and the transmission data stream configuration information conversion, so that the interconnection and the intercommunication of the different terminals of different protocols are realized.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 2, there is shown a block diagram of an embodiment of an apparatus for implementing communication of terminals of different protocols according to the present invention, which may specifically include the following units:
a receiving unit 210, configured to receive a first transmission data stream sent by a first terminal, where the first transmission data stream is sent by the first terminal to a second terminal, and a first communication protocol corresponding to the first terminal is different from a second communication protocol corresponding to the second terminal;
a first obtaining unit 220, configured to obtain a first communication protocol and first transmission data stream configuration information corresponding to the first terminal;
a decoding unit 230, configured to decode the first transport data stream according to the first communication protocol and first transport data stream configuration information, and determine a multimedia data stream;
A second obtaining unit 240, configured to obtain a second communication protocol and second transmission data stream configuration information corresponding to the second terminal;
a conversion unit 250, configured to encode the multimedia data stream according to the second transport data stream configuration information, and convert the encoded multimedia data stream into a second transport data stream according to the second communication protocol;
a transmitting unit 260, configured to transmit the second transmission data stream to the second terminal.
In a preferred embodiment of the present invention, the decoding unit 230 is specifically configured to:
analyzing the first transmission data stream according to the first communication protocol, and determining a first coding data stream;
and decoding the first coded data stream according to the first transmission data stream configuration information, and determining the multimedia data stream.
In a preferred embodiment of the present invention, the conversion unit 250 is specifically configured to:
encoding the multimedia data stream according to the second transmission data stream configuration information, and determining a second encoded data stream;
and encapsulating the second coded data stream according to the second communication protocol, and determining a second transmission data stream.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
Referring to fig. 3, a block diagram of an embodiment of a gateway of the present invention is shown, which may specifically include the following modules:
an identification module 310, a storage module 320, a configuration module 330 and a soft-programming soft-solution module 340;
the identifying module 310 is configured to identify a communication protocol and transmission data stream configuration information corresponding to each terminal;
the storage module 320 is configured to store the communication protocol and the configuration information of the transmission data stream corresponding to each terminal, and send the stored information to the configuration module 330;
the configuration module 330 is configured to associate each terminal, a communication protocol, and transmission data stream configuration information, generate terminal configuration information, and send the terminal configuration information to the soft-coding soft-decoding module 340;
the soft-coding soft-decoding module is used for receiving a first transmission data stream sent by a first terminal, wherein the first transmission data stream is sent to a second terminal by the first terminal, and a first communication protocol corresponding to the first terminal is different from a second communication protocol corresponding to the second terminal; acquiring a first communication protocol and first transmission data stream configuration information corresponding to the first terminal; decoding the first transmission data stream according to the first communication protocol and the first transmission data stream configuration information, and determining a multimedia data stream; acquiring a second communication protocol and second transmission data stream configuration information corresponding to the second terminal; encoding the multimedia data stream according to the second transmission data stream configuration information, and converting the encoded multimedia data stream into a second transmission data stream according to the second communication protocol; and sending the second transmission data stream to the second terminal.
Specifically, 2 terminal devices are connected to the gateway device through a physical network cable, and device information of terminals with different protocols is identified through the identifying module 310, including communication protocols and transmission data stream configuration information corresponding to each terminal. The identified information is sent to the storage module 320, the storage module 320 stores all the terminal information, and sends the terminal information to the configuration module 330, the configuration module 330 associates each terminal, the communication protocol, and the transmission data stream configuration information, generates terminal configuration information, and sends the terminal configuration information to the soft-coding soft-decoding module 340.
At this time, one of the terminals can be used for calling the other terminal, after the signaling intercommunication, the terminal can send an audio/video stream to the soft-coding soft-decoding module 340, the soft-coding soft-decoding module 340 decodes the audio/video according to the terminal configuration information, checks the capability set of the receiving terminal, codes according to the capability set information, and sends the compiled audio/video stream to the receiving terminal, so as to realize the interconnection and intercommunication of different terminals under different protocols.
Referring to fig. 4, a flow chart of implementing communication between a V2V terminal and an IP terminal in an embodiment of a gateway according to the present invention is shown, in practical application, two terminals with different communication protocols may be connected to two physical ports of the gateway through a network cable, and after connection, a "one-key automatic identification" key start identification module 310 is clicked on a gateway device.
The identification module 310 performs terminal name identification, if the name is configured, the identification result is the configured name, and if the name is not configured, the default identification result is the terminal model, for example, the identification terminal is a V2V terminal, and the IP terminal.
The identification module 310 identifies a protocol type, such as V2V protocol, IP protocol;
the recognition module 310 recognizes the audio sampling rate, and the sampling rate of the V2V terminal is Opus; the sampling rate of the IP terminal is G711A;
the identification module 310 identifies the coding format and resolution of the video configuration, and the V2V terminal is H265 and 2K; the IP terminals are H264 and 1080P;
the identification module 310 identifies the frame rate and code rate of the video configuration, and the V2V terminal is 60FPS and 406KBPS; the IP terminals are 30FPS and 326KBPS.
Thereafter, the identification module 310 transmits the identified terminal information to the storage module 320, which stores all the identified terminal information and transmits to the configuration module 330.
After the configuration module 320 receives all the identified terminal information, configuration is performed, specifically, the user may perform configuration through a drop-down box:
(1) Clicking the name configuration item, popping up a drop-down frame, and displaying the latest identified terminal information on a first row;
(2) And selecting the V2V terminal, automatically completing other configuration items (such as a communication protocol, transmission data stream configuration information and the like), and clicking for storage.
(3) And opening the drop-down frame again, selecting the IP terminal, automatically completing other configuration items at the moment, and clicking for storage.
If clicking the "name configuration item" and popup the drop-down box, there are 2 ways to solve the problem that the latest identification information is not displayed:
(1) The step of identifying the terminal information to the configuration terminal information is repeated again until the configuration module 330 displays all the terminal information.
(2) Manual configuration is directly performed until the configuration module 330 displays all terminal information.
The configuration module 330 then sends the configuration information to the soft-programming soft-solution module 340.
The soft codec soft-decoder module 340 decodes and re-encodes the audio and video stream as follows:
a1, calling the IP terminal by using the V2V terminal at the moment, and sending an audio and video stream to the soft-editing soft-decoding module 340 by the terminal after signaling intercommunication;
a2, the soft coding and soft decoding module 340 decodes the video sent by the V2V terminal and recompiles the video into a real-time transmission audio/video stream with G711A, H coding format, 1080P resolution, 30FPS frame rate and 326KBPS code rate, and sends the real-time transmission audio/video stream to the IP terminal;
and A3, similarly, the soft coding and soft decoding module 340 can decode and recompile the printed video sent by the IP terminal, and send the real-time transmission audio/video stream with the Opus, H265 format, resolution of 2k, frame rate of 60FPS and code rate of 406KBPS format to the V2V terminal to realize video telephone communication. And the gateway equipment is used for realizing interconnection and interworking of different protocol terminals under different coding formats.
In a preferred embodiment of the present invention, the identification module 310 is specifically configured to:
acquiring terminal identifiers corresponding to all terminals, and identifying communication protocols corresponding to the terminals according to the terminal identifiers;
and determining the configuration information of the transmission data stream corresponding to the terminal according to the communication protocol.
Specifically, the identification module 310 may acquire identification information corresponding to each terminal, for example, an identity, retrieve an existing terminal identity, a communication protocol and a transmission data stream configuration information database through the identity, acquire the communication protocol corresponding to each terminal from the identification information corresponding to each terminal, and then determine the transmission data stream configuration information corresponding to the terminal according to each communication protocol. For example, when the identification module 310 obtains that the terminal is a V2V terminal of the internet of view and the communication protocol is a V2V protocol, the configuration information of the transmission data stream of the terminal may be determined based on the V2V protocol as follows: the configuration information of the audio data stream is in an encoding format Opus, and the configuration information of the video data stream is as follows: encoding format H265, resolution 2K, frame rate 60FPS, code rate 406KBPS.
In the embodiment of the invention, the terminal communication protocol is acquired through the terminal identifier, and the configuration information of the transmission data stream of the terminal is determined through the terminal communication protocol, so that the accuracy of terminal information identification is improved.
In a preferred embodiment of the present invention, the identification module 310 is specifically configured to:
and receiving the communication protocol and the transmission data stream configuration information corresponding to each terminal input by the user.
Specifically, the identification module 310 provides an interface for inputting information, and after the user manually inputs the communication protocol and the transmission data stream configuration information corresponding to each terminal, the identification module 310 obtains the communication protocol and the transmission data stream configuration information corresponding to each terminal, and for the terminal communication protocol and the transmission data stream configuration information which cannot be automatically identified, the information can also be accurately obtained, thereby expanding the application range of terminal information identification.
In a preferred embodiment of the present invention, the identification module 310 is specifically configured to:
sending test data packets to each terminal;
and receiving the test data response packet returned by each terminal, analyzing the test data response packet, and acquiring the communication protocol and the transmission data stream configuration information corresponding to each terminal.
Specifically, the identification module 310 may send a test data packet to each terminal, receive the test data packet returned by the terminal, parse the test data packet, and analyze from each field to obtain the communication protocol and the configuration information of the transmission data stream corresponding to the terminal. The application range of terminal information identification is enlarged and the accuracy of terminal information identification is improved by various modes of acquiring terminal communication protocols and transmitting data stream configuration information.
For gateway embodiments, the description is relatively simple, as it is substantially similar to method embodiments, and reference should be made to the description of method embodiments for relevant points.
Referring to fig. 5, there is shown a block diagram of an embodiment of an electronic device of the present invention, the device comprising: a processor 510, a machine-readable medium 520, and a bus 530;
wherein the processor 510 and the machine-readable medium 520 communicate with each other through the bus 530;
the processor 510 is configured to invoke program instructions in the machine-readable medium 520 to perform the methods provided by the method embodiments described above, including, for example: receiving a first transmission data stream sent by a first terminal, wherein the first transmission data stream is sent to a second terminal by the first terminal, and a first communication protocol corresponding to the first terminal is different from a second communication protocol corresponding to the second terminal; acquiring a first communication protocol and first transmission data stream configuration information corresponding to the first terminal; decoding the first transmission data stream according to the first communication protocol and the first transmission data stream configuration information, and determining a multimedia data stream; acquiring a second communication protocol and second transmission data stream configuration information corresponding to the second terminal; encoding the multimedia data stream according to the second transmission data stream configuration information, and converting the encoded multimedia data stream into a second transmission data stream according to the second communication protocol; and sending the second transmission data stream to the second terminal.
Embodiments of the present invention disclose a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the method embodiments described above, for example comprising: receiving a first transmission data stream sent by a first terminal, wherein the first transmission data stream is sent to a second terminal by the first terminal, and a first communication protocol corresponding to the first terminal is different from a second communication protocol corresponding to the second terminal; acquiring a first communication protocol and first transmission data stream configuration information corresponding to the first terminal; decoding the first transmission data stream according to the first communication protocol and the first transmission data stream configuration information, and determining a multimedia data stream; acquiring a second communication protocol and second transmission data stream configuration information corresponding to the second terminal; encoding the multimedia data stream according to the second transmission data stream configuration information, and converting the encoded multimedia data stream into a second transmission data stream according to the second communication protocol; and sending the second transmission data stream to the second terminal.
Embodiments of the present invention provide a non-transitory computer readable storage medium storing computer instructions that cause a computer to perform the methods provided by the above-described method embodiments, for example, including: receiving a first transmission data stream sent by a first terminal, wherein the first transmission data stream is sent to a second terminal by the first terminal, and a first communication protocol corresponding to the first terminal is different from a second communication protocol corresponding to the second terminal; acquiring a first communication protocol and first transmission data stream configuration information corresponding to the first terminal; decoding the first transmission data stream according to the first communication protocol and the first transmission data stream configuration information, and determining a multimedia data stream; acquiring a second communication protocol and second transmission data stream configuration information corresponding to the second terminal; encoding the multimedia data stream according to the second transmission data stream configuration information, and converting the encoded multimedia data stream into a second transmission data stream according to the second communication protocol; and sending the second transmission data stream to the second terminal.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The above description of the method for implementing communication of different protocol terminals, the device for implementing communication of different protocol terminals and the gateway provided by the invention applies specific examples to illustrate the principle and implementation of the invention, and the above examples are only used for helping to understand the method and core ideas of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (10)
1. A method for implementing communication of terminals of different protocols, the method comprising:
receiving a first transmission data stream sent by a first terminal, wherein the first transmission data stream is sent to a second terminal by the first terminal, and a first communication protocol corresponding to the first terminal is different from a second communication protocol corresponding to the second terminal;
acquiring a first communication protocol and first transmission data stream configuration information corresponding to the first terminal;
decoding the first transmission data stream according to the first communication protocol and the first transmission data stream configuration information, and determining a multimedia data stream;
acquiring a second communication protocol and second transmission data stream configuration information corresponding to the second terminal;
encoding the multimedia data stream according to the second transmission data stream configuration information, and converting the encoded multimedia data stream into a second transmission data stream according to the second communication protocol;
and sending the second transmission data stream to the second terminal.
2. The method of claim 1, wherein said decoding the first transport data stream according to the first communication protocol and first transport data stream configuration information to determine a multimedia data stream comprises:
Analyzing the first transmission data stream according to the first communication protocol, and determining a first coding data stream;
and decoding the first coded data stream according to the first transmission data stream configuration information, and determining the multimedia data stream.
3. The method of claim 1, wherein encoding the multimedia data stream according to the second transport data stream configuration information and converting the encoded multimedia data stream into a second transport data stream according to the second communication protocol comprises:
encoding the multimedia data stream according to the second transmission data stream configuration information, and determining a second encoded data stream;
and encapsulating the second coded data stream according to the second communication protocol, and determining a second transmission data stream.
4. An apparatus for enabling communication between terminals of different protocols, the apparatus comprising:
a receiving unit, configured to receive a first transmission data stream sent by a first terminal, where the first transmission data stream is sent by the first terminal to a second terminal, and a first communication protocol corresponding to the first terminal is different from a second communication protocol corresponding to the second terminal;
a first obtaining unit, configured to obtain a first communication protocol and first transmission data stream configuration information corresponding to the first terminal;
A decoding unit, configured to decode the first transport data stream according to the first communication protocol and first transport data stream configuration information, and determine a multimedia data stream;
a second obtaining unit, configured to obtain a second communication protocol and second transmission data stream configuration information corresponding to the second terminal;
the conversion unit is used for encoding the multimedia data stream according to the second transmission data stream configuration information and converting the encoded multimedia data stream into a second transmission data stream according to the second communication protocol;
and the sending unit is used for sending the second transmission data stream to the second terminal.
5. A gateway, the gateway comprising:
the device comprises an identification module, a storage module, a configuration module and a soft compiling and soft solving module;
the identification module is used for identifying the communication protocol and the transmission data stream configuration information corresponding to each terminal;
the storage module is used for storing the communication protocol and the transmission data stream configuration information corresponding to each terminal and sending the stored information to the configuration module;
the configuration module is used for associating each terminal, a communication protocol and transmission data stream configuration information, generating terminal configuration information and sending the terminal configuration information to the soft-editing soft-decoding module;
The soft-programming soft-solution module is configured to perform the method for implementing communication of terminals with different protocols according to any one of claims 1-3.
6. The gateway of claim 5, wherein the identification module is specifically configured to:
acquiring terminal identifiers corresponding to all terminals, and identifying communication protocols corresponding to the terminals according to the terminal identifiers;
and determining the configuration information of the transmission data stream corresponding to the terminal according to the communication protocol.
7. The gateway of claim 5, wherein the identification module is specifically configured to:
and receiving the communication protocol and the transmission data stream configuration information corresponding to each terminal input by the user.
8. The gateway of claim 5, wherein the identification module is specifically configured to:
sending test data packets to each terminal;
and receiving the test data response packet returned by each terminal, analyzing the test data response packet, and acquiring the communication protocol and the transmission data stream configuration information corresponding to each terminal.
9. An electronic device, comprising:
one or more processors; and
one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the method of implementing different protocol terminal communications of any of claims 1 to 3.
10. A computer-readable storage medium, characterized in that it stores a computer program for causing a processor to execute the method of implementing communication of different protocol terminals according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311176594.7A CN117336378A (en) | 2023-09-12 | 2023-09-12 | Method, device and gateway for realizing communication of terminals with different protocols |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311176594.7A CN117336378A (en) | 2023-09-12 | 2023-09-12 | Method, device and gateway for realizing communication of terminals with different protocols |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117336378A true CN117336378A (en) | 2024-01-02 |
Family
ID=89290990
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311176594.7A Pending CN117336378A (en) | 2023-09-12 | 2023-09-12 | Method, device and gateway for realizing communication of terminals with different protocols |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117336378A (en) |
-
2023
- 2023-09-12 CN CN202311176594.7A patent/CN117336378A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110740363A (en) | Screen projection method and system and electronic equipment | |
EP4262320A1 (en) | Call processing system and call processing method | |
CN113766317A (en) | Video transmission method, video transmission device, electronic equipment and storage medium | |
CN108235111B (en) | Information sharing method and intelligent set top box | |
CN107040458B (en) | Method and system for realizing intercommunication of video conference | |
WO2019007027A1 (en) | Video playing method and system, electronic device and readable storage medium | |
WO2017157168A1 (en) | Method, terminal, system and computer storage medium for video calling | |
CN102231734A (en) | Method, device and system for realizing audio transcoding of TTS (Text To Speech) | |
CN117336378A (en) | Method, device and gateway for realizing communication of terminals with different protocols | |
CN116708391A (en) | Signaling negotiation method, information transmission method and content distribution system | |
CN114125397A (en) | Audio and video communication method, device and system | |
US11265357B2 (en) | AV1 codec for real-time video communication | |
CN114978485A (en) | Voice data transmission method, system, electronic device and storage medium | |
CN112887497A (en) | Communication method, apparatus and computer storage medium | |
CN111385081B (en) | End-to-end communication method and device, electronic equipment and medium | |
CN113259737A (en) | Monitoring method, related device and readable storage medium | |
CN101166279A (en) | Content transmission method and apparatus using video call | |
JP4925972B2 (en) | Media application service system and media application service method | |
CN115361364B (en) | Data transmission method of communication protocol based on WebRTC | |
CN103561105A (en) | Image transmitting method, sending end and receiving end | |
CN116456136B (en) | Equipment screen throwing method and device based on localization | |
CN108337230A (en) | A kind of real-time retransmission method of audio and video based on smart mobile phone and system | |
CN110572349B (en) | Desktop standing alarm method and device | |
CN114143567A (en) | Live broadcast method and device, electronic equipment and computer readable storage medium | |
CN117812436A (en) | Media information negotiation method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |