1 / 11

GENA (General Event Notification Architecture)

GENA (General Event Notification Architecture). RTLAB 이 남 지 2003/01/08. Agenda. What is GENA? Protocol Stack GENA HTTP Methods Event Sequence. What is GENA?. Send and receive notifications using HTTP over TCP/IP and administratively-scoped multicast UDP Main component

Télécharger la présentation

GENA (General Event Notification Architecture)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. GENA (General Event Notification Architecture) RTLAB 이 남 지 2003/01/08

  2. Agenda • What is GENA? • Protocol Stack • GENA HTTP Methods • Event Sequence

  3. What is GENA? • Send and receive notifications using HTTP over TCP/IP and administratively-scoped multicast UDP • Main component • Publisher and Subscriber

  4. UPnP vendor HTTP GENA UPnP vendor HTTPMU (multicast) GENA SSDP UPnP Forum UPnP Forum UPnP Device Architecture UPnP Device Architecture TCP HTTPMU (multicast) IP UDP IP Protocol Stack Discovery Event

  5. GENA HTTP Methods • SUBSCRIBE to notification • UNSUBSCRIBE • NOTIFY • Of device availability (discovery) • Of state variable changes

  6. SUBSCRIBE /upnp/event/tvpicture1 HTTP/1.1 HOST: 155.230.14.177:5431 CALLBACK: <http://155.230.14.177:5432/> NT: upnp:event TIMEOUT: Second-1800 Root device Service (publisher) Subscription request Subscription(uuid:…) HTTP/1.1 200 OK DATE: Fri, 03 Jan 2003 01:04:59 GMT SERVER: Linux/2.4.18-3 UPnP/1.0 Intel UPnP SDK/1.0 SID: uuid:dafba47f-3159-4b23-8a52-b463e77a4454 TIMEOUT: Second-1800 Event Sequence -SUBSCRIBE C.P. (subscriber)

  7. NOTIFY / HTTP/1.1 HOST: 155.230.14.177:5432 CONTENT-TYPE: text/xml CONTENT-LENGTH: 214 NT: upnp:event NTS: upnp:propchange SID: uuid:b4bec083-386b-41f4-9659-2ccfb8b75ac5 SEQ: 0 <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <Power>0</Power> </e:property> <e:property> <Channel>1</Channel> </e:property> <e:property> <Volume>5</Volume> </e:property> </e:propertyset> Root device C.P. (subscriber) Service (publisher) Event message response HTTP/1.1 200 OK Event Sequence -NOTIFY

  8. Root device SUBSCRIBEpublisher path HTTP/1.1HOST: publisher host:publisher portSID: uuid:subscription UUIDTIMEOUT: Second-requested subscription duration C.P. (subscriber) Service (publisher) Renewal request(uuid:…) Subscription(uuid:…) HTTP/1.1 200 OK DATE: Fri, 03 Jan 2003 01:04:59 GMT SERVER: Linux/2.4.18-3 UPnP/1.0 Intel UPnP SDK/1.0 SID: uuid:dafba47f-3159-4b23-8a52-b463e77a4454 TIMEOUT: Second-1800 Event Sequence –Renewing Subscription

  9. Root device C.P. (subscriber) UNSUBSCRIBE /upnp/event/tvcontrol1 HTTP/1.1 HOST: 155.230.14.177:5431 SID: uuid:b4bec083-386b-41f4-9659-2ccfb8b75ac5 Service (publisher) Unsubscription request Unsubscription(uuid:…) HTTP/1.1 200 OK Event Sequence -UNSUBSCRIBE

  10. NT • USN * • 1 • root device UUID • root device UUID • 2 • device type : device version • root device UUID and :: and device type : device version • 3 • upnp:rootdevice • root device UUID and :: and upnp:rootdevice Root Device • NT • USN * • 1 • embedded device UUID • embedded device UUID service Device • 2 • device type : device version • embedded device UUID and :: and device type : device version Device Service • NT • USN * • 1 • service type : service version • enclosing device UUID and :: and service type : service version • Three discovery messages for the root device. • Two discovery messages for each embedded device. • Once for each service.

  11. Advertisement device - alive NOTIFY * HTTP/1.1 HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://155.230.14.177:5431/tvdevicedesc.xml NT: upnp:rootdevice NTS: ssdp:alive SERVER: Linux/2.4.18-3 UPnP/1.0 Intel UPnP SDK/1.0 USN: uuid:Upnp-TVEmulator-1_0-1234567890001::upnp:rootdevice NOTIFY * HTTP/1.1 HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://155.230.14.177:5431/tvdevicedesc.xml NT: uuid:Upnp-TVEmulator-1_0-1234567890001 NTS: ssdp:alive SERVER: Linux/2.4.18-3 UPnP/1.0 Intel UPnP SDK/1.0 USN: uuid:Upnp-TVEmulator-1_0-1234567890001 NOTIFY * HTTP/1.1 HOST: 239.255.255.250:1900 CACHE-CONTROL: max-age=1800 LOCATION: http://155.230.14.177:5431/tvdevicedesc.xml NT: urn:schemas-upnp-org:device:tvdevice:1 NTS: ssdp:alive SERVER: Linux/2.4.18-3 UPnP/1.0 Intel UPnP SDK/1.0 USN: uuid:Upnp-TVEmulator-1_0-1234567890001::urn:schemas-upnp-org:device:tvdevice:1

More Related