Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL 0205 - Avoid Custom button subscription in case HMI incompatibility #632

Closed
jordynmackool opened this issue Dec 5, 2018 · 8 comments

Comments

@jordynmackool
Copy link
Contributor

jordynmackool commented Dec 5, 2018

Hello SDL community,

The review of "SDL 0205 - Avoid Custom button subscription in case HMI incompatibility" begins now and runs through December 11, 2018. The proposal is available here:

https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0205-Avoid_custom_button_subscription_when_HMI_does_not_support.md

Reviews are an important part of the SDL evolution process. All reviews should be sent to the associated Github issue at:

#632

What goes into a review?

The goal of the review process is to improve the proposal under review through constructive criticism and, eventually, determine the direction of SDL. When writing your review, here are some questions you might want to answer in your review:

  • Is the problem being addressed significant enough to warrant a change to SDL?
  • Does this proposal fit well with the feel and direction of SDL?
  • If you have used competitors with a similar feature, how do you feel that this proposal compares to those?
  • How much effort did you put into your review? A glance, a quick reading, or an in-depth study?
    Please state explicitly whether you believe that the proposal should be accepted into SDL.

More information about the SDL evolution process is available at

https://github.com/smartdevicelink/sdl_evolution/blob/master/process.md

Thank you,
Jordyn Mackool

Program Manager - Livio
jordyn@livio.io

@ghost
Copy link

ghost commented Dec 7, 2018

To my understanding it reduces the overhead of unneeded calls to HMI if CUSTOM_BUTTON is not supported. I do have one question:

In case CUSTOM_BUTTON is not supported by hmi_capabilities: SDL should not send Buttons.SubscribeButtons(CUSTOM_BUTTON) to HMI.

I was looking for this function in the HMI_API and couldn't find it. I'm not an expert in HMI API. Can you please clarify what HMI function this should be?

I believe this proposal is about button subscription from the app through SDL core to the HMI. If SDL should not send the request to the HMI who's then responding back to the app? May be I'm completely wrong here but I want to ensure requests always receive a response.

@GetmanetsIrina
Copy link
Contributor

GetmanetsIrina commented Dec 10, 2018

@kshala-ford , currently on SDL develop branch the button subscription on SDL triggers not the Buttons.SubscribeButtons message to HMI, but the Buttons.OnButtonSubscription notification( https://github.com/smartdevicelink/sdl_core/blob/aadea479ba2ac48bee55699265559c14348b2274/src/components/interfaces/HMI_API.xml#L3411).
Changes of the SDL subscription were provided in #568, so within these changes SDL will send Buttons.SubscribeButtons request(https://github.com/smartdevicelink/sdl_core/blob/be3846d29022a6073cbf76c841116e4156d2593c/src/components/interfaces/HMI_API.xml#L3411).

@Jack-Byrne
Copy link
Contributor

@GetmanetsIrina

In case CUSTOM_BUTTON is not supported by hmi_capabilities: SDL should not send Buttons.SubscribeButtons(CUSTOM_BUTTON) to HMI.

How would core respond to the mobile proxy in this event?

@LuxoftAKutsan
Copy link
Contributor

@JackLivio SDL should successfully response (on RAI) to mobile in any case. HMI limitations should not cause errors during registration.

@Jack-Byrne
Copy link
Contributor

What would be the response to ButtonSubscription? UNSUPPORTED_RESOURCE?

@LuxoftAKutsan
Copy link
Contributor

@JackLivio if mobile application send SubscribeButton (buttonName = CUSTOM_BUTTON) and CUSTOM_BUTTON is not supported by HMI (absent in hmi_capabilities), SDL will respond with UNSUPPORTED_RESOURCE result code.

@jordynmackool
Copy link
Contributor Author

jordynmackool commented Dec 12, 2018

The Steering Committee voted to accept this proposal with the revisions on 2018-12-11. The revisions will include adding UNSUPPORTED_RESOURCE response in the event that a CUSTOM_BUTTON is not supported as noted in this comment.

@smartdevicelink smartdevicelink locked and limited conversation to collaborators Dec 12, 2018
@jordynmackool
Copy link
Contributor Author

The has author made the noted revisions and an issue has been entered in Core.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants