<< Click to Display Table of Contents >> Navigation: Protocols > SOME/IP > Events, Groups |
Events
Events are usually connected to fields and a way to inform about field changes.
There is possibility to fire event from context menu during simulation.
Property |
Example |
Description |
EventId |
0x2 |
Id of the event. |
Reference |
Fields/MyField1 |
Relative reference to field. |
SomeIPEvent Methods
Method |
Description |
Fire |
For local service only. Informs about field change. |
Event groups
All events must be grouped into event groups. Event groups can contain several references to events.
Event groups can be fired through context menu during simulation as well.
Property |
Example |
Description |
AutoSubscribe |
True |
(Client Services only) True – subscribe to event group automatically when service is found. |
EventGroupId |
0x5 |
Id of event group. |
SubscribeDelay |
|
Unused |
SubscriberCount |
1 |
(Readonly, Server Services only) Shows amount of active subscriptions. |
SubscriptionActive |
True |
(Readonly) True – if subscription is active. |
SubscriptionState |
Pending |
(Readonly) Shows status of subscription process. |
TTL |
16777215 |
TTL of the event group. |
SomeIPEventGroup Events
Event |
Description |
OnLocalSubscribing |
(Server Services only) Occurs when an event group is subscribed. |
OnLocalUnsubscribed |
(Server Services only) Occurs when an event group is unsubscribed. |
OnRemoteSubscribed |
(Client Services only) Occurs when an event group is subscribed. |
OnRemoteUnsubscribed |
(Client Services only) Occurs when an event group is unsubscribed. |
SomeIPEventGroup Methods
Method |
Description |
SubscribeAsync |
(Client Services only) Subscribe if service is found |
UnsubscribeAsync |
(Client Services only) Unsubscribe from events |