You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon iAP connect, the SDL library should always send a V1 StartService request for RPC service. However on subsequent iAP connects, the library sends a V2. This this isn't a big issue as long as the same car is used. Also with V1 being basically obsolete it's a low priority bug, however the behavior is incorrect according to the protocol spec, that's why I created the issue. If we would ever create a V3 frame type this issue would become critical for multi car use cases (like families share two cars).
Reproduction Steps
Install Hello SDL
Connect to any SDL system and track first StartService request
Disconnect from the SDL system
Reconnect to the SDL system and track first StartService request
Bug Report
Upon iAP connect, the SDL library should always send a V1 StartService request for RPC service. However on subsequent iAP connects, the library sends a V2. This this isn't a big issue as long as the same car is used. Also with V1 being basically obsolete it's a low priority bug, however the behavior is incorrect according to the protocol spec, that's why I created the issue. If we would ever create a V3 frame type this issue would become critical for multi car use cases (like families share two cars).
Reproduction Steps
Expected Behavior
Both requests should be V1 frames like
Observed Behavior
The first request is a V1 frame like expected. The second however is a V2 frame.
OS & Version Information
Comment
In this code https://github.com/smartdevicelink/sdl_ios/blob/7.0.0-rc.3/SmartDeviceLink/private/SDLProtocol.m#L508 the library sets the maximum head unit protocol version. The SDLGlobal class overwrites the protocol version (see https://github.com/smartdevicelink/sdl_ios/blob/7.0.0-rc.3/SmartDeviceLink/private/SDLGlobals.m#L84). The issue is that the library doesn't reset the version objects on disconnect.
A simple reset on disconnect should solve the problem.
The text was updated successfully, but these errors were encountered: