Data transmission method, device, terminal equipment and storage medium

By preconfiguring the media stream port list and dynamically specifying the port number range on the co-transfer server, the problem of port numbers not matching between the video network terminal and the Internet terminal during audio and video transmission is solved, and the normal transmission of two-way audio and video streams is achieved.

CN112752055BActive Publication Date: 2025-02-18VISIONVERA INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011497963.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-17
Publication Date
2025-02-18
Estimated Expiration
2040-12-17

AI Technical Summary

Technical Problem

When the video network terminal and the Internet terminal are transmitted in audio and video, the randomly generated port number is not within a small range open to the Internet terminal, resulting in the failure of audio and video transmission.

Method used

On the co-transfer server, the sent media stream port number is determined through the pre-configured media stream port list, and the corresponding Internet data packet is sent to the Internet terminal through the virtual terminal to ensure that the port number is within the open range of the Internet terminal.

Benefits of technology

By dynamically specifying the media streaming port number range, we ensure that the two-way audio and video streams can be sent and received normally, solving the transmission failure problem caused by port number mismatch.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112752055B_ABST
    Figure CN112752055B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a data transmission method, apparatus, terminal device and storage medium, including: when an Internet terminal and a visual networking terminal are connected, receiving a first visual networking data packet sent by the visual networking terminal, determining a media stream port number for sending a visual networking data packet in a pre-configured media stream port list, wherein the pre-configured media stream port list corresponds to the Internet terminal; determining a first Internet data packet corresponding to the visual networking data packet according to the media stream port number and the first visual networking data packet; sending the first Internet data packet to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal, and by adding a function of dynamically specifying the media stream transmission port number range on the coordination server, it is necessary to configure the media stream port number range in the configuration file to the open port range provided by the Internet terminal, thereby ensuring normal sending and receiving of two-way audio and video streams.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a data transmission method, device, terminal equipment and storage medium. Background Art

[0002] At present, with the popularization and development of visual networking services across the country, the visual networking high-definition video interaction technology plays a vital role in various industries. The visual networking adopts the world's most advanced VisionVera real-time high-definition video exchange technology, realizing the real-time transmission of high-definition video across the entire network that is currently impossible to achieve on the Internet. It integrates dozens of video, voice, picture, text, communication, data and other services such as high-definition video conferencing, video monitoring, remote training, intelligent monitoring analysis, emergency command, video phone, live broadcast, TV mail, information release, etc. into a system platform, and realizes real-time interconnection of high-definition quality video communication through a variety of terminal devices.

[0003] When the visual networking terminal communicates with the Internet terminal via audio and video, the coordination server will encapsulate the audio and video stream sent by the visual networking terminal into an audio and video stream of the RTP protocol, and randomly generate a port number and send it to the Internet terminal. However, the randomly generated port number is generally between 0-65535, and the Internet terminal only opens a small range of port areas to ensure the security of data transmission. In this way, the randomly generated port number will not be in the small range of port areas of the Internet terminal, resulting in failure of audio and video transmission. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a data transmission method, apparatus, terminal device and storage medium that overcome the above problems or at least partially solve the above problems.

[0005] In a first aspect, an embodiment of the present invention provides a data transmission method, which is applied to a coordination server, and the method includes:

[0006] When the Internet terminal and the visual networking terminal are connected, receiving a first visual networking data packet sent by the visual networking terminal;

[0007] Determine, in a pre-configured media stream port list, a media stream port number for sending the first visual networking data packet, wherein the pre-configured media stream port list corresponds to the Internet terminal;

[0008] Determine, according to the media stream port number and the first visual networking data packet, a first Internet data packet corresponding to the visual networking data packet;

[0009] The first Internet data packet is sent to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal, so that the Internet terminal and the visual network terminal can perform data transmission.

[0010] Optionally, determining the media stream port number for sending the first visual networking data packet in a pre-configured media stream port list includes:

[0011] In the pre-configured media stream port list, a media stream port number is generated by a random generation algorithm.

[0012] Optionally, the generating a media stream port number by a random generation algorithm includes:

[0013] The media stream port number is generated by calling a random function.

[0014] Optionally, determining, according to the media stream port number and the first visual networking data packet, a first Internet data packet corresponding to the first visual networking data packet comprises:

[0015] De-heading the first visual networking data packet to obtain a raw data stream;

[0016] The media stream port number, data raw stream and Internet protocol packet header are bound to obtain a first Internet data packet corresponding to the visual network data packet.

[0017] Optionally, before receiving the first visual networking data packet sent by the visual networking terminal, the method further includes:

[0018] Receiving a call request of the video networking protocol sent by the video networking terminal;

[0019] Converting the video networking protocol call request into an Internet protocol call request;

[0020] The Internet protocol call request is sent to the Internet terminal.

[0021] Optionally, the method further comprises:

[0022] Receiving an Internet response instruction indicating successful connection returned by the Internet terminal;

[0023] Converting the Internet response instruction into a visual network response instruction;

[0024] The visual networking response instruction is sent to the visual networking terminal through the visual networking server.

[0025] Optionally, the method further comprises:

[0026] Receiving a second Internet data packet sent by the Internet terminal through the media stream port number;

[0027] Determine, according to the second Internet data packet, a second visual network data packet corresponding to the second Internet data packet;

[0028] The second visual networking data packet is sent to the visual networking terminal through the visual networking protocol.

[0029] In a second aspect, an embodiment of the present invention provides a data transmission device, which is applied to a coordination server, and includes:

[0030] A first receiving module, used for receiving a first visual networking data packet sent by the visual networking terminal when the Internet terminal and the visual networking terminal are connected;

[0031] An allocation module, configured to determine a media stream port number for sending the first visual network data packet in a pre-configured media stream port list, wherein the pre-configured media stream port list corresponds to the Internet terminal;

[0032] A determination module, configured to determine a first Internet data packet corresponding to the visual networking data packet according to the media stream port number and the first visual networking data packet;

[0033] The first sending module is used to send the first Internet data packet to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal, so that the Internet terminal and the visual network terminal can perform data transmission.

[0034] Optionally, the allocation module is used to:

[0035] In the pre-configured media stream port list, a media stream port number is generated by a random generation algorithm.

[0036] Optionally, the allocation module is specifically used to:

[0037] The media stream port number is generated by calling a random function.

[0038] Optionally, the determining module is used to:

[0039] De-heading the first visual networking data packet to obtain a raw data stream;

[0040] The media stream port number, data raw stream and Internet protocol packet header are bound to obtain a first Internet data packet corresponding to the visual network data packet.

[0041] Optionally, the device further includes a request module, wherein the request module is configured to:

[0042] Receiving a call request of the video networking protocol sent by the video networking terminal;

[0043] Converting the video networking protocol call request into an Internet protocol call request;

[0044] The Internet protocol call request is sent to the Internet terminal.

[0045] Optionally, the device further comprises a response module, wherein the response module is configured to:

[0046] Receiving an Internet response instruction indicating successful connection returned by the Internet terminal;

[0047] Converting the Internet response instruction into a visual network response instruction;

[0048] The visual networking response instruction is sent to the visual networking terminal through the visual networking server.

[0049] Optionally, the device further comprises a return module, wherein the return module is used to:

[0050] Receiving a second Internet data packet sent by the Internet terminal through the media stream port number;

[0051] Determine, according to the second Internet data packet, a second visual network data packet corresponding to the second Internet data packet;

[0052] The second visual networking data packet is sent to the visual networking terminal through the visual networking protocol.

[0053] In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and a memory;

[0054] The memory stores a computer program; and the at least one processor executes the computer program stored in the memory to implement the data transmission method provided in the first aspect.

[0055] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the data transmission method provided in the first aspect is implemented.

[0056] The embodiments of the present invention include the following advantages:

[0057] The data transmission method, apparatus, terminal device and storage medium provided by the embodiments of the present invention receive a first visual networking data packet sent by a visual networking terminal when a connection is established between the Internet terminal and the visual networking terminal, and determine a media stream port number for sending a visual networking data packet in a pre-configured media stream port list, wherein the pre-configured media stream port list corresponds to the Internet terminal; determine a first Internet data packet corresponding to the visual networking data packet according to the media stream port number and the first visual networking data packet; send the first Internet data packet to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal, and add a function of dynamically specifying the media stream transmission port number range on the coordination server, and configure the media stream port number range in the configuration file to the open port range provided by the Internet terminal, thereby ensuring normal sending and receiving of two-way audio and video streams. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 is a flowchart of a data transmission method embodiment of the present invention;

[0059] Figure 2 is a flowchart of another data transmission method embodiment of the present invention;

[0060] Figure 3 is a flowchart of steps of another data transmission method embodiment of the present invention;

[0061] Figure 4 is a structural block diagram of an embodiment of a data transmission device of the present invention;

[0062] Figure 5 It is a structural schematic diagram of a terminal device of the present invention. DETAILED DESCRIPTION

[0063] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0064] The visual Internet is an important milestone in the development of the Internet. It is a real-time network that can realize real-time transmission of high-definition video and push many Internet applications towards high-definition video and high-definition face-to-face communication.

[0065] The visual network adopts real-time high-definition video exchange technology. It can integrate the required services such as high-definition video conferencing, video monitoring, intelligent monitoring analysis, emergency command, digital radio and television, delayed TV, online teaching, live broadcast, VOD on demand, TV mail, personalized recording (PVR), intranet (self-operated) channels, intelligent video broadcast control, information release and dozens of other video, voice, picture, text, communication, data and other services on a single system platform, and realize high-definition quality video playback through TV or computer.

[0066] Based on the above characteristics of visual networking, one of the core concepts of an embodiment of the present invention is proposed. When an Internet terminal and a visual networking terminal are connected, a first visual networking data packet sent by the visual networking terminal is received, and a media stream port number for sending a visual networking data packet is determined in a pre-configured media stream port list, wherein the pre-configured media stream port list corresponds to the Internet terminal; according to the media stream port number and the first visual networking data packet, a first Internet data packet corresponding to the visual networking data packet is determined; the first Internet data packet is sent to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal, and by adding a function of dynamically specifying the media stream transmission port number range on the coordination server, the media stream port number range in the configuration file needs to be configured to the inside of the open port range provided by the Internet terminal, thereby ensuring normal sending and receiving of two-way audio and video streams.

[0067] The glossary is explained as follows:

[0068] RTP protocol: Real-time Transport Protocol, RTP protocol is used to provide end-to-end real-time transmission services for various multimedia data that need real-time transmission, such as voice, images, fax, etc. on IP networks. RTP provides time information and stream synchronization for end-to-end real-time transmission on the Internet, but does not guarantee the quality of service. The quality of service is provided by RTCP;

[0069] XMCU protocol conversion server: protocol conversion server, responsible for communication, streaming media protocol conversion and audio and video data packet encapsulation functions, used for dynamic setting of port range in audio and video transmission with H323 terminal, i.e. Internet terminal.

[0070] An embodiment of the present invention provides a data transmission method for transmitting audio and video data. The execution subject of this embodiment is a data transmission device, which is arranged on a coordination server.

[0071] Reference Figure 1 , shows a flow chart of steps of a data transmission method embodiment of the present invention, which can be applied to a coordination server and can specifically include the following steps:

[0072] S101, when the Internet terminal and the visual networking terminal are connected, receiving a first visual networking data packet sent by the visual networking terminal;

[0073] Specifically, the Internet terminal in the embodiment of the present invention is a soft terminal of an Internet device. A virtual terminal of the soft terminal of the Internet device is established in advance on the coordination server, and after the virtual terminal and the visual networking terminal are successfully connected to the network, a connection between the Internet terminal and the visual networking terminal is established. The visual networking terminal sends a first visual networking data packet to the coordination server through the visual networking protocol.

[0074] S102, determining a media stream port number for sending the first visual network data packet in a pre-configured media stream port list, wherein the pre-configured media stream port list corresponds to the Internet terminal;

[0075] Specifically, in an embodiment of the present invention, different Internet terminals correspond to their own port lists, and the maximum and minimum values ​​of the open port list range are pre-configured on the coordination server. The pre-configured media stream port list corresponds to the Internet terminal. The coordination server pre-generates the media stream port number to be used to send the first visual network data packet based on the pre-configured media stream port list. The media stream port number is located in the port list of the Internet terminal to facilitate subsequent data transmission.

[0076] S103, determining a first Internet data packet corresponding to the visual networking data packet according to the media stream port number and the first visual networking data packet;

[0077] Specifically, the cooperative server parses the first visual network data packet to obtain a raw data stream, then encapsulates the raw data stream into a first Internet data packet, and sends the first Internet data packet through the generated media stream port number.

[0078] S104. Send the first Internet data packet to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal, so that the Internet terminal and the visual network terminal can perform data transmission.

[0079] Specifically, the virtual terminal of the Internet terminal pre-installed on the protocol server sends the first Internet data packet to the Internet terminal. In this way, by adding the function of dynamically specifying the media stream transmission port number range on the coordination server, the media stream port number range in the configuration file needs to be configured to the open port range provided by the Internet terminal, so as to facilitate data transmission between the Internet terminal and the visual network terminal.

[0080] The data transmission method provided by the embodiment of the present invention receives a first visual networking data packet sent by a visual networking terminal when a connection is established between the Internet terminal and the visual networking terminal, and determines a media stream port number for sending a visual networking data packet in a pre-configured media stream port list, wherein the pre-configured media stream port list corresponds to the Internet terminal; determines a first Internet data packet corresponding to the visual networking data packet according to the media stream port number and the first visual networking data packet; sends the first Internet data packet to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal, and adds a function of dynamically specifying the media stream transmission port number range on the coordination server, and needs to configure the media stream port number range in the configuration file to the open port range provided by the Internet terminal, thereby ensuring normal sending and receiving of two-way audio and video streams.

[0081] Another embodiment of the present invention further supplements the data transmission method provided by the above embodiment.

[0082] like Figure 2 FIG. 1 is a flowchart showing another data transmission method embodiment of the present invention, wherein the data transmission method comprises:

[0083] S201, receiving a call request of the visual networking protocol sent by the visual networking terminal; converting the call request of the visual networking protocol into a call request of the Internet protocol; and sending the call request of the Internet protocol to the Internet terminal.

[0084] Specifically, the Internet terminal in the embodiment of the present invention is a soft terminal of an Internet device. A virtual terminal of the soft terminal of the Internet device is established in advance on the coordination server, and after the virtual terminal and the visual networking terminal are successfully connected to the network, a connection is established between the Internet terminal and the visual networking terminal to facilitate the visual networking terminal to send the first visual networking data packet to the coordination server through the visual networking protocol.

[0085] The visual networking terminal sends a call request to the coordination server through the visual networking protocol. The coordination server converts the call request of the visual networking protocol into a call request of the Internet protocol and sends the call request of the Internet protocol to the Internet terminal.

[0086] S202, receiving an Internet response instruction indicating successful connection returned by the Internet terminal; converting the Internet response instruction into a visual network response instruction; and sending the visual network response instruction to the visual network terminal through the visual network server.

[0087] Specifically, in an embodiment of the present invention, after receiving a call request, the Internet terminal returns an Internet response instruction to the coordination server, converts the Internet response instruction into a response instruction of the visual networking protocol, and returns the response instruction of the visual networking protocol to the visual networking server, and the visual networking server sends the response instruction of the visual networking protocol to the visual networking terminal.

[0088] S203, when the Internet terminal and the visual networking terminal are connected, receiving a first visual networking data packet sent by the visual networking terminal;

[0089] Specifically, when a connection is established between the Internet terminal and the visual networking terminal, a first visual networking data packet sent by the visual networking terminal is received.

[0090] S204, generating a media stream port number in a pre-configured media stream port list by a random generation algorithm, wherein the pre-configured media stream port list corresponds to an Internet terminal;

[0091] Specifically, the protocol server generates a media stream port number by calling a random function, which is used to transmit the first visual network data packet.

[0092] S205, removing the header of the first visual network data packet to obtain a data bare stream;

[0093] S206. Bind the media stream port number, the raw data stream and the Internet Protocol packet header to obtain a first Internet data packet corresponding to the visual network data packet.

[0094] S207, receiving a second Internet data packet sent by the Internet terminal through the media stream port number;

[0095] S208, determining a second visual network data packet corresponding to the second Internet data packet according to the second Internet data packet;

[0096] S209, sending the second visual networking data packet to the visual networking terminal through the visual networking protocol.

[0097] Figure 3 is a flowchart of another embodiment of a data transmission method of the present invention, such as Figure 3 As shown, the visual networking terminal is connected to the visual networking server, the visual networking server is connected to the coordination server, the coordination server is connected to the Internet soft terminal, and the coordination server is provided with an RTP media stream module, a visual networking module and an Internet module.

[0098] After the visual networking terminal and the Internet terminal establish a connection, the visual networking terminal sends audio and video data to the Internet terminal and can also receive audio and video data sent by the Internet terminal.

[0099] In the process of visual networking terminal calling and communicating with H323 terminal with the help of XMCU server, i.e. coordination server, the range of media stream port number is first obtained from the configuration file, and then the port number used for media stream transmission is randomly generated in this range through an algorithm, and then the port numbers of audio and video are specified respectively, and then this port number is bound to the RTP sending object information to send and receive audio and video streams.

[0100] After setting up the environment, first configure the maximum and minimum values ​​of the open port list range in the RTP module configuration file, then start the server program, and after the cooperative server reads the range value, it sends the range information to the H323 module, i.e. the Internet module.

[0101] After the virtual terminal is connected to the network normally, the visual networking terminal starts to send a call request to the visual networking module of the XMCU server. The request is converted into a call request of the H323 protocol by the H323 module of the XMCU server and sent to the Internet terminal.

[0102] After the call link is established, the audio and video channels are opened. After receiving the message of the open port range sent by the RTP module, the H323 module of the XMCU server generates a random audio port number within this range through a random generation algorithm.

[0103] Then, the port number information is encapsulated in the audio port opening signaling and sent to the Internet terminal. At the same time, the port information is also encapsulated in the message of communication between XMCU server modules and sent to the RTP module, that is, the media stream module.

[0104] After receiving the port message from the H323 module, the RTP module binds the port number to the audio sending object information setting, so that the audio stream will be sent by the RTP sending object through the specified port number.

[0105] The same principle applies to setting the video port. In this way, you can set the sending port number of the RTP audio and video stream by simply modifying the configuration file.

[0106] An embodiment of the present invention provides a data transmission method, that is, an Internet terminal sends data to a visual network terminal, comprising:

[0107] 1. The soft terminal of the Internet terminal is used as the origin of shared application data. First, configure the virtual terminal of the XMCU coordination server, allow the virtual terminal to access the network normally, and then successfully make a point-to-point call with the Aurora terminal.

[0108] 2. Find the setting for sharing applications on the soft terminal of the Internet terminal. After turning it on, select an ongoing application and start the sharing operation.

[0109] 3. The Internet sends a call request signaling of the T120 protocol to the H323 module of the XMCU coordination server, that is, the Internet module. The H323 module receives the auxiliary stream sending request and converts it into an inter-process communication message T120 protocol within the server to the visual network module.

[0110] 4. After receiving the message, the visual networking module will convert it into the auxiliary stream request signaling 8e01 ​​of the visual networking protocol and send it to the visual networking server. The visual networking server will then convert the signaling into 8e02 signaling and send it to the Aurora terminal, i.e. the visual networking terminal.

[0111] 5. After receiving the 8e02 signaling, the visual networking terminal will send the auxiliary stream acceptance signaling 8e01 ​​to the visual networking server. Similarly, the visual networking server will convert it into 8e02 and send it to the visual networking module of the XMCU server.

[0112] 6. The visual networking module of the cooperative server also creates an inter-process communication reply message T120 response instruction to the H323 module, and the H323 module converts it into an Internet response signaling and sends it back to the soft terminal of the Internet terminal.

[0113] 7. The soft terminal of the Internet terminal will send a return signaling, which contains the current permission to send the auxiliary stream application and related information of the application to the H323 module.

[0114] 8. The H323 module will extract and encapsulate the information in an inter-process message and send it to the visual networking module, telling the visual networking module which application has currently obtained the permission to send auxiliary streams.

[0115] 9. The Internet terminal starts to send the application data in H263 format encapsulated by the RTP protocol to the RTP module of the XMCU server. The RTP module will decapsulate the RTP protocol data into H263 raw stream and send it to the visual network module.

[0116] 10. The visual networking module will encapsulate the H263 data stream into a 2004 data stream of the visual networking protocol and send it to the visual networking server. The visual networking server will then forward it to the Aurora terminal. In this way, the Aurora terminal can see the image of an application on the laptop computer with the soft terminal of the Internet terminal installed, such as the interface of software such as Word or QQ. This is very convenient for hiding the privacy of other applications of customers.

[0117] 11. When the client no longer needs to share application data, the sharing operation is stopped and the Internet terminal sends a release signal to the H323 module to stop sharing.

[0118] 12. Similarly, the H323 module creates a T120 release message and sends it to the visual networking module. When processing this message, the visual networking module creates an 8e01 ​​visual networking signaling to notify the visual networking server that it will stop sharing data.

[0119] 13. The video network server converts the protocol signaling into 8e02 and forwards it to the video network terminal to stop sharing.

[0120] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0121] In the embodiment of the present invention, during the process of the visual networking terminal calling and communicating with the H323 terminal with the help of the XMCU server, the range of the media stream port number is first obtained from the configuration file, and then the port number used for media stream transmission is randomly generated in this range through a random generation algorithm, and then the port numbers of audio and video are respectively specified, and then the port number is bound to the RTP sending object information to send and receive audio and video streams. After adding the function of dynamically specifying the range of media stream transmission port numbers on the XMCU server, when encountering a situation in which there is a range restriction on the open port of the server in the project, it is only necessary to configure the dynamic port range in the configuration file to the inside of the open port range provided by the customer to ensure the normal sending and receiving of two-way audio and video streams.

[0122] The data transmission method provided by the embodiment of the present invention receives a first visual networking data packet sent by a visual networking terminal when a connection is established between the Internet terminal and the visual networking terminal, and determines a media stream port number for sending a visual networking data packet in a pre-configured media stream port list, wherein the pre-configured media stream port list corresponds to the Internet terminal; determines a first Internet data packet corresponding to the visual networking data packet according to the media stream port number and the first visual networking data packet; sends the first Internet data packet to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal, and adds a function of dynamically specifying the media stream transmission port number range on the coordination server, and needs to configure the media stream port number range in the configuration file to the open port range provided by the Internet terminal, thereby ensuring normal sending and receiving of two-way audio and video streams.

[0123] Another embodiment of the present invention provides a data transmission device, which is used to execute the data transmission method provided in the above embodiment.

[0124] Reference Figure 4 , shows a structural block diagram of an embodiment of a data transmission device of the present invention, which can be applied to a coordination server, and specifically can include the following modules: a first receiving module 401, an allocation module 402, a determination module 403 and a first sending module 404, wherein:

[0125] The first receiving module 401 is used to receive a first visual networking data packet sent by the visual networking terminal when the Internet terminal and the visual networking terminal are connected;

[0126] The allocation module 402 is used to determine the media stream port number for sending the first visual network data packet in a pre-configured media stream port list, wherein the pre-configured media stream port list corresponds to the Internet terminal;

[0127] The determination module 403 is used to determine the first Internet data packet corresponding to the visual networking data packet according to the media stream port number and the first visual networking data packet;

[0128] The first sending module 404 is used to send the first Internet data packet to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal, so that the Internet terminal and the visual network terminal can perform data transmission.

[0129] The data transmission device provided by the embodiment of the present invention receives a first visual networking data packet sent by a visual networking terminal when a connection is established between the Internet terminal and the visual networking terminal, and determines a media stream port number for sending a visual networking data packet in a pre-configured media stream port list, wherein the pre-configured media stream port list corresponds to the Internet terminal; determines a first Internet data packet corresponding to the visual networking data packet according to the media stream port number and the first visual networking data packet; sends the first Internet data packet to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal, and by adding a function of dynamically specifying the media stream transmission port number range on the coordination server, it is necessary to configure the media stream port number range in the configuration file to the open port range provided by the Internet terminal, thereby ensuring normal sending and receiving of two-way audio and video streams.

[0130] Another embodiment of the present invention further supplements the data transmission device provided in the above embodiment.

[0131] Optionally, the allocation module 402 is used to:

[0132] In the pre-configured media stream port list, a media stream port number is generated by a random generation algorithm.

[0133] Optionally, the allocation module 402 is specifically configured to:

[0134] The media stream port number is generated by calling a random function.

[0135] Optionally, the determining module is used to:

[0136] De-heading the first visual networking data packet to obtain a raw data stream;

[0137] The media stream port number, data raw stream and Internet protocol packet header are bound to obtain a first Internet data packet corresponding to the visual network data packet.

[0138] Optionally, the device further includes a request module, wherein the request module is configured to:

[0139] Receiving a call request of the video networking protocol sent by the video networking terminal;

[0140] Converting the video networking protocol call request into an Internet protocol call request;

[0141] The Internet protocol call request is sent to the Internet terminal.

[0142] Optionally, the device further comprises a response module, wherein the response module is configured to:

[0143] Receiving an Internet response instruction indicating successful connection returned by the Internet terminal;

[0144] Converting the Internet response instruction into a visual network response instruction;

[0145] The visual networking response instruction is sent to the visual networking terminal through the visual networking server.

[0146] Optionally, the device further comprises a return module, wherein the return module is used to:

[0147] Receiving a second Internet data packet sent by the Internet terminal through the media stream port number;

[0148] Determine, according to the second Internet data packet, a second visual network data packet corresponding to the second Internet data packet;

[0149] The second visual networking data packet is sent to the visual networking terminal through the visual networking protocol.

[0150] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.

[0151] 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.

[0152] The data transmission device provided by the embodiment of the present invention receives a first visual networking data packet sent by a visual networking terminal when a connection is established between the Internet terminal and the visual networking terminal, and determines a media stream port number for sending a visual networking data packet in a pre-configured media stream port list, wherein the pre-configured media stream port list corresponds to the Internet terminal; determines a first Internet data packet corresponding to the visual networking data packet according to the media stream port number and the first visual networking data packet; sends the first Internet data packet to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal, and by adding a function of dynamically specifying the media stream transmission port number range on the coordination server, it is necessary to configure the media stream port number range in the configuration file to the open port range provided by the Internet terminal, thereby ensuring normal sending and receiving of two-way audio and video streams.

[0153] Yet another embodiment of the present invention provides a terminal device for executing the data transmission method provided in the above embodiment.

[0154] Figure 5 is a schematic diagram of the structure of a terminal device of the present invention, such as Figure 5 As shown, the terminal device includes: at least one processor 501 and a memory 502;

[0155] The memory stores a computer program; and the at least one processor executes the computer program stored in the memory to implement the data transmission method provided in the above embodiment.

[0156] The terminal device provided in this embodiment receives a first visual networking data packet sent by a visual networking terminal when a connection is established between the Internet terminal and the visual networking terminal, and determines a media stream port number for sending a visual networking data packet in a pre-configured media stream port list, wherein the pre-configured media stream port list corresponds to the Internet terminal; determines a first Internet data packet corresponding to the visual networking data packet according to the media stream port number and the first visual networking data packet; sends the first Internet data packet to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal, and by adding a function of dynamically specifying the media stream transmission port number range on the coordination server, it is necessary to configure the media stream port number range in the configuration file to the open port range provided by the Internet terminal, thereby ensuring normal sending and receiving of two-way audio and video streams.

[0157] Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the data transmission method provided in any of the above embodiments is implemented.

[0158] According to the computer-readable storage medium of the present embodiment, by establishing a connection between an Internet terminal and a visual networking terminal, a first visual networking data packet sent by the visual networking terminal is received, and a media stream port number for sending a visual networking data packet is determined in a pre-configured media stream port list, wherein the pre-configured media stream port list corresponds to the Internet terminal; according to the media stream port number and the first visual networking data packet, a first Internet data packet corresponding to the visual networking data packet is determined; the first Internet data packet is sent to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal, and by adding a function of dynamically specifying the media stream transmission port number range on the coordination server, the media stream port number range in the configuration file needs to be configured to within the open port range provided by the Internet terminal, thereby ensuring normal sending and receiving of two-way audio and video streams.

[0159] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0160] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0161] The embodiments of the present invention are described with reference to flowcharts and / or block diagrams of methods, electronic devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing electronic device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing electronic device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0162] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0163] These computer program instructions can also be loaded onto a computer or other programmable data processing electronic device so that a series of operating steps are executed on the computer or other programmable electronic device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable electronic device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0164] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0165] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or electronic device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or electronic device. In the absence of further restrictions, the elements defined by the sentence "comprises one..." do not exclude the presence of other identical elements in the process, method, article or electronic device including the elements.

[0166] The data transmission method and the data transmission device provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are explained by using specific examples in this article. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and the scope of application. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A data transmission method, characterized in that: Applied to the coordination server, the method includes: When the Internet terminal and the visual networking terminal are connected, receiving a first visual networking data packet sent by the visual networking terminal; Determine, in a pre-configured media stream port list, a media stream port number for sending the first visual networking data packet, wherein the pre-configured media stream port list corresponds to the Internet terminal; Determine, according to the media stream port number and the first visual networking data packet, a first Internet data packet corresponding to the visual networking data packet; Sending the first Internet data packet to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal of the Internet terminal, so that the Internet terminal and the visual network terminal perform data transmission; Wherein, determining the first Internet data packet corresponding to the first visual networking data packet according to the media stream port number and the first visual networking data packet comprises: Parsing the first visual network data packet to obtain a raw data stream; Encapsulate the raw data stream into the first Internet data packet.

2. The method according to claim 1, characterized in that Determining the media stream port number for sending the first visual networking data packet in the pre-configured media stream port list includes: In the pre-configured media stream port list, a media stream port number is generated by a random generation algorithm.

3. The method according to claim 2, characterized in that Generating the media stream port number by a random generation algorithm includes: The media stream port number is generated by calling a random function.

4. The method according to claim 1, characterized in that: The step of parsing the first visual network data packet to obtain a raw data stream includes: De-heading the first visual networking data packet to obtain a raw data stream; The step of encapsulating the raw data stream into the first Internet data packet comprises: The media stream port number, the data raw stream and the Internet protocol packet header are bound to obtain the first Internet data packet.

5. The method according to claim 1, characterized in that Before receiving the first visual networking data packet sent by the visual networking terminal, the method further includes: Receiving a call request of the video networking protocol sent by the video networking terminal; Converting the video networking protocol call request into an Internet protocol call request; The Internet protocol call request is sent to the Internet terminal.

6. The method according to claim 5, characterized in that The method further comprises: Receiving an Internet response instruction indicating successful connection returned by the Internet terminal; Converting the Internet response instruction into a visual network response instruction; The visual networking response instruction is sent to the visual networking terminal through the visual networking server.

7. The method according to claim 1, characterized in that The method further comprises: Receiving a second Internet data packet sent by the Internet terminal through the media stream port number; Determine, according to the second Internet data packet, a second visual network data packet corresponding to the second Internet data packet; The second visual networking data packet is sent to the visual networking terminal through the visual networking protocol.

8. A data transmission device, characterized in that: Applied to the coordination server, the device comprises: A first receiving module, used for receiving a first visual networking data packet sent by the visual networking terminal when the Internet terminal and the visual networking terminal are connected; An allocation module, configured to determine a media stream port number for sending the first visual network data packet in a pre-configured media stream port list, wherein the pre-configured media stream port list corresponds to the Internet terminal; A determination module, configured to determine a first Internet data packet corresponding to the visual networking data packet according to the media stream port number and the first visual networking data packet; A first sending module, used for sending the first Internet data packet to the Internet terminal corresponding to the media stream port number through a pre-established virtual terminal of the Internet terminal, so that the Internet terminal and the visual network terminal perform data transmission; Among them, the determination module is used to parse the first visual network data packet to obtain a raw data stream; and encapsulate the raw data stream into the first Internet data packet.

9. A terminal device, characterized in that: include: at least one processor and memory; The memory stores a computer program; The at least one processor executes the computer program stored in the memory to implement the data transmission method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the data transmission method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Information transmission method and device

    CN105450585A

  • Method and device for configuring IP addresses and port numbers of two systems

    CN107547692A