2016年9月13日 星期二

ONVIF -- Profile C and Profile A

最近 ONVIF發布了 Profile A,看來與 Profile C 是很類似的東西,以Profile C為例,定義了兩種角色,Camera或 NVR 可以扮演 ONVIF Client 的角色來控制門禁系統。

  • ONVIF Device,需支援兩項功能。 
  • provide information regarding the PACS related entities included in the system as well as the status of these entities, including standardized PACS related events. 
  • provides basic door control 
  • ONVIF Client,需支援三項功能。 
  • get information regarding the PACS related entities. 
  • do basic door control. 
  • retrieve and receive standardized PACS related events.

    下面將針對這兩種Profile作一比較。

    Prfoile A 與 Profile C 的相同部分

    1. 若一個設備屬於 Physical Access Control System (PACS) 的一部分,便可宣稱支援 ONVIF Profile C 或 Profile A
    要宣稱支援 ONVIF Profile C,要回應下列 scope
     • onvif://www.onvif.org/Profile/C 
    要宣稱支援 ONVIF Profile A,要回應下列 scope
     • onvif://www.onvif.org/Profile/A

    2. 若要支援 Profile C/A,需遵守下列規定
    • 需遵循 ONVIF Core Specification v2.3 或是更新的規範。
    • 需支援 HTTP digest authentication
    • 需支援 pull points 的方式取得 Event, 並且最少要有兩個 pull points
    • 需支援 GetWsdlUrl

    Prfoile A 與 Profile C 的不同

    1. 應用領域不同
    Profile C 官方定義  
    Device
    provide information regarding the PACS related entities included in the system as well as the status of these entities, including standardized PACS related events. This device also provides basic door control
    Client
    get information regarding the PACS related entities and do basic door control.
    It can also retrieve and receive standardized PACS related events.
    Profile A 官方定義 
    Device
    provide functionality to retrieve information, status and
    events and to configure the PACS related entities such as access rules, credentials and schedules. 
    Client
    provide configurations of access rules,credentials and schedules.
    The client can also retrieve and receive standardized PACS related events.
    2. ProfileA 涵蓋了以下規範
    • ONVIF Network Interface Specification
    • Access Rules Service Specification
    • Credential Service Specification
    • Schedule Service Specification
    個人認知:若只要簡單控制門禁,只要實作Profile C,若需要較複雜的控制邏輯,則需要同時實作Profile C 與 Profile A。

    參考資料:
    1. 2013_12_ONVIF_Profile_C_Specification_v1-0.pdf
    2. ONVIF_Profile_A_Spec_RCv1-1.pdf