KR101940725B1 - Method of error handling between DLNA devices and method of media streaming service using the same - Google Patents

Method of error handling between DLNA devices and method of media streaming service using the same Download PDF

Info

Publication number
KR101940725B1
KR101940725B1 KR1020120097176A KR20120097176A KR101940725B1 KR 101940725 B1 KR101940725 B1 KR 101940725B1 KR 1020120097176 A KR1020120097176 A KR 1020120097176A KR 20120097176 A KR20120097176 A KR 20120097176A KR 101940725 B1 KR101940725 B1 KR 101940725B1
Authority
KR
South Korea
Prior art keywords
dlna
enabled
tcp socket
socket connection
connection
Prior art date
Application number
KR1020120097176A
Other languages
Korean (ko)
Other versions
KR20140030694A (en
Inventor
한일석
Original Assignee
현대모비스 주식회사
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 현대모비스 주식회사 filed Critical 현대모비스 주식회사
Priority to KR1020120097176A priority Critical patent/KR101940725B1/en
Publication of KR20140030694A publication Critical patent/KR20140030694A/en
Application granted granted Critical
Publication of KR101940725B1 publication Critical patent/KR101940725B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

DLNA 지원기기 간 상호 연결시 알 수 있는 미디어 서버의 IP 주소와 Port 번호로 TCP Socket 연결 요청을 보내고 Ack를 수신함으로써 연결 오류를 발견하여 처리한다. 즉, 본 발명의 연결 오류 처리 방법은, 제1 및 제2 DLNA 지원기기 사이의 네트워크 연결을 수립하는 단계; 상기 제1 DLNA 지원기기가 상기 제2 DLNA 지원기기의 IP 주소 및 Port 번호로 TCP 소켓 연결 요청을 송신하고, 상기 제1 DLNA 지원기기가 상기 제2 DLNA 지원기기로부터 TCP 소켓 연결 확인을 수신하는 과정을 주기적으로 반복하는 단계; 및 상기 반복하는 단계에서 미리 정한 일정 시간 동안 상기 TCP 소켓 연결 확인이 수신되지 않는 경우, 상기 제1 DLNA 지원기기에서 동작하는 DLNA 어플리케이션을 종료하는 단계를 포함한다. DLNA Supports TCP Socket connection request with IP address and port number of media server that can be recognized when interconnecting devices. That is, the connection error processing method of the present invention includes: establishing a network connection between the first and second DLNA-enabled devices; The first DLNA-enabled device transmits a TCP socket connection request to an IP address and a port number of the second DLNA-enabled device, and the first DLNA-enabled device receives a TCP socket connection confirmation from the second DLNA- Periodically repeating steps < RTI ID = 0.0 > And terminating the DLNA application operating in the first DLNA-enabled device if the TCP socket connection acknowledgment is not received for a predetermined period of time in the repeating step.

Description

DLNA 기기 간 오류 처리 방법 및 이를 이용한 미디어 스트리밍 서비스 방법{Method of error handling between DLNA devices and method of media streaming service using the same}TECHNICAL FIELD The present invention relates to an error handling method between a DLNA device and a media streaming service using the DLNA device,

본 발명은 DLNA 기기 간 오류 처리 방법 및 이를 이용한 미디어 스트리밍 서비스 방법에 관한 것이다.The present invention relates to an error processing method between DLNA devices and a media streaming service method using the same.

스마트폰의 등장과 더불어 서로 다른 가전 제품들, 특히 TV, 컴퓨터, NAS, 카메라 등의 각종 미디어 컨텐츠 공유에 대해 관심이 높아지고 있다.In addition to the emergence of smartphones, there is growing interest in sharing various media contents such as TV, computer, NAS, and camera.

이러한 요구에 따라 미디어 컨텐츠의 공유에 대한 규격을 정하는 단체(DLNA: Digital Living Network Alliance)가 설립되어 활동하고 있으며, DLNA 인증을 통한 제품 간에는 네트워크를 통하여 제조사와 제품 종류에 관계없이 다양한 미디어 컨텐츠(음악/사진/동영상)를 공유하고 재생할 수 있다.DLNA (Digital Living Network Alliance) has been established and set up standards for the sharing of media contents in accordance with these demands. Through the DLNA certified products, various media contents (music / Pictures / videos) can be shared and played.

도 1은 DLNA 규격을 사용하여 미디어를 공유하는 시스템의 예를 나타내며, 도 2는 DLNA 기기 분류를 나타낸다.FIG. 1 shows an example of a system sharing media using the DLNA standard, and FIG. 2 shows a DLNA apparatus classification.

도 1에 나타난 바와 같이, DLNA 미디어 공유는 Ethernet, Wi-Fi, Bluetooth와 같은 네트워크를 통해 같은 IP 대역에 있는 다양한 기기들이 서로 물리적 접속이 아닌 네트워크를 통해서 서로 컨텐츠를 공유한다.As shown in FIG. 1, various devices in the same IP band share content with each other through a network such as Ethernet, Wi-Fi, and Bluetooth, not through a physical connection with each other through a network.

DLNA 기기는 크게 Home Network Devices(HND)와 Mobile Handheld Devices(MHD)로 구분되며, HND와 MHD의 상호접속을 위한 Home Interoperability Devices(MIU, M-NCF)가 추가되었다.DLNA devices are divided into Home Network Devices (HND) and Mobile Handheld Devices (MHD), and Home Interoperability Devices (MIU, M-NCF) for HND and MHD interconnection have been added.

이 중, Digital Media Server(DMS)는 실제 공유할 컨텐츠를 보유하고 있는 기기로서. 컨텐츠를 보관하고 있으며 네트워크에 접속시 해당 컨텐츠 내역을 배포/전송하여 다른 기기들이 이를 사용할 수 있게 한다.Among them, Digital Media Server (DMS) is a device that has contents to actually share. It stores the contents and distributes / transmits the contents contents when accessing the network, so that other devices can use the contents.

Digital Media Controller(DMC)는 Media Server가 배포한 컨텐츠 리스트를 찾고, 이를 실행할 수 있는 다른 기기(Render)와 연결한다. Digital Media Controller는 기본적으로 Media Server와 Media Renderer사이에서 연결을 설정하고 컨텐츠 재생과 관련한 동작을 제어한다.The Digital Media Controller (DMC) finds a list of content distributed by the Media Server and links it to another device (Render) that can run it. The Digital Media Controller basically establishes a connection between the Media Server and the Media Renderer and controls the behavior associated with content playback.

Digital Media Renderer(DMR)는 Media Controller에 의해 Media Server와 연결되며 Media Server로부터 컨텐츠를 재생할 수 있는 기기를 말한다.Digital Media Renderer (DMR) is a device that is connected to Media Server by Media Controller and can play content from Media Server.

Digital Media Player(DMP)는 Media Server가 배포한 컨텐츠 리스트를 찾아서 컨텐츠를 선택하고 이를 재생할 수 있는 기기이다.Digital Media Player (DMP) is a device that can search contents list distributed by Media Server, select content and play it.

Mobile Handheld Devices 중 Mobile Digital Media Server(M-DMS), Mobile Digital Media Controller(M-DMC)와 Mobile Digital Media Player(M-DMP)는 각각 HND의 DMS, DMC 및 DMP와 동일한 기능을 하는 모바일 기기이다.Among the Mobile Handheld Devices, Mobile Digital Media Server (M-DMS), Mobile Digital Media Controller (M-DMC) and Mobile Digital Media Player (M-DMP) are mobile devices that have the same functions as DMS, DMC and DMP of HND .

도 3은 DLNA 지원 기기를 이용한 미디어 스트리밍을 나타내는 도면이다.3 is a diagram illustrating media streaming using a DLNA-enabled device.

도 3에 나타난 바와 같이, DLNA 지원 미디어 서버 기기(DMS/M-DMS)(100)로부터 DLNA 지원 미디어 플레이어 기기(DMP/M-DMP)(200)로 미디어를 스트리밍하여 DLNA 지원 미디어 플레이어 기기를 통해 미디어를 재생할 수 있다.3, media is streamed from a DLNA-enabled media server device (DMS / M-DMS) 100 to a DLNA-supported media player device (DMP / M-DMP) The media can be played back.

그런데, 도 3에 나타난 바와 같은 스트리밍 서비스를 이용할 때, 연결 이후 사용시에 연결된 기기의 상태와 정상적인 서비스 제공 여부를 판단할 수 없어 오류 발생시 DLNA 지원 플레이어(DMP/M-DMP) 기기 단에서 비정상 동작 및 무한 루프로 대기하는 문제점이 있다.However, when the streaming service as shown in FIG. 3 is used, it is not possible to determine whether the connected device and the normal service are provided at the time of use after the connection, so that the DLNA capable player (DMP / M- There is a problem of waiting in an infinite loop.

스트리밍 서비스를 이용할 때 발생하는 오류 상황으로는 다음과 같은 것이 있다.The following error conditions occur when using the streaming service.

1) DLNA 지원기기의 미디어 서버(DMS/M-DMS) 비정상 종료1) Abnormal termination of media server (DMS / M-DMS) of DLNA supported device

2) DLNA 지원기기의 미디어 서버(DMS/M-DMS) 강제 종료2) Forced termination of media server (DMS / M-DMS) of DLNA supported device

3) DLNA 지원기기가 네트워크(WiFi) 연결을 해제3) DLNA-enabled device disconnects the network (WiFi) connection

- 사용자가 기기의 WiFi를 OFF하는 경우   - When the user turns off the WiFi of the device

- 절전 모드 진입시 WiFi 신호가 약해지거나 OFF가 될 경우   - When WiFi signal weakens or turns off when entering power saving mode

4) DLNA 지원기기의 배터리를 사용자가 강제 탈거하거나 방전될 경우4) If the battery of DLNA supported device is forcibly removed or discharged by the user

본 발명은 상술한 바와 같은 기술적 배경에서 안출된 것으로서, DLNA 지원 플레이어(DMP/M-DMP) 기능을 구현함에 있어서 DLNA 지원 기기의 미디어 서버(DMS/M-DMS) 서비스의 오류와 네트워크 연결 해제 시에 적절한 처리를 할 수 있는 방법 및 이를 이용한 미디어 스트리밍 서비스 방법을 제공하는 것을 그 과제로 한다.DISCLOSURE Technical Problem The present invention has been made in view of the technical background as described above, and it is an object of the present invention to provide a DLNA capable player (DMP / M-DMP) And a media streaming service method using the media streaming service method.

본 발명의 다른 과제는 DLNA device class에 속하는 기기 간의 연결에서 오류 상태를 검사하는 방법을 제공하고자 하는 것이다.Another object of the present invention is to provide a method for checking an error state in a connection between devices belonging to the DLNA device class.

이와 같은 과제를 해결하기 위하여 본 발명에서는 DLNA 지원기기 간 상호 연결시 알 수 있는 미디어 서버의 IP 주소와 Port 번호로 TCP Socket 연결 요청을 보내고 Ack를 수신함으로써 연결 오류를 발견하여 처리한다.In order to solve such a problem, in the present invention, a TCP Socket connection request is sent to an IP address and a port number of a media server, which are known at the time of inter-connection between DLNA supporting devices, and a connection error is detected and processed by receiving an Ack.

즉, 본 발명의 일면에 따른 연결 오류 처리 방법은, 제1 및 제2 DLNA 지원기기 사이의 네트워크 연결을 수립하는 단계; 상기 제1 DLNA 지원기기가 상기 제2 DLNA 지원기기의 IP 주소 및 Port 번호로 TCP 소켓 연결 요청을 송신하고, 상기 제1 DLNA 지원기기가 상기 제2 DLNA 지원기기로부터 TCP 소켓 연결 확인을 수신하는 과정을 주기적으로 반복하는 단계; 및 상기 반복하는 단계에서 미리 정한 일정 시간 동안 상기 TCP 소켓 연결 확인이 수신되지 않는 경우, 상기 제1 DLNA 지원기기에서 동작하는 DLNA 어플리케이션을 종료하는 단계를 포함하여 이루어진다.That is, a connection error handling method according to an aspect of the present invention includes: establishing a network connection between first and second DLNA-enabled devices; The first DLNA-enabled device transmits a TCP socket connection request to an IP address and a port number of the second DLNA-enabled device, and the first DLNA-enabled device receives a TCP socket connection confirmation from the second DLNA- Periodically repeating steps < RTI ID = 0.0 > And terminating the DLNA application operating in the first DLNA-enabled device if the TCP socket connection confirmation is not received for a predetermined period of time in the repeating step.

여기에서, 상기 제1 DLNA 지원기기는 DLNA 지원 미디어 플레이어 기기이며, 상기 제2 DLNA 지원기기는 DLNA 지원 미디어 서버 기기일 수 있다.Here, the first DLNA supporting device may be a DLNA supporting media player device, and the second DLNA supporting device may be a DLNA supporting media server device.

또한, 상기 제1 DLNA 지원기기는 DLNA 지원 차량용 AV 시스템이며, 상기 제2 DLNA 지원기기는 DLNA 지원 스마트폰일 수 있다.In addition, the first DLNA-enabled device may be an AV system for DLNA-enabled vehicles, and the second DLNA-supported device may be a DLNA-supported smartphone.

본 발명의 다른 면에 따른 차량용 AV 시스템의 미디어 스트리밍 서비스 방법은, DLNA 서버 기기와 네트워크 연결을 수립하는 단계; 상기 DLNA 서버 기기로부터 컨텐츠를 수신하는 단계; 수신한 상기 컨텐츠를 재생하는 단계; 상기 DLNA 서버 기기의 IP 주소 및 Port 번호로 TCP 소켓 연결 요청을 송신하는 단계; 상기 DLNA 서버 기기로부터 TCP 소켓 연결 ACK가 수신되는지 확인하는 단계; 및 상기 확인하는 단계에서 상기 TCP 소켓 연결 ACK가 수신되지 않은 것으로 확인되는 경우, DLNA 플레이어 어플리케이션을 종료하는 단계를 포함한다.According to another aspect of the present invention, there is provided a media streaming service method for a vehicle AV system, the method comprising: establishing a network connection with a DLNA server device; Receiving content from the DLNA server device; Reproducing the received content; Transmitting a TCP socket connection request to an IP address and a port number of the DLNA server device; Checking whether a TCP socket connection ACK is received from the DLNA server device; And terminating the DLNA player application when it is determined that the TCP socket connection ACK is not received in the checking step.

본 발명의 또 다른 면에 따른 미디어 스트리밍 서비스 방법은, DLNA 서버 기기와 네트워크 연결을 수립하는 단계; 상기 DLNA 서버 기기로부터 컨텐츠를 수신하는 단계; 수신한 상기 컨텐츠를 재생하는 단계; 상기 DLNA 서버 기기의 IP 주소 및 Port 번호로 TCP 소켓 연결 요청을 송신하는 단계; 상기 DLNA 서버 기기로부터 TCP 소켓 연결 ACK가 수신되는지 확인하는 단계; 및 상기 확인하는 단계에서 수신된 상기 TCP 소켓 연결 ACK가 연결 Fail, No Response, Connection Refuse을 포함하는 에러에 해당하는 경우 DLNA 플레이어 어플리케이션을 종료하는 단계를 포함한다.According to another aspect of the present invention, there is provided a media streaming service method comprising: establishing a network connection with a DLNA server device; Receiving content from the DLNA server device; Reproducing the received content; Transmitting a TCP socket connection request to an IP address and a port number of the DLNA server device; Checking whether a TCP socket connection ACK is received from the DLNA server device; And terminating the DLNA player application when the TCP socket connection ACK received in the checking step corresponds to an error including a connection failure, a no response, and a connection refuse.

본 발명에 따르면, DLNA 지원기기 사이에서 연결을 수립하여 서비스를 제공할 때 발생할 수 있는 오류 상황을 적절히 처리하여, 상대 기기 단의 비정상 동작 및 무한 루프 대기 등의 문제점을 해결할 수 있다.According to the present invention, an error situation that may occur when establishing a connection between DLNA-enabled devices and providing a service is appropriately handled, and problems such as an abnormal operation of an opposite device and an infinite loop waiting can be solved.

도 1은 DLNA 규격을 사용하여 미디어를 공유하는 시스템의 예를 나타낸다.
도 2는 DLNA 기기 분류를 나타낸다.
도 3은 DLNA 지원 기기를 이용한 미디어 스트리밍을 나타내는 도면이다.
도 4는 본 발명의 실시예에 따른 TCP 소켓 연결 검사 방법을 나타내는 도면이다.
도 5는 본 발명의 실시예에 따른 DLNA 미디어 서버 오류 처리 방법을 나타내는 흐름도이다.
도 6은 본 발명의 실시예에 따른 미디어 스트리밍 서비스 방법을 나타내는 흐름도이다.
1 shows an example of a system for sharing media using the DLNA standard.
Figure 2 shows the DLNA device classification.
3 is a diagram illustrating media streaming using a DLNA-enabled device.
4 is a diagram illustrating a TCP socket connection checking method according to an embodiment of the present invention.
5 is a flowchart illustrating a DLNA media server error processing method according to an embodiment of the present invention.
6 is a flowchart illustrating a media streaming service method according to an embodiment of the present invention.

본 발명의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되어 있는 실시예들을 참조하면 명확해질 것이다. 그러나 본 발명은 이하에서 개시되는 실시예들에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 것이며, 단지 본 실시예들은 본 발명의 개시가 완전하도록 하며, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이며, 본 발명은 청구항의 범주에 의해 정의될 뿐이다. 한편, 본 명세서에서 사용된 용어는 실시예들을 설명하기 위한 것이며 본 발명을 제한하고자 하는 것은 아니다. 본 명세서에서, 단수형은 문구에서 특별히 언급하지 않는 한 복수형도 포함한다. 명세서에서 사용되는 "포함한다(comprises)" 및/또는 "포함하는(comprising)"은 언급된 구성요소, 단계, 동작 및/또는 소자는 하나 이상의 다른 구성요소, 단계, 동작 및/또는 소자의 존재 또는 추가를 배제하지 않는다. BRIEF DESCRIPTION OF THE DRAWINGS The advantages and features of the present invention, and the manner of achieving them, will be apparent from and elucidated with reference to the embodiments described hereinafter in conjunction with the accompanying drawings. The present invention may, however, be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Is provided to fully convey the scope of the invention to those skilled in the art, and the invention is only defined by the scope of the claims. It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. In the present specification, the singular form includes plural forms unless otherwise specified in the specification. It is noted that the terms "comprises" and / or "comprising" used in the specification are intended to be inclusive in a manner similar to the components, steps, operations, and / Or additions.

이하에서, 첨부한 도면을 참고로 하여 본 발명의 실시예에 따른 DLNA 기기 간 오류 처리 방법 및 이를 이용한 미디어 스트리밍 서비스 방법에 대하여 상세히 설명하기로 한다.Hereinafter, an error processing method between DLNA devices according to an embodiment of the present invention and a media streaming service method using the same will be described in detail with reference to the accompanying drawings.

도 4는 본 발명의 실시예에 따른 TCP 소켓 연결 검사 방법을 나타내는 도면이다. 4 is a diagram illustrating a TCP socket connection checking method according to an embodiment of the present invention.

DLNA/UPnP의 스펙에 따르면 미디어 서버(DMS/M-DMS) 기기와 플레이어 기기(DMP/M-DMP)가 상호 연결될 때 TCP/IP 표준 스펙에 준하여 미디어 서버의 IP 주소와 Port 번호를 알 수 있으며, 이 IP 주소와 Port로 TCP Socket 연결을 통하여 상호 간에 데이터를 주고받을 수 있다.According to the specification of DLNA / UPnP, when media server (DMS / M-DMS) device and player device (DMP / M-DMP) are connected to each other, IP address and port number of media server can be known according to TCP / , And can exchange data with each other through TCP Socket connection with this IP address and port.

본 발명의 실시예에 따른 DLNA 기기 간 오류 처리 방법에서는 이를 이용하여 연결 상태를 확인함으로써 오류를 처리한다.In an error processing method between DLNA devices according to an embodiment of the present invention, an error is processed by checking the connection status using the error.

즉, 도 4에 나타난 바와 같이, DLNA 미디어 서버(DMS/M-DMS)를 지원하는 기기(100)가 DLNA 플레이어(DMP/M-DMP)를 지원하는 기기(200)와 동일 네트워크 상에 연결되어 미디어 서버(100)가 제공하는 멀티미디어 데이터를 플레이어(200) 기기에서 스트리밍으로 재생하거나 공유하는 컨텐츠 목록을 검색하는 동작을 수행할 때(S410), 주기적으로 TCP Socket Connect Request를 보내고(S420), 이에 대한 응답(TCP Socket Connect Ack)을 받음으로써(S430) TCP 소켓 연결 가능 검사를 수행한다. 4, the device 100 supporting the DLNA media server (DMS / M-DMS) is connected on the same network as the device 200 supporting the DLNA player (DMP / M-DMP) When the multimedia data provided by the media server 100 is reproduced by streaming from the player 200 or when searching for a content list to be shared (S410), a TCP Socket Connect Request is sent periodically (S420) (TCP Socket Connect Ack) (S430) to perform the TCP socket connectability check.

이러한 TCP 소켓 연결 검사의 수행시 미디어 서버(100)가 비정상 또는 강제 종료되는 경우 미디어 서버 기기(100)로부터 표준 TCP/IP 스펙에 준한 에러(연결 Fail, No Response, Connection Refuse 등)를 ACK로 응답하게 된다.When the media server 100 is abnormally or forcibly terminated when the TCP socket connection check is performed, an error (connection failure, no response, connection refuse, etc.) based on the standard TCP / IP specification is received from the media server device 100 in response to an ACK .

또한, 네트워크 연결이 해제되는 경우에는 TCP 소켓 연결 요청을 수행하는 플레이어 기기(200) 단에서 TCP 소켓 연결 Timeout, Fail 등의 에러가 발생하게 된다. In addition, when the network connection is released, an error such as a TCP socket connection timeout or fail occurs at the terminal of the player device 200 performing the TCP socket connection request.

이와 같은 TCP 연결 에러가 발생하는 경우 플레이어 기기(200)는 네트워크 TCP 소켓 처리단의 에러 응답을 받아 검사하여 적절한 에러 처리를 수행하거나 사용자에게 공지한다. When such a TCP connection error occurs, the player device 200 receives an error response of the network TCP socket processing terminal and performs appropriate error processing or notifies the user of the error.

도 5는 본 발명의 실시예에 따른 DLNA 미디어 서버 오류 처리 방법을 나타내는 흐름도이다. 5 is a flowchart illustrating a DLNA media server error processing method according to an embodiment of the present invention.

도 5에 나타난 바와 같이, 네크워크가 연결되고(S510), 플레이어(DMP/M-DMP)가 실행되면(S520), 미디어 서버(DMS/M-DMS) 기기를 검색하고 연결한다(S530).5, the network is connected (S510). When the player (DMP / M-DMP) is executed (S520), the media server (DMS / M-DMS) device is searched and connected (S530).

미디어 서버에 대한 접속이 성공하면(S540의 "예"), 미디어 탐색 및 스트리밍 재생이 수행된다(S550).If the connection to the media server is successful (YES in S540), media search and streaming playback are performed (S550).

이 때, 도 4를 참고로 설명한 바와 같은 주기적 TCP 소켓 연결 시도를 통하여 미디어 서버 상태를 검사한다(S560). 검사 결과 미디어 서버 상태가 정상이면 재생이 완료될 때까지(S570의 "예") 재생을 계속하고, 미디어 서버 상태가 비정상이면 미디어 플레이어를 종료한다.At this time, the media server status is checked through a periodic TCP socket connection attempt as described with reference to FIG. 4 (S560). If the media server status is normal, the playback is continued until the playback is completed (Yes in S570). If the media server status is abnormal, the media player is terminated.

도 6은 본 발명의 실시예에 따른 미디어 스트리밍 서비스 방법을 나타내는 흐름도이다.6 is a flowchart illustrating a media streaming service method according to an embodiment of the present invention.

도 6에 나타난 바와 같이, DLNA 지원 미디어 서버 기기(DMS/M-DMS)(예를 들면, 스마트폰)(100)과 DLNA 지원 플레이어 기기(DMP/M-DMP)(예를 들면, 차량용 AV 시스템)(200) 사이에 네트워크 연결(WiFi/Ethernet)이 수립되고(S610), 각 DLNA 지원기기(100, 200) 상에서 DLNA 어플리케이션(미디어 서버 및 플레이어)이 실행된다(S612, S614).6, a DLNA-enabled media server device (DMS / M-DMS) (for example, a smartphone) 100 and a DLNA-supported player device DMP / M- The network connection (WiFi / Ethernet) is established between the DLNA-enabled devices 100 and 200 in step S610 and the DLNA application (media server and player) is executed on the DLNA enabled devices 100 and 200 in steps S612 and S614.

미디어 서버(100)는 플레이어(200)로 자신의 존재를 알리고(Notify, S616), 플레이어(200)는 기기 검색(M-Search, S618)을 수행하여, 미디어 서버(100)로부터 M-Search 응답을 받으면(S620), 미디어 서버(100)에 접속하고(S622), 미디어를 탐색한다(S624). The media server 100 notifies the presence of the player 200 to the presence of the player 200 (Notify, S616), the player 200 performs device search (M-Search, S618) (S620), accesses the media server 100 (S622), and searches the media (S624).

미디어 서버(100)는 컨텐츠 목록을 응답하고(S626), 플레이어(200)로부터 미디어 재생 요청을 받으면(S628), 미디어 스트리밍 전송을 시작한다(S630).The media server 100 responds to the content list (S626). Upon receiving a media playback request from the player 200 (S628), the media server 100 starts media streaming transmission (S630).

플레이어(200)는 스트리밍된 미디어를 재생(S632)하는 중에 주기적으로 TCP Socket Connect Request를 송신하고(S634), 이에 대해 미디어 서버(100)는 TCP Socket Connect Success로 응답한다(S636). The player 200 periodically transmits a TCP Socket Connect Request during playback of the streamed media (S632) (S634), and the media server 100 responds with TCP Socket Connect Success (S636).

미디어 서버(100) 측에서 비정상/강제 종료, 네트워크 연결 해제 등의 오류가 발생할 경우(S638), 플레이어(200)는 TCP Socket Connect Request(S640)에 대한 응답을 받지 못하며, 이는 TCP Socket 연결 에러(S642)가 된다. 이에 따라 플레이어는 종료한다(S644).When an error such as abnormal / forced termination or network connection cancellation occurs in the media server 100 in step S638, the player 200 does not receive a response to the TCP Socket Connect Request (S640) S642). Thus, the player ends (S644).

상술한 실시예에서는 DLNA 지원 미디어 서버 기기로서 스마트폰과 DLNA 지원 플레이어 기기로서 차량용 AV 시스템을 예로 들어 설명하였지만, 본 발명의 실시예에 따른 오류 처리 방법은 이에 한정되는 것이 아니며, DLNA device class에 속하는 기기 간의 연결에서 오류 상태를 검사하고 처리하는 데 사용될 수 있다.In the above-described embodiment, a vehicle AV system is exemplified as a DLNA-enabled media server device as a smartphone and a DLNA-supporting player device. However, the error processing method according to an embodiment of the present invention is not limited to this, It can be used to check and handle error conditions in the connections between devices.

이와 같은 본 발명의 실시예에 따르면, DLNA 지원기기 사이에서 연결을 수립하여 서비스를 제공할 때 발생할 수 있는 오류 상황을 적절히 처리하여, 상대 기기 단의 비정상 동작 및 무한 루프 대기 등의 문제점을 해결할 수 있다.According to the embodiment of the present invention as described above, it is possible to appropriately process an error situation that may occur when establishing a connection between a DLNA-enabled device and providing a service, and solve problems such as an abnormal operation of the external device end and an infinite loop waiting have.

이상에서 바람직한 실시예를 기준으로 본 발명을 설명하였지만, 본 발명의 장치 및 방법은 반드시 상술된 실시예에 제한되는 것은 아니며 발명의 요지와 범위로부터 벗어남이 없이 다양한 수정이나 변형을 하는 것이 가능하다. 따라서, 첨부된 특허청구의 범위는 본 발명의 요지에 속하는 한 이러한 수정이나 변형을 포함할 것이다. While the invention has been described in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the invention. Accordingly, the appended claims are intended to embrace all such modifications and variations as fall within the true spirit of the invention.

Claims (5)

제1 및 제2 DLNA 지원기기 사이의 연결 오류 처리 방법으로서,
상기 제1 및 제2 DLNA 지원기기 사이의 네트워크 연결을 수립한 이후에, 상기 제1 DLNA 지원기기가 상기 제2 DLNA 지원기기로부터 제공하는 서비스가 정상적으로 제공되는지 여부를 판단하기 위해, 상기 제1 DLNA 지원기기가 상기 제2 DLNA 지원기기의 IP 주소 및 Port 번호로 TCP 소켓 연결 요청을 송신하고, 상기 제1 DLNA 지원기기가 상기 제2 DLNA 지원기기로부터 TCP 소켓 연결 확인을 수신하는 과정을 주기적으로 반복하는 단계;
상기 반복하는 단계에서 미리 정한 일정 시간 동안 상기 TCP 소켓 연결 확인이 수신되지 않는 경우, 상기 제1 DLNA 지원기기에서 동작하는 DLNA 어플리케이션이 비정상 동작 및 무한 루프로 대기하는 현상을 방지하기 위해, 상기 DLNA 어플리케이션을 종료하는 단계를 포함하는 연결 오류 처리 방법.
A method of processing a connection error between first and second DLNA-enabled devices,
In order to determine whether a service provided from the second DLNA-enabled device by the first DLNA-enabled device is normally provided after establishing a network connection between the first and second DLNA-enabled devices, The supporting device transmits a TCP socket connection request to the IP address and port number of the second DLNA-enabled device and the first DLNA-enabled device receives the TCP socket connection confirmation from the second DLNA-enabled device repeatedly ;
In order to prevent the DLNA application operating in the first DLNA-enabled device from waiting for an abnormal operation and an infinite loop when the TCP socket connection confirmation is not received for a predetermined period of time in the repeating step, And terminating the connection error processing method.
제1항에 있어서,
상기 제1 DLNA 지원기기는 DLNA 지원 미디어 플레이어 기기이며,
상기 제2 DLNA 지원기기는 DLNA 지원 미디어 서버 기기인 연결 오류 처리 방법.
The method according to claim 1,
The first DLNA-enabled device is a DLNA-enabled media player device,
Wherein the second DLNA-enabled device is a DLNA-enabled media server device.
제2항에 있어서,
상기 제1 DLNA 지원기기는 DLNA 지원 차량용 AV 시스템이며,
상기 제2 DLNA 지원기기는 DLNA 지원 스마트폰인 연결 오류 처리 방법.
3. The method of claim 2,
The first DLNA-compliant device is an AV system for a DLNA-compliant vehicle,
Wherein the second DLNA-enabled device is a DLNA-enabled smartphone.
차량용 AV 시스템의 미디어 스트리밍 서비스 방법에 있어서,
DLNA 서버 기기와 네트워크 연결을 수립하는 단계;
상기 DLNA 서버 기기로부터 컨텐츠를 수신하는 단계;
수신한 상기 컨텐츠를 재생하는 단계;
상기 DLNA 서버 기기의 IP 주소 및 Port 번호로 TCP 소켓 연결 요청을 송신하는 단계;
상기 DLNA 서버 기기로부터 TCP 소켓 연결 ACK가 수신되는지 확인하는 단계; 및
상기 확인하는 단계에서 상기 TCP 소켓 연결 ACK가 수신되지 않은 것으로 확인되는 경우, DLNA 플레이어 어플리케이션을 종료하는 단계를 포함하는 미디어 스트리밍 서비스 방법.
A method for media streaming service in a vehicle AV system,
Establishing a network connection with the DLNA server device;
Receiving content from the DLNA server device;
Reproducing the received content;
Transmitting a TCP socket connection request to an IP address and a port number of the DLNA server device;
Checking whether a TCP socket connection ACK is received from the DLNA server device; And
And terminating the DLNA player application when it is determined that the TCP socket connection ACK is not received in the checking step.
차량용 AV 시스템의 미디어 스트리밍 서비스 방법에 있어서,
DLNA 서버 기기와 네트워크 연결을 수립하는 단계;
상기 DLNA 서버 기기로부터 컨텐츠를 수신하는 단계;
수신한 상기 컨텐츠를 재생하는 단계;
상기 차량용 AV 시스템이 상기 DLNA 서버 기기로부터 컨텐츠가 정상적으로 제공되는지 여부를 판단하기 위해, 상기 차량용 AV 시스템이 상기 DLNA 서버 기기의 IP 주소 및 Port 번호로 TCP 소켓 연결 요청을 송신하는 단계;
상기 차량용 AV 시스템이 상기 DLNA 서버 기기로부터 TCP 소켓 연결 ACK가 수신되는지 확인하는 단계; 및
상기 차량용 AV 시스템에서 동작하는 DLNA 플레이어 어플리케이션가 비정상 동작 및 무한 루프로 대기하는 현상을 방지하기 위해, 상기 확인하는 단계에서 수신된 상기 TCP 소켓 연결 ACK가 연결 Fail, No Response, Connection Refuse을 포함하는 에러에 해당하는 경우 DLNA 플레이어 어플리케이션을 종료하는 단계를 포함하는 미디어 스트리밍 서비스 방법.
A method for media streaming service in a vehicle AV system,
Establishing a network connection with the DLNA server device;
Receiving content from the DLNA server device;
Reproducing the received content;
Transmitting, by the vehicle AV system, a TCP socket connection request to an IP address and a port number of the DLNA server device, in order to determine whether the vehicle AV system is normally provided with content from the DLNA server device;
Confirming whether the vehicle AV system receives a TCP socket connection ACK from the DLNA server device; And
In order to prevent the DLNA player application operating in the vehicle AV system from waiting for an abnormal operation and an infinite loop, the TCP socket connection ACK received in the checking step includes an error including a connection failure, a no response, and a connection refuse And terminating the DLNA player application if applicable.
KR1020120097176A 2012-09-03 2012-09-03 Method of error handling between DLNA devices and method of media streaming service using the same KR101940725B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020120097176A KR101940725B1 (en) 2012-09-03 2012-09-03 Method of error handling between DLNA devices and method of media streaming service using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020120097176A KR101940725B1 (en) 2012-09-03 2012-09-03 Method of error handling between DLNA devices and method of media streaming service using the same

Publications (2)

Publication Number Publication Date
KR20140030694A KR20140030694A (en) 2014-03-12
KR101940725B1 true KR101940725B1 (en) 2019-01-22

Family

ID=50643088

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020120097176A KR101940725B1 (en) 2012-09-03 2012-09-03 Method of error handling between DLNA devices and method of media streaming service using the same

Country Status (1)

Country Link
KR (1) KR101940725B1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102219430B1 (en) * 2014-08-01 2021-02-24 현대모비스 주식회사 Apparatus and method for providing streaming service using AVN device of vehicle
CN106791944A (en) * 2015-11-23 2017-05-31 北大方正集团有限公司 Multi-screen interaction method, multi-screen interactive device and Multi-screen interaction system
CN115499695B (en) * 2022-08-16 2024-01-16 珠海全志科技股份有限公司 Smart television control method, smart television control device, advertising machine and medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101194826B1 (en) * 2005-11-04 2012-10-25 삼성전자주식회사 Digital living network alliance home network system and method for sharing content information thereof
KR100953093B1 (en) * 2007-12-10 2010-04-19 한국전자통신연구원 Method and system for serving multi-media data through hetero upnp networks

Also Published As

Publication number Publication date
KR20140030694A (en) 2014-03-12

Similar Documents

Publication Publication Date Title
US10285127B2 (en) Wireless communication device, information processing device, and communication method
JP3808660B2 (en) Communication system and terminal device
KR100754431B1 (en) Method for transferring a content according to the processing capability of dmr in dlna system
US20080004021A1 (en) Seamless base station / set top box handoff
US10354618B2 (en) Wireless communication system for offline participation in a display session
JP5792183B2 (en) Method and system for supporting wireless multicast communication
CN104113458A (en) Mobile terminal and intelligent household appliance interconnecting method and device
WO2015062499A1 (en) Data transmission method and device
CN105323628B (en) Cross-screen playing method and system based on DLNA (digital Living network alliance), browser end device and playing device
US9578482B2 (en) Communication apparatus and method of controlling the same
KR101867334B1 (en) Method and apparatus for sharing contents in home network environment
CN103685570A (en) Server, terminal and message pushing method
KR101940725B1 (en) Method of error handling between DLNA devices and method of media streaming service using the same
JP4490499B2 (en) Communication terminal, relay device, wireless communication system, wireless communication control method, and program
US20140241210A1 (en) Communication apparatus and method of controlling the same
WO2014187295A1 (en) Communication method, terminal and communication system
US20160285949A1 (en) Wireless login-based remote control method and device
US8903987B2 (en) Communication apparatus and method for controlling communication apparatus
US20170111948A1 (en) Connection method, connection system, portable terminal, and program
JP2005301913A (en) Communication system, information processing terminal and communication method
US20080115189A1 (en) TV-centric system
EP2868040B1 (en) A device and a method at the device for configuring a wireless interface
CN104618200A (en) Universal Plug and Play (Upnp) equipment recognition method and device
US20200213663A1 (en) Renderer device, renderer playback system and information updating method
JP2015082696A (en) Communication relay terminal, communication relay system, communication relay method, and program for communication relay terminal

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant