Real-time data transmission and reception method and device
The method allows real-time data transmission across devices with varying specifications by using logical data units and format information messages, addressing inefficiencies in existing protocols and enabling versatile data format handling.
Patent Information
- Application Number
- JP2023563839
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-08-23
- Filing Date
- 2023-02-09
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-02-09
AI Technical Summary
Existing data transmission protocols are inefficient in handling multiple data formats due to increased processing burdens and operational complexity when interlinked, limiting their use across devices with varying hardware specifications.
A method involving the transmission of data in logical units with accompanying information messages that include data format details, allowing seamless transmission and reception of data in various formats without format or codec conversion, using a web-based transmission protocol.
Enables real-time data transmission across diverse hardware specifications, minimizing processing delays and losses, and supporting a wide range of protocols through extensible APIs, facilitating low-latency streaming on both high and low-specification devices.
Smart Images

Figure 2024534296000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a method and apparatus for transmitting and receiving data, and more particularly, to a method and apparatus for transmitting and receiving various types of data in real time. [Background technology]
[0002] There are various protocols used to transmit multimedia data such as video and audio in real time. For example, there are various protocols such as RTSP (real-time streaming protocol) mainly used in CCTV (closed circuit television), WebRTC (Web Real-Time Communication) used in video conferences, SRT (secure reliable transport) or RIST (Reliable Internet Stream Transport) for ultra-low latency broadcasting. Since the various conventional protocols are optimized to suit the transmission of a specific data format or application, it is not easy to transmit data of various formats using one protocol.
[0003] If various types of protocols are used together, the processing burden increases due to protocol conversion, format conversion, codec conversion, etc. during interoperation, which leads to higher system performance requirements or increased operational complexity. For example, WebRTC, which has been attracting attention recently as a real-time protocol, supports codecs with high specifications, or the use of free standardized codecs is limited due to the characteristics of web standards, so new codecs cannot be quickly applied to WebRTC and used. In addition, WebRTC has the disadvantage that it is difficult to apply to low-performance IoT devices with low specifications because the transmission data cannot be optimized for use in a lightweight form. Summary of the Invention [Problem to be solved by the invention]
[0004] The technical problem to be solved by the embodiments of the present invention is to provide a real-time data transmitting and receiving method and device thereof capable of transmitting various types of data in real time regardless of the specifications and number of hardware. [Means for solving the problem]
[0005] To achieve the above-mentioned technical objectives, an example of a real-time data transmission method according to an embodiment of the present invention includes, in a real-time data transmission method performed by a transmitting device, a step of transmitting a first information message including data type information of a first data message on a text basis, and a step of continuously transmitting a plurality of first data messages, wherein the first data message and the first information message are messages of logical transmission / reception data units that are composed of at least one or more packets and can be distinguished in an application.
[0006] To achieve the above-mentioned technical objectives, an example of a real-time data receiving method according to an embodiment of the present invention includes, in a real-time data receiving method performed by a receiving device, a step of grasping data type information through the first information message when a first information message transmitted on a text basis is received, and a step of processing a data message received after receiving the first information message based on the data type information. Effect of the Invention
[0007] According to an embodiment of the present invention, data of various formats can be transmitted in real time. As another embodiment, even if a new codec or a new transmission technique is introduced, the data can be accepted and transmitted without codec conversion or format conversion, so that problems such as information loss and processing delay due to codec conversion or format conversion can be minimized and data formats used in various protocols can be accepted. As yet another embodiment, a new protocol can be variously defined and used in the form of an API (application programming interface), so that the extensibility for accepting a new protocol is excellent. [Brief description of the drawings]
[0008] [Figure 1] 1 is a diagram illustrating an example of a data transmitting / receiving device according to an embodiment of the present invention. [Diagram 2] 1 is a diagram illustrating an example of a method for transmitting streaming data according to an embodiment of the present invention. [Diagram 3] 11A and 11B are diagrams illustrating an example of a display format of an information message according to an embodiment of the present invention. [Figure 4] 11A and 11B are diagrams illustrating an example of a display format of an information message according to an embodiment of the present invention. [Diagram 5] 1 illustrates an example of a method for transmitting various types of streaming data according to an embodiment of the present invention. [Figure 6] 1 illustrates an example of a method for periodically transmitting information messages according to an embodiment of the present invention. [Figure 7] 4 is a flowchart illustrating an example of a method for transmitting data in real time by a transmitting device according to an embodiment of the present invention. [Figure 8] 4 is a flowchart illustrating an example of a method for receiving data in real time by a receiving device according to an embodiment of the present invention. [Figure 9] FIG. 2 illustrates an example of a state transition diagram for processing streaming data according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a method and apparatus for transmitting and receiving real-time data according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings.
[0010] FIG. 1 is a diagram illustrating an example of a data transmitting / receiving device according to an embodiment of the present invention.
[0011] 1, a transmitting device 100 is a subject that transmits streaming data, and a receiving device 110 is a subject that receives the streaming data. Both the transmitting device 100 and the receiving device 110 are terminals capable of Internet communication, and may be of various types such as a general computer, a server, or a smartphone. For example, the transmitting device 100 is a device that transmits multimedia data for broadcasting, advertisement, etc.
[0012] In this embodiment, for convenience of explanation, one receiving device 110 is illustrated, but multiple receiving devices 110 may be connected to the transmitting device 100. That is, the transmitting device 100 may transmit streaming data to the multiple receiving devices 110 in various ways, such as broadcasting or multicasting.
[0013] The transmitting device 100 and the receiving device 110 may transmit and receive streaming data using a web-based transmission protocol. For example, the transmitting and receiving devices (the transmitting device 100 and the receiving device 110) may transmit and receive streaming data using WebTransport, WebSocket, etc.
[0014] The streaming data is data transmitted in real time by the transmitting device 100. The streaming data may be of various types, such as image data, video data, audio data, and text data, and is not limited to a specific type. When the receiving device 100 receives the streaming data, it can play it in real time.
[0015] The streaming data may be data in various codecs and various compression formats. For example, the first video data may be compressed by a first codec, and the second video data may be compressed by a second codec. Image data, audio data, text data, etc. may be compressed in different codecs or compression methods even if they are the same type.
[0016] Conventionally, when transmitting data, an optimal protocol suited to the type of data is used. For example, when a transmitting device transmits CCTV, it uses RTSP, and when transmitting video for a video conference, it uses WebRTC, etc. Therefore, conventionally, there is an inconvenience that a transmitting device must use different transmission protocols depending on the type of streaming data it transmits.
[0017] Therefore, the present embodiment provides a method for transmitting various types of streaming data after connecting the transmitting device 100 and the receiving device 110 with a web-based transmission protocol, which will be described in detail with reference to FIG.
[0018] FIG. 2 is a diagram illustrating an example of a method for transmitting streaming data according to an embodiment of the present invention.
[0019] 2, a transmitting device transmits a flow of an information message 210 and a data message 220 to a receiving device. The information message 210 and the data message 220 are messages of logical transmission and reception data units that can be distinguished by an application, and are composed of at least one packet. The packets are transmission and reception data units of a lower transmission layer such as a transmission control protocol (TCP) or a user datagram protocol (UDP). The packets may be in the form of various codecs, various compression protocols (e.g., JPEP, etc.), or various transmission protocols (e.g., WebRTC, RTSP, etc.).
[0020] In one embodiment, in order to distinguish the information message 210 and the data message 220, the data message 220 may use a binary message format, and the information message 210 may use a text message format. In another embodiment, an additional header or type may be defined and used in the packet of the lower transmission layer to distinguish the two messages (information message 210 and data message 220). In the following, it is assumed that the data message 220 is transmitted in a binary message format, the information message 210 is transmitted in a text message format, and the receiving device 110 distinguishes between the two messages.
[0021] The streaming data transmitted by the transmitting device 100 is transmitted in units of a plurality of data messages 220. The information message 210 includes data type information of the data message 220. For example, if the data message 220 is video data compressed by the VP8 codec, the information message 210 includes information that the data type of the data message 220 is "video data" and the codec is "VP8". The transmitting device 100 does not need to change the format of the packets constituting the streaming data, and only needs to transmit the packets of the streaming data themselves in units of data messages.
[0022] The transmitting device 100 and the receiving device 110 do not negotiate in advance with each other as to what type of streaming data to transmit, and the transmitting device 100 unilaterally transmits various types of streaming data. The information message 210 is transmitted on a text basis so that the receiving device 110 can easily interpret the information message 210. As an example of a method for transmitting the information message 210 on a text basis, a MIME (Multipurpose Internet Mail Extensions) format may be used. In addition, various other methods for transmitting the information message 210 on a text basis may be applied to the present embodiment. However, in the following, for convenience of explanation, it is assumed that the information message 210 is defined and transmitted using the MIME format.
[0023] In one embodiment, when transmitting streaming data, the transmitting device 100 may transmit the information message 210 repeatedly at a certain period so that a new receiving device can receive and play the streaming data from the middle of the transmission, as will be further described in FIG.
[0024] In another embodiment, the transmitting device 100 may transmit various types of streaming data in real time while maintaining the connection as it is, without needing to set up a new connection with the receiving device 110. To this end, the transmitting device 100 may transmit an information message 210 whenever the type of streaming data to be transmitted is changed, which will be further described with reference to FIG.
[0025] 3 and 4 are diagrams illustrating examples of display formats of information messages according to embodiments of the present invention.
[0026] 3, the information message 210 can define data format information of the data message 220 transmitted using the MIME format. For example, the information message 210 may include information such as the type and format of streaming data and a codec. For example, if the streaming data is image data compressed by JPEG, the information message 210 may include "image" indicating image data, the size of the image, and information indicating that the compression codec is JPEG. Since the information message 210 is defined in a text format, options can be extended or a data format (i.e., a new media) can be newly defined and used.
[0027] Referring to FIG. 4, the information message 210 also includes information that distinguishes the format of the packet constituting the streaming data. For example, in FIG. 4, if the streaming data is in the form of video data, the information message can define the format of the packet constituting the streaming data using a 'packet=' option. There are various packet formats such as RTP (Real-Time Transport Protocol), TS (transport stream), GDP (Gstreamer Data Protocol), and raw. The information message can include 'packet=codec' if the packet of streaming data is data resulting from codec, and can include 'packet=rtp' if the packet of streaming data is data in the RTP format. As with 'packet=codec', a separate header is not added for efficiency, and the packet itself generated by a compression codec can be immediately transmitted. That is, if the streaming data is data generated by various codecs or various protocols such as RTP and RTCP, the packet itself can be transmitted as it is through the transmission method of FIG. 2 without changing the packet itself of the streaming data. The receiving device 110 can know through the information message 210 whether the streaming data is in a packet format such as RTP or RTCP, and can process and play the received data message through that protocol.
[0028] Since the present embodiment only uses the rules of the text-based MIME format in consideration of web compatibility and readability, the information message 210 does not necessarily need to conform to MIME. For example, the transmitting device 100 may provide an API that allows the user to define and use various streaming data and packet formats in accordance with the standard HTTP MIME information format.
[0029] Since the present embodiment can transmit streaming data in various formats using the information message 210, it is possible to internally accept data formats of various protocols, and therefore, when interlocking different protocols, it can be used conveniently without the burden of conversion and without losing efficiency. In addition, it is possible to transmit data in the most complex WebRTC format as well as data in the simplest format, and therefore it is possible to support a wide range of streaming applications. That is, by applying the data transmission and reception method of the present embodiment, multimedia streaming can be realized even in low-spec IoT devices, and high-spec devices can also realize high-quality low-latency streaming through an optimized transmission technique.
[0030] FIG. 5 is a diagram illustrating an example of a method for transmitting various types of streaming data according to an embodiment of the present invention.
[0031] 5, the transmitting device 100 can sequentially transmit image data 510, video data 512, audio data 514, etc. in real time while being connected to the receiving device 110. The transmitting device 100 first transmits information messages (first information message 500, second information message 502, third information message 504) before transmitting the streaming data in order to inform the receiving device 110 of the data type of the streaming data to be transmitted.
[0032] For example, the transmitting device 100 transmits a first information message 500 indicating whether the data type of the streaming data is an image before transmitting image data 510. In addition, the transmitting device 100 transmits a second information message 502 indicating whether the data type of the streaming data is an image before transmitting video data 512, and transmits a third information message 504 indicating whether the data type of the streaming data is an audio before transmitting audio data 514. Therefore, the receiving device 110 can grasp what type of data the streaming data received is through the first information message 500, the second information message 502, and the third information message 504. Since the information messages (first information message 500, second information message 502, and third information message 504) are transmitted on a text basis, the receiving device 110 can read the information messages as they are and check their contents.
[0033] As another example, the transmitting device 100 may transmit a first data message, transmit a second data message for a short period of time, and then transmit the first data message again. To this end, the transmitting device 100 may transmit a first information message related to the first data message, a second information message related to the second data message, and a first information message related to the first data message, before transmitting each of the data messages.
[0034] FIG. 6 is a diagram illustrating an example of a method for periodically transmitting an information message according to an embodiment of the present invention.
[0035] 6, the transmitting device 100 may periodically transmit a first information message 600 while transmitting data messages 610, 612, and 614 of one type of streaming data. The period of the repeated transmission of the first information message 600 may be variously set according to an application, etc.
[0036] A new second receiving device (not shown) can connect to the transmitting device 100 during the transmission of streaming data and receive the streaming data from the intermediate part. However, the second receiving device (not shown) cannot know what type of streaming data the data message received from the intermediate part is, and cannot play it. The second receiving device (not shown) waits until it receives the first information message 600 to understand the type of streaming data. For example, when the second receiving device (not shown) receives the second transmitted first information message 600, it can understand the data type of the streaming data and process and play the next received data message 614 according to the understood data type. The second receiving device (not shown) discards any data messages received before receiving the first information message 600.
[0037] FIG. 7 is a flowchart illustrating an example of a method for transmitting data in real time by a transmitting device according to an embodiment of the present invention.
[0038] 7, the transmitting device 100 transmits a first information message including data type information of a first data message on a text basis (S700). After transmitting the first information message, the transmitting device 100 can continuously transmit a plurality of first data messages (S710). Here, the first data message and the first information message are messages of logical transmission / reception data units that are composed of at least one packet and can be distinguished in an application. The first information message is defined in MIME format, an example of which is shown in FIG. 3 and FIG. 4.
[0039] In another embodiment, the transmitting device 100 may repeatedly transmit the first information message at a certain period for the receiving device receiving the streaming data in the middle, an example of which is shown in FIG.
[0040] When transmitting a second data message having a data type different from that of the first data message, the transmitting device 100 transmits a second information message indicating the data type of the second data message (S720). After transmitting the second information message, the transmitting device 100 transmits the second data message (S730). As another embodiment, the transmitting device 100 may repeatedly transmit the second information message at a fixed period.
[0041] The transmitting device 100 and the receiving device 110 can transmit and receive different types of streaming data in real time while maintaining the web connection. For example, the transmitting device 100 can sequentially transmit the first information message, at least one or more first data messages, a second information message, and at least one or more second data messages through one connection.
[0042] FIG. 8 is a flowchart illustrating an example of a method for a receiving device to receive data in real time according to an embodiment of the present invention.
[0043] 8, when the receiving device 110 receives a first information message transmitted based on text (S800), it grasps the data type of streaming data through the first information message (S810). The receiving device 110 processes and plays the data message received after receiving the first information message based on the data type information (S820). For example, if the streaming data includes packets generated by a specific codec or RTP, the receiving device 110 can decode and interpret the packets of streaming data based on the first information message using a specific codec or RTP. The receiving device 110 can transmit the streaming data (e.g., video, audio, etc.) to a respective playback device (video playback application, audio playback application, etc.) that matches the data type and play it.
[0044] In another embodiment, the receiving device 110 may not initially receive the streaming data transmitted by the transmitting device 100, but may intermediately connect to the transmitting device 100 and receive the streaming data from the intermediate. In this case, the receiving device 110 may discard the first data message received before receiving the first information message, and process and play the first data message received after receiving the first information message.
[0045] FIG. 9 illustrates an example of a state transition diagram for processing streaming data according to an embodiment of the present invention.
[0046] 9, the receiving device 110 waits to receive an information message in an initial state 900. If a text-based information message is received, the receiving device 110 transitions to an information message decoding state 910. If there is an error in decoding the information message, the receiving device 110 returns to the initial state 900 and waits to receive a new information message.
[0047] If the information message decoding is completed normally, the receiving device 110 transitions to a data message receiving and processing state (920). If an information message is received while receiving and processing a data message, the receiving device 110 further transitions to an information message decoding state (910). If an error occurs in the decoding, the receiving device 110 waits in the initial state 900 until it receives a new information message. Furthermore, if a transmission error or transmission interruption occurs while the receiving device 110 is in the data message receiving and processing state (920), it returns to the initial state 900 and waits to receive an information message.
[0048] The present invention may also be embodied as computer readable code on a computer readable recording medium. The computer readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of the computer readable recording medium include ROM, RAM, CD-ROM, SSD, optical data storage device, etc. The computer readable recording medium may also be distributed among computer systems connected to a network, and the computer readable code may be stored and executed in a distributed manner.
[0049] The present invention has been described above with a focus on the preferred embodiment. Those skilled in the art will understand that the present invention can be embodied in modified forms without departing from the essential characteristics of the present invention. Therefore, the disclosed embodiments should be considered from an illustrative rather than a restrictive perspective. The scope of the present invention is defined by the claims, not the above description, and all differences within the scope of the equivalents should be interpreted as being included in the present invention.
Claims
1. A real-time data transmission method performed by a transmitting device, comprising: transmitting a first information message including data type information of the first data message in a text-based manner; transmitting a plurality of first data messages in succession; Including, The real-time data transmission method, wherein the first data message and the first information message are messages of logical transmission / reception data units that are composed of at least one packet and can be divided in an application.
2. 2. The method of claim 1, wherein the first information message defines the data type information in a Multipurpose Internet Mail Extensions (MIME) format.
3. The step of transmitting the first information message comprises:
2. The method of claim 1, further comprising the step of repeatedly transmitting the first information message at a fixed period.
4. transmitting a second information message including new data type information; transmitting a second data message having a new data format after transmitting the second information message; The real-time data transmission method according to claim 1 , further comprising:
5. The real-time data transmission method of claim 4, wherein the first information message, the first data message, the second information message, and the second data message are transmitted while maintaining a connected state with at least one receiver using a web-based transmission protocol.
6. A real-time data receiving method performed by a receiving device, comprising: receiving a first information message transmitted based on a text, and determining data type information through the first information message; processing a data message received after receiving the first information message based on the data type information; A method for receiving real-time data, comprising:
7. 7. The method of claim 6, further comprising the step of: if a second information message different from the first information message is received, processing a second data message received after the second information message using data type information included in the second information message.
8. 7. The method of claim 6, wherein the first information message defines the data type information in a Multipurpose Internet Mail Extensions (MIME) format.
9. A computer-readable recording medium having recorded thereon a computer program for carrying out the method according to claim 1.
Citation Information
Patent Citations
Communication device, communication data generation method, and communication data processing method
JP2015136058A
Apparatus and method for live streaming between mobile communication terminals
US20110320571A1
Transmission device, transmission method, reception device, and reception method
WO2016039285A1
