顯示具有 event 標籤的文章。 顯示所有文章
顯示具有 event 標籤的文章。 顯示所有文章

2013年9月11日 星期三

ONVIF -- Support Customized Event

If you want to support a customized event which not belong to ONVIF spec.
You can follow below setup to re-generate your gSoap code by gSOAP.

1. Revise WS-typemap.dat to add customized namespace
tnsMy = <http://www.avigilon.com/onvif/ver10/topics>

2013年6月29日 星期六

ONVIF -- Event by RTSP Stream 實作探討

ONVIF 針對 Event 的傳送定義了三種方式,Basic Notification Interface,Real-time Pull-Point Notification Interface與 RTSP metadata stream 的方式。

由於實作 ONVIF 與 RTSP 的開發人員可能並不相同,因此在實作RTSP metadata stream時溝通可能會有誤解。以下對這種情況提出一種簡單的合作開發方式。

ONVIF:
當使用者想要建立一個 RTSP Stream 時,會先透過 GetStreamUri 詢問對應的 RTSP URI。
如果 GetStreamUri 的 Profile 內有定義 MetadataConfiguration,便表示後續使用者使用此 URI 建立 RTSP 時,RTSP 所回應的 SDP 內需要加入 metadata 的描述。 
可以使用 IPC 的方式來通知 RTSP 加入 metadata。此處假設使用 shared memory,設定 gIsMetadata = TRUE。

2013年6月12日 星期三

ONVIF -- Event Topics

I make a list of all event topics defined in ONVIF spec (version 2.3).

I don't remove the duplicate topic name,  so that we can know different usage for the specific topic name.


ONVIF-AccessControl-Service-Spec-v100.pdf
  • tns1:AccessControl/AccessGranted/
  • tns1:AccessControl/AccessTaken/
  • tns1:AccessControl/AccessNotTaken/
  • tns1:AccessControl/Denied/
  • tns1:AccessControl/Duress
  • tns1:AccessControl/Request/
  • tns1:AccessPoint/State/
  • tns1:Configuration/AccessPoint
  • tns1:Configuration/Area

2012年8月8日 星期三

ONVIF event handling



ONVIF Event 主要基於Web Service的兩份標準 [WS-BaseNotification] 和 [WS-Topics] 而制定,分別提供了 PUSH 與 PULL 的方式,讓使用者可取得系統資訊。參考 ONVIF-Core-Specification-v211.pdf chapter9 的內容,整理如後:

一、基本定義
** Event 定義
Event是設備上主動發生或被動產生的事件,IPCam 設備會偵測系統上發生了哪些事件(Event),並讓用戶能夠訂閱此資訊。 
An event is an action or occurrence detected by a device that a client can subscribe to.
** Property 定義
Property是許多值(name value pairs)的結合,並且以 Event 的方式封裝。 
A Property is a collection of name and value pairs representing a unique and addressable set of data. They are uniquely identified by the combination of their Topic, Source and Key values and are packaged like ordinary events. A Property also contains an additional flag, stating whether it is newly created, has changed or has been deleted.