Skip to content

Fix: Add multiple CS devices#185

Open
himalia416 wants to merge 1 commit into
mainfrom
multiple_cs_devices
Open

Fix: Add multiple CS devices#185
himalia416 wants to merge 1 commit into
mainfrom
multiple_cs_devices

Conversation

@himalia416

Copy link
Copy Markdown
Contributor

The current implementation implicitly assumes a single active ranging target, which may cause incorrect or inconsistent UI behavior when multiple concurrent ranging sessions are present.

More info: The current Channel Sounding implementation does not maintain an independent state for multiple ranging devices/sessions in the ChannelSoundingViewModel class.
startChannelSounding(address) launches a new collection for each device; however, all emitted data is written into the same shared instance.
As a result, when multiple Channel Sounding sessions are started simultaneously (multiple reflectors/responders), the data streams overwrite each other in the UI state.

Similarly, the manager class was using single class-level variables (like rangingSession and device) to track active sessions. If multiple devices tried to connect at the same time, they would overwrite each other’s data, mix up distance histories, and leak system callbacks.

@CLAassistant

CLAassistant commented May 18, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants