Skip to content

Commit 89b1b7e

Browse files
authored
Merge pull request #168 from smartdevicelink/feature/read_generic_network_signal_data
Read generic network signal data hmi guidelines
2 parents 297d702 + 741b2a9 commit 89b1b7e

36 files changed

+501
-117
lines changed

config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@
201201
"name": "GetStatusUpdate"
202202
},
203203
{
204-
"name": "GetURLS"
204+
"name": "GetUserFriendlyMessage"
205205
},
206206
{
207-
"name": "GetUserFriendlyMessage"
207+
"name": "GetPolicyConfigurationData"
208208
},
209209
{
210210
"name": "OnAllowSDLFunctionality"

docs/BasicCommunication/OnSystemRequest/assets/OnSystemRequest.gliffy

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
-85 KB
Loading
-365 KB
Loading
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
title Policy Table Update (PROPRIETARY)
2+
3+
participant Policy Server
4+
participant Mobile
5+
participant SDL
6+
participant HMI
7+
8+
note over SDL: PT update is required
9+
10+
SDL->HMI: SDL.OnStatusUpdate(UPDATE_NEEDED)
11+
SDL->SDL: Creates PT snapshot
12+
SDL->HMI: BC.PolicyUpdate(path_to_PTS)
13+
HMI-->SDL: SUCCESS: BC.PolicyUpdate
14+
HMI->SDL: SDL.GetPolicyConfigurationData\n(policy_type=module_config, property=endpoints)
15+
note over SDL: Get endpoints from policies database
16+
SDL-->HMI: SDL.GetPolicyConfigurationData(value)
17+
note over HMI: Parse `url` for `custom_vehicle_data_mapping_url`
18+
HMI->HMI: PT snapshot\nencryption
19+
HMI->SDL: BC.OnSystemRequest(url, path_to_PTS)
20+
SDL->HMI: SDL.OnStatusUpdate(UPDATING)
21+
SDL->Mobile: OnSystemRequest(url, PTS_in_binaryData)
22+
Mobile->Policy Server: PT snapshot (PTS)
23+
Policy Server->Mobile: PT update (PTU)
24+
Mobile->SDL: SystemRequest(PTU_in_binaryData)
25+
SDL-->Mobile: SUCCESS: SystemRequest
26+
SDL->HMI: BC.SystemRequest(path_to_PTU)
27+
HMI-->SDL: SUCCESS: BC.SystemRequest
28+
HMI->HMI: PT update\ndecryption
29+
HMI->SDL: SDL.OnReceivedPolicyUpdate(path_to_PTU)
30+
SDL->SDL: Validate PTU
31+
SDL->SDL: Merge PTU into Local PT
32+
SDL->HMI: SDL.OnStatusUpdate(UP_TO_DATE)
124 KB
Loading
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
-- Policy Update Sequence
2+
title Policy Table Update (EXTERNAL_PROPRIETARY)
3+
4+
participant Policy Server
5+
participant Mobile
6+
participant SDL
7+
participant HMI
8+
9+
note over SDL: PT update is required
10+
11+
SDL->HMI: SDL.OnStatusUpdate(UPDATE_NEEDED)
12+
SDL->SDL: Creates PT snapshot
13+
SDL->HMI: BC.PolicyUpdate(path_to_PTS)
14+
HMI-->SDL: SUCCESS: BC.PolicyUpdate
15+
HMI->SDL: SDL.GetPolicyConfigurationData\n(policy_type=module_config, property=endpoints)
16+
note over SDL: Get endpoints from policies database
17+
SDL-->HMI: SDL.GetPolicyConfigurationData(value)
18+
note over HMI: Parse `url` for `custom_vehicle_data_mapping_url`
19+
HMI->HMI: PT snapshot\nencryption
20+
HMI->SDL: BC.OnSystemRequest(url, path_to_PTS)
21+
SDL->HMI: SDL.OnStatusUpdate(UPDATING)
22+
SDL->Mobile: OnSystemRequest(url, PTS_in_binaryData)
23+
Mobile->Policy Server: PT snapshot (PTS)
24+
Policy Server->Mobile: PT update (PTU)
25+
Mobile->SDL: SystemRequest(PTU_in_binaryData)
26+
SDL-->Mobile: SUCCESS: SystemRequest
27+
SDL->HMI: BC.SystemRequest(path_to_PTU)
28+
HMI-->SDL: SUCCESS: BC.SystemRequest
29+
HMI->HMI: PT update\ndecryption
30+
HMI->SDL: SDL.OnReceivedPolicyUpdate(path_to_PTU)
31+
SDL->SDL: Validate PTU
32+
SDL->SDL: Merge PTU into Local PT
33+
SDL->HMI: SDL.OnStatusUpdate(UP_TO_DATE)
34+
SDL->HMI: BC.DecryptCertificate(path_to_CRT)
35+
HMI-->SDL: SUCCESS: BC.DecryptCertificate

docs/BasicCommunication/OnSystemRequest/index.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ _**SyncP NOTE**_
3131
2. It's SyncP responsibility to choose an application for sending PTU and start timer (for future retry strategy) after sending OnSystemRequest to SDL.
3232

3333
!!! MUST
34-
HMI must send `OnSystemRequest`, if specific data is requested from the mobile device/cloud, or binary data needs to be sent to the mobile device.
34+
1. Send `OnSystemRequest`, if specific data is requested from the mobile device/cloud, or binary data needs to be sent to the mobile device.
35+
2. Send `OnSystemRequest` with `requestType=OEM_SPECIFIC` and `requestSubType=VEHICLE_DATA_MAPPING` to SDL to get OEM Network Mapping table.
36+
3537
!!!
3638

3739
### Notification
@@ -64,11 +66,6 @@ BC.OnSystemRequest in "Proprietary" Policy Table Update Flow
6466
![Proprietary PTU](./assets/OnSystemRequest_in_Proprietary_PTU_flow.png)
6567
|||
6668

67-
|||
68-
BC.OnSystemRequest in External Proprietary Policy Table Update Flow
69-
![EXTERNAL proprietary](../policyupdate/assets/diagram_PolicyUpdate_external_proprietary.png)
70-
|||
71-
7269
#### JSON Example Notification
7370
```json
7471
{
-13.8 KB
Loading
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
title Policy Table Update (HTTP)
2+
3+
participant Policy Server
4+
participant Mobile
5+
participant SDL
6+
participant HMI
7+
8+
note over SDL: PT update is required
9+
10+
SDL->HMI: SDL.OnStatusUpdate(UPDATE_NEEDED)
11+
SDL->SDL: Creates PT snapshot
12+
SDL->HMI: SDL.OnStatusUpdate(UPDATING)
13+
SDL->Mobile: OnSystemRequest(url, PTS_in_binaryData)
14+
Mobile->Policy Server: PT snapshot (PTS)
15+
Policy Server->Mobile: PT update (PTU)
16+
Mobile->SDL: SystemRequest(PTU_in_binaryData, file_name)
17+
SDL-->Mobile: SUCCESS: SystemRequest
18+
SDL->SDL: Validate PTU
19+
SDL->SDL: Merge PTU into Local PT
20+
SDL->HMI: SDL.OnStatusUpdate(UP_TO_DATE)

0 commit comments

Comments
 (0)