Skip to content

Commit 1466349

Browse files
authored
Merge pull request #229 from smartdevicelink/develop
HMI Integration Guidelines 7.0.0
2 parents 4dfa251 + 9ae9962 commit 1466349

File tree

130 files changed

+1873
-119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+1873
-119
lines changed

config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@
310310
{
311311
"name": "Alert"
312312
},
313+
{
314+
"name": "SubtleAlert"
315+
},
313316
{
314317
"name": "CancelInteraction"
315318
},
@@ -358,12 +361,21 @@
358361
{
359362
"name": "OnResetTimeout"
360363
},
364+
{
365+
"name": "OnSubtleAlertPressed"
366+
},
361367
{
362368
"name": "OnSystemContext"
363369
},
364370
{
365371
"name": "OnTouchEvent"
366372
},
373+
{
374+
"name": "OnUpdateFile"
375+
},
376+
{
377+
"name": "OnUpdateSubMenu"
378+
},
367379
{
368380
"name": "PerformAudioPassThru"
369381
},

docs/BasicCommunication/ActivateApp/index.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ This request may be sent:
3131
### Behavior
3232

3333
If `level` is `FULL` or `LIMITED`:
34+
3435
!!! must
3536

3637
1. Activate the application on the HMI
37-
* Display [UI.Show](../../UI/Show) related parameters associated with the named `appID` in the case they were previously requested within ignition cycle
38-
* Display the corresponding template in the case one was previously requested by [UI.SetDisplayLayout](../../UI/SetDisplayLayout) for that application
39-
* Apply [UI.SetGlobalProperties](../../UI/SetGlobalProperties) associated with the named `appID`, if any
40-
* Apply [UI.AddSubMenu](../../UI/AddSubMenu) associated with the named `appID`, if any
38+
* Display [UI.Show](../../UI/Show) related parameters associated with the named `appID` in the case they were previously requested within ignition cycle
39+
* Display the corresponding template in the case one was previously requested by [UI.Show](../../UI/Show) for that application
40+
* Apply [UI.SetGlobalProperties](../../UI/SetGlobalProperties) associated with the named `appID`, if any
41+
* Apply [UI.AddSubMenu](../../UI/AddSubMenu) associated with the named `appID`, if any
42+
* Display the web page view in the main window of the application, in case the application `AppHMIType` is `WEB_VIEW` and a template has not yet been set.
4143
2. Make <abbr title="Voice Recognition">VR</abbr> commands accessible from previous [VR.AddCommand](../VR/AddCommand) for the named `appID` during the same ignition cycle
4244
3. Apply [TTS.SetGlobalProperties](../../TTS/SetGlobalProperties) associated with the `appID` in case previously requested since application registration
4345
4. Assign priority based on the `priority` parameter received. If the parameter is omitted, the HMI must assign a priority of `NONE` by default
@@ -131,4 +133,3 @@ Activate App after Accepted Data Consent Prompt
131133
}
132134
}
133135
```
134-
45.6 KB
Loading
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
participant Local Web App
2+
participant SDL
3+
participant HMI
4+
5+
note over Local Web App, HMI:<align:center>**Preconditions:**\n 1.Web app (WEB_VIEW) is registered and activated on the HMI\n 2. HMI displays the WEB_VIEW template
6+
7+
note over Local Web App: User taps "Close app" button
8+
Local Web App->SDL: CloseApplication
9+
SDL->HMI: BC.CloseApplication(appID)
10+
HMI->SDL: BC.OnAppDeactivated(appID)
11+
HMI-->SDL:BC.CloseApplication(SUCCESS)
12+
SDL->Local Web App: OnHMIStatus(NONE, NOT_STREAMABLE, NOT_AUDIBLE)
13+
note over HMI: Local Web App is no longer in foreground
14+
SDL-->Local Web App: CloseApplication(SUCCESS)

docs/BasicCommunication/CloseApplication/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ Close Application after Failed Data Consent Prompt
4848
![Close Application Failed Data](./assets/CloseApplicationFailedData.png)
4949
|||
5050

51+
|||
52+
Close Application request from Local Web App
53+
![Close Application Local Web App](./assets/CloseApplicationLocalWebApp.png)
54+
|||
55+
5156
### JSON Message Examples
5257

5358
#### Example Request
-139 KB
Binary file not shown.
125 KB
Loading
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
participant App
2+
participant SDL
3+
participant HMI
4+
App->SDL:RAI
5+
note left of App:<align:center>RAI request processing\non hold until\n`hmi_cooperating_ = true`
6+
HMI->SDL:BC.OnReady
7+
SDL->SDL:ONHMIStartedCooperation
8+
note over SDL:<align:center>Do not set\n`hmi_cooperating_= true`\nyet
9+
SDL->HMI:BC.GetSystemInfo
10+
HMI-->SDL:BC.GetSystemInfo
11+
opt ccpu_version changed - Happy Path
12+
SDL->SDL:<align:center>Delete capabilities data\nfrom `HMICapabilitesCache` file
13+
loop for each interface
14+
SDL->HMI:[VR,UI,TTS...].IsReady
15+
HMI-->SDL:[VR,UI,TTS...].IsReady
16+
SDL->HMI:[VR,UI,TTS...].GetCapabilities
17+
note over SDL:<align:center>Wait for all\nGetCapabilities\nresponses
18+
note over HMI:<align:center>Provide all components\ncapabilities data
19+
HMI-->SDL:[VR,UI,TTS...].GetCapabilities
20+
end
21+
SDL->SDL:<align:center>Cache received data\nin `HMICapabilitiesCache` file
22+
end
23+
opt ccpu version changed - HMI response failure
24+
SDL->SDL:<align:center>Delete capabilities data\nfrom `HMICapabilitesCache` file
25+
loop for each interface
26+
SDL->HMI:[VR,UI,TTS...].IsReady
27+
HMI-->SDL:[VR,UI,TTS...].IsReady
28+
SDL->HMI:[VR,UI,TTS...].GetCapabilities
29+
note over SDL:<align:center>Wait for all\nGetCapabilities\nresponses
30+
note over HMI:<align:center>One or more\nGetCapabilities request\nfail or timeout
31+
HMI-->SDL:[VR,UI,TTS...].GetCapabilities
32+
end
33+
SDL->SDL:<align:center>Cache received data\nin `HMICapabilitiesCacheFile`
34+
SDL->SDL:<align:center>Load default capabilities data\nfor failed components
35+
end
36+
SDL->SDL:Set `hmi_cooperating = true`
37+
SDL-->App:RAI
41 KB
Loading
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
participant App
2+
participant SDL
3+
participant HMI
4+
App->SDL:RAI
5+
note left of App:<align:center>RAI request processing\non hold until\n`hmi_cooperating_ = true`
6+
HMI->SDL:BC.OnReady
7+
SDL->SDL:ONHMIStartedCooperation
8+
note over SDL:<align:center>Do not set\n`hmi_cooperating_= true`\nyet
9+
SDL->HMI:BC.GetSystemInfo
10+
HMI-->SDL:BC.GetSystemInfo
11+
note over SDL:<align:center>ccpu version is the same
12+
note over SDL:<align:center>`HMICapabilitiesCacheFile`\ncontains all components\ncapabilities data
13+
SDL->SDL:Set `hmi_cooperating = true`
14+
SDL-->App:RAI

0 commit comments

Comments
 (0)