
Specification of Service Discovery
V1.2.0
R4.1 Rev 3
4 of 131 Document ID 616: SWS_ServiceDiscovery
- AUTOSAR confidential -
7.5 Sending and Receiving of Messages ......................................................... 52
7.5.1 Sequence for message transmission .................................................... 52
7.5.2 Sequence for message reception ......................................................... 53
7.5.3 Receiving Entries .................................................................................. 54
7.6 Timings and repetitions for Server Service and Event Handlers ................ 56
7.6.1 Initial Wait Phase for Server Services ................................................... 57
7.6.2 Repetition Phase for Server Services ................................................... 58
7.6.3 Main Phase for Server Services ............................................................ 61
7.6.4 Fan out control ...................................................................................... 63
7.7 Timings and repetitions for Client Service and Consumed Eventgroups .... 64
7.7.1 Down Phase for Client Services ............................................................ 65
7.7.2 Initial Wait Phase for Client Services .................................................... 66
7.7.3 Repetition Phase for Client Services ..................................................... 68
7.7.4 Main Phase for Client Services ............................................................. 69
7.8 Error classification ...................................................................................... 72
7.9 Error detection ............................................................................................ 73
7.10 Error notification ......................................................................................... 73
7.11 Debugging .................................................................................................. 73
8 API specification ................................................................................................ 75
8.1.1 Imported Types ..................................................................................... 75
8.2 Type definitions .......................................................................................... 75
8.2.1 Sd_ServerServiceSetStateType ........................................................... 75
8.2.2 Sd_ClientServiceSetStateType ............................................................. 75
8.2.3 Sd_ConsumedEventGroupSetStateType ............................................. 76
8.2.4 Sd_ClientServiceCurrentStateType ...................................................... 76
8.2.5 Sd_ConsumedEventGroupCurrentStateType ....................................... 76
8.2.6 Sd_EventHandlerCurrentStateType ...................................................... 76
8.3 Function definitions .................................................................................... 76
8.3.1 Sd_Init ................................................................................................... 77
8.3.2 Sd_GetVersionInfo ................................................................................ 78
8.3.3 Sd_ServerServiceSetState ................................................................... 78
8.3.4 Sd_ClientServiceSetState ..................................................................... 79
8.3.5 Sd_ConsumedEventGroupSetState ..................................................... 80
8.3.6 Sd_LocalIpAddrAssignmentChg ........................................................... 81
8.4 Call-back notifications ................................................................................ 82
8.4.1 Sd_RxIndication .................................................................................... 82
8.5 Scheduled functions ................................................................................... 83
8.5.1 Sd_MainFunction .................................................................................. 83
8.6 Expected Interfaces .................................................................................... 83
8.6.1 Mandatory Interfaces ............................................................................ 84
8.6.2 Optional Interfaces ................................................................................ 84
9 Sequence diagrams .......................................................................................... 86
9.1 CLIENT / SERVER: Sd_RxIndication ......................................................... 86
9.2 SERVER: Response Behavior ................................................................... 87
9.3 CLIENT: Response Behavior ..................................................................... 88
9.4 SERVER: buildOfferServiceEntry ............................................................... 91
9.5 CLIENT: buildSubscribeEventgroupEntry .................................................. 92
9.6 SERVER: buildSubscribeEventgroupAckEntry .......................................... 93
9.7 CLIENT/SERVER: TransmitSdMessage .................................................... 94