Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
SDL Core Guides
Service Status Update

Service Status Update

General Description

This guide will explain how the BasicCommunication.OnServiceUpdate RPC is used within SDL Core. At a high level, this RPC is used by SDL Core to inform the HMI of the status of the system or what steps to take in case of an error. For example, when a mobile navigation application is activated and sends a request to start a Video Service, a series of steps are taken: getting the system time, performing a policy table update, and finally decrypting and validating certificates. SDL Core sends BC.OnServiceUpdate notifications to the HMI throughout each of these steps to provide information on the status of the system. These notifications may cause the HMI to display a popup providing this status information in a readable format to the user, or inform the user of what steps to take in case of an error.

Parameters

The OnServiceUpdate notification has three parameters:

serviceType

This parameter is mandatory and will contain a value from the ServiceType enum, indicating the type of service that this update is for:

  • VIDEO
  • AUDIO
  • RPC

serviceEvent

This parameter is not mandatory and will be a value from the ServiceEvent enum, indicating the status of the StartService request:

  • REQUEST_RECEIVED
  • REQUEST_ACCEPTED
  • REQUEST_REJECTED

reason

This parameter is not mandatory and will be a member of the ServiceStatusUpdateReason enum, indicating the type of error that occurred while attempting to start the service:

  • PTU_FAILED
    • the system was unable to get a required Policy Table Update
  • INVALID_CERT
    • the security certificate was invalid or expired
  • INVALID_TIME
    • the system was unable to get a valid SystemTime from the HMI
  • PROTECTION_ENFORCED
    • the system configuration (ini file) requires a service to be protected, but the app attempted to start an unprotected service
  • PROTECTION_DISABLED
    • the system started an unprotected service when the app requested a protected service

appID

This parameter is not mandatory but will be included with each request after the RegisterAppInterface message for this application has been received.

Flow Diagrams

More documentation on the message flow for BC.OnServiceUpdate and its parameters can be found in the HMI Integration Guidelines.
To better understand how the OnServiceUpdate notification is propagated within SDL Core, please take a look at the following Sequence Diagrams:

View on GitHub.com
Previous Section Next Section