Timings and repetitions for Server Service and Event Handlers
Eventgroup received

- If a SubscribeEventgroup Entry or StopSubscribeEventgroup Entry are received within the Initial Wait Phase (or other phases) for an Event Handler of this Server Service Instance, it shall only be processed within the Service Discovery. Please refer to the according sequence diagrams and section 7.6.4.
如果在此服務器服務實例的事件處理程序的Initial Wait Phase (或其他階段)內收到了SubscribeEventgroup Entry或StopSubscribeEventgroup Entry,則只能在Service Discovery中處理它。

“SubscribeEventgroup” entry received:
- Send a SubscribeEventgroupAck / Nack entry using Unicast considering the appropriate delay without changing the current counter value and without influencing the current running repetition timer/repetition phase or timer/main phase.
考慮適當的延遲, 使用Unicast發送SubscribeEventgroupAck / Nack entry, 且不改變當前Counter值,也不影響當前運行的timer。 - Call the BswM with the API BswM_Sd_EventHandlerCurrentState() with state SD_EVENT_HANDLER_REQUESTED only if the state for this EventHandler changed (i.e. has not been SD_EVENT_HANDLER_REQUESTED) .
僅當此此EventHandler的狀態改變(即尚不是SD_EVENT_HANDLER_REQUESTED)時,將狀態SD_EVENT_HANDLER_REQUESTED賦值給API BswM_Sd_EventHandlerCurrentState() 并通知BswM。 - Start the TTL timer according to the value received via the SubscribeEventgroup Entry.
按照通過SubscribeEventgroup Entry獲取的值啟動TTL計時器。

“SubscribeEventgroup” entry received:
- If the TTL of a received SubscribeEventgroup Entry expires, the following step shall be performed in the following order:
如果收到的SubscribeEventgroup Entry的TTL到期,則按以下順序執行以下步驟: - If this has been the last subscribed client, report “SD_EVENT_HANDLER_RELEASED” to the BswM by calling the API BswM_Sd_EventHandlerCurrentState() and update the state within the Service Discovery Module.
如果這是最后一個訂閱的客戶端,則通過調用API BswM_Sd_EventHandlerCurrentState()將狀態更新為 “SD_EVENT_HANDLER_RELEASED”,并報告給BswM報告。

StopSubscribeEventgroup Entry:
- Stop the TTL timer for this client
停止這個客戶端的TTL計時器 - Update State
更新狀態 - If this has been the last subscribed client, report “SD_EVENT_HANDLER_RELEASED” to the BswM by calling the API BswM_Sd_EventHandlerCurrentState()
如果這是最后一個訂閱的客戶端,則通過調用API BswM_Sd_EventHandlerCurrentState()更新狀態為” SD_EVENT_HANDLER_RELEASED”并報告給BswM
