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

[linux] Linux DeviceLayer needs WiFi ConnectivityMgr #739

Closed
turon opened this issue May 18, 2020 · 7 comments
Closed

[linux] Linux DeviceLayer needs WiFi ConnectivityMgr #739

turon opened this issue May 18, 2020 · 7 comments
Assignees
Milestone

Comments

@turon
Copy link
Contributor

turon commented May 18, 2020

Problem

The Linux device layer needs a ConnectivityMgr that handles a single, primary WiFi interface.

Proposed Solution

Implement the ConnectivityMgr with WiFi support.

Propose to interface directly to wpasupplicant.

Not in scope: conman, shill, or ubuntu / debian network manager.

Device layer assumes it is master of connectivity. Target is embedded Linux type devices such as RasPi or smart speaker.

Include instructions for testing on a laptop or workstation, including instructions on how to disable local network mgmt and give control to CHIP app.

  • Status - 2020-06-10
    • Draft PR posted -- DBUS client API to wpasupplicant implemented
    • No ProvisioningService integration yet in CHIP -- only tested in Weave environment thus far
    • DBUS using gmain_loop -- may cause conflicts with ThreadStack -- team to coord offline
    • Suggest unit tests based with credentials loaded from file
    • Script to launch required services such as wpasupplicant
    • Difficult to define AP in simulation w/o hardware
    • Evaluate using mac80211 hwsim module
@rwalker-apple rwalker-apple added this to the May 29, 2020 milestone May 18, 2020
@woody-apple woody-apple modified the milestones: May 29, 2020, V1.0 May 19, 2020
@turon turon modified the milestones: V1.0, June 19, 2020, June 12, 2020 May 20, 2020
@turon turon assigned turon and kghost and unassigned turon May 20, 2020
@turon
Copy link
Contributor Author

turon commented Jun 4, 2020

@kghost status

  • Can post PR of current code this week

    • Connect / Disconnect to WiFi network
    • ConnectivityMgr APIs implemented:
      • // WiFi station methods (implemented and manually tested)
      • // WiFi AP methods (not implemented -- split into separate PR)
      • // Internet connectivity methods (implemented and manually tested)
  • Testing:

    • Manual testing on Linux machine
      • Start daemon, connect to existing WiFi, observing connected logs in wpasupplicant
    • No unit tests yet

@turon
Copy link
Contributor Author

turon commented Jun 18, 2020

Status: #1066 PR posted

Open items:

@turon
Copy link
Contributor Author

turon commented Jun 24, 2020

@kghost : blocking on #1084 to update to new dbus sharing framework.
also waiting for new test framework.

@turon
Copy link
Contributor Author

turon commented Jul 9, 2020

@kghost : Once #1084, only need a few days to land since PR already uses gio.
@yunhanw-google : How do you test WiFi provisioning?
@kghost : No tests right now -- simulating WiFi not trivial
@turon : Manual testing on RasPi possible?
@kghost : Plan to add Mock provisioning service

@turon turon modified the milestones: June 26, 2020, 2020-07-17 Jul 9, 2020
@turon turon changed the title [linux] Linux DeviceLayer needs ConnectivityMgr [linux] Linux DeviceLayer needs WiFi ConnectivityMgr Jul 9, 2020
@turon
Copy link
Contributor Author

turon commented Jul 23, 2020

Status 2020-07-22:

  • Was blocking dbus
  • Have not had bandwidth to revisit since dbus PR merged
  • reassigning to @yufengwangca -- will coordinate hand-off from @kghost over week
  • testing challenges: unit tests can't perform end-to-end testing

@turon
Copy link
Contributor Author

turon commented Aug 6, 2020

Status 2020-08-05:

  • 2 PRs on Wifi merged
  • 1 more in review
  • next to add shell commands to control and test wifi manager

Opens:

  • latest version of wpasupplicant is needed (v2.9) -- some APIs on older version (v2.6 on Ubuntu 18.04) don't work at all.
    • dbus API is available, but typical usage is via direct socket API

@yufengwangca
Copy link
Contributor

All PRs to support WiFi over GDBus are merged. Next to add shell commands to control and test wifi manager which is tracked by #1696

jmartinez-silabs pushed a commit to SiliconLabs/matter that referenced this issue May 18, 2023
…redentials_example to silabs

Auto-Merge: Pull request project-chip#739: [AUTO] CPMS: Remove the now obsolete credentials example.

Merge in WMN_TOOLS/matter from remove_credentials_example to silabs

Squashed commit of the following:

commit 61d40e6c9577dc76cabd9d6c088054868c39da71
Author: Ricardo Casallas <ricardo.casallas@silabs.com>
Date:   Thu May 4 05:58:46 2023 -0400

    CPMS: Deprecated credentials example removed.
rerasool pushed a commit to SiliconLabs/matter that referenced this issue Jun 23, 2023
…redentials_example to silabs

Auto-Merge: Pull request project-chip#739: [AUTO] CPMS: Remove the now obsolete credentials example.

Merge in WMN_TOOLS/matter from remove_credentials_example to silabs

Squashed commit of the following:

commit 61d40e6c9577dc76cabd9d6c088054868c39da71
Author: Ricardo Casallas <ricardo.casallas@silabs.com>
Date:   Thu May 4 05:58:46 2023 -0400

    CPMS: Deprecated credentials example removed.
jmartinez-silabs pushed a commit to SiliconLabs/matter that referenced this issue Sep 1, 2023
…redentials_example to silabs

Auto-Merge: Pull request project-chip#739: [AUTO] CPMS: Remove the now obsolete credentials example.

Merge in WMN_TOOLS/matter from remove_credentials_example to silabs

Squashed commit of the following:

commit 61d40e6c9577dc76cabd9d6c088054868c39da71
Author: Ricardo Casallas <ricardo.casallas@silabs.com>
Date:   Thu May 4 05:58:46 2023 -0400

    CPMS: Deprecated credentials example removed.
shgutte pushed a commit to shgutte/connectedhomeip that referenced this issue Oct 5, 2023
…redentials_example to silabs

Auto-Merge: Pull request project-chip#739: [AUTO] CPMS: Remove the now obsolete credentials example.

Merge in WMN_TOOLS/matter from remove_credentials_example to silabs

Squashed commit of the following:

commit 61d40e6c9577dc76cabd9d6c088054868c39da71
Author: Ricardo Casallas <ricardo.casallas@silabs.com>
Date:   Thu May 4 05:58:46 2023 -0400

    CPMS: Deprecated credentials example removed.
jmartinez-silabs pushed a commit to SiliconLabs/matter that referenced this issue Oct 25, 2023
…redentials_example to silabs

Auto-Merge: Pull request project-chip#739: [AUTO] CPMS: Remove the now obsolete credentials example.

Merge in WMN_TOOLS/matter from remove_credentials_example to silabs

Squashed commit of the following:

commit 61d40e6c9577dc76cabd9d6c088054868c39da71
Author: Ricardo Casallas <ricardo.casallas@silabs.com>
Date:   Thu May 4 05:58:46 2023 -0400

    CPMS: Deprecated credentials example removed.
shgutte pushed a commit to shgutte/connectedhomeip that referenced this issue Jan 11, 2024
…redentials_example to silabs

Auto-Merge: Pull request project-chip#739: [AUTO] CPMS: Remove the now obsolete credentials example.

Merge in WMN_TOOLS/matter from remove_credentials_example to silabs

Squashed commit of the following:

commit 61d40e6c9577dc76cabd9d6c088054868c39da71
Author: Ricardo Casallas <ricardo.casallas@silabs.com>
Date:   Thu May 4 05:58:46 2023 -0400

    CPMS: Deprecated credentials example removed.
jmartinez-silabs pushed a commit to SiliconLabs/matter that referenced this issue Jan 18, 2024
…redentials_example to silabs

Auto-Merge: Pull request project-chip#739: [AUTO] CPMS: Remove the now obsolete credentials example.

Merge in WMN_TOOLS/matter from remove_credentials_example to silabs

Squashed commit of the following:

commit 61d40e6c9577dc76cabd9d6c088054868c39da71
Author: Ricardo Casallas <ricardo.casallas@silabs.com>
Date:   Thu May 4 05:58:46 2023 -0400

    CPMS: Deprecated credentials example removed.
mkardous-silabs pushed a commit to mkardous-silabs/connectedhomeip that referenced this issue Jan 29, 2024
…redentials_example to silabs

Auto-Merge: Pull request project-chip#739: [AUTO] CPMS: Remove the now obsolete credentials example.

Merge in WMN_TOOLS/matter from remove_credentials_example to silabs

Squashed commit of the following:

commit 61d40e6c9577dc76cabd9d6c088054868c39da71
Author: Ricardo Casallas <ricardo.casallas@silabs.com>
Date:   Thu May 4 05:58:46 2023 -0400

    CPMS: Deprecated credentials example removed.
mkardous-silabs pushed a commit to mkardous-silabs/connectedhomeip that referenced this issue Jan 29, 2024
…redentials_example to silabs

Auto-Merge: Pull request project-chip#739: [AUTO] CPMS: Remove the now obsolete credentials example.

Merge in WMN_TOOLS/matter from remove_credentials_example to silabs

Squashed commit of the following:

commit 61d40e6c9577dc76cabd9d6c088054868c39da71
Author: Ricardo Casallas <ricardo.casallas@silabs.com>
Date:   Thu May 4 05:58:46 2023 -0400

    CPMS: Deprecated credentials example removed.
jmartinez-silabs pushed a commit to SiliconLabs/matter that referenced this issue Feb 15, 2024
…redentials_example to silabs

Auto-Merge: Pull request project-chip#739: [AUTO] CPMS: Remove the now obsolete credentials example.

Merge in WMN_TOOLS/matter from remove_credentials_example to silabs

Squashed commit of the following:

commit 61d40e6c9577dc76cabd9d6c088054868c39da71
Author: Ricardo Casallas <ricardo.casallas@silabs.com>
Date:   Thu May 4 05:58:46 2023 -0400

    CPMS: Deprecated credentials example removed.
jmartinez-silabs pushed a commit to SiliconLabs/matter that referenced this issue May 8, 2024
…redentials_example to silabs

Auto-Merge: Pull request project-chip#739: [AUTO] CPMS: Remove the now obsolete credentials example.

Merge in WMN_TOOLS/matter from remove_credentials_example to silabs

Squashed commit of the following:

commit 61d40e6c9577dc76cabd9d6c088054868c39da71
Author: Ricardo Casallas <ricardo.casallas@silabs.com>
Date:   Thu May 4 05:58:46 2023 -0400

    CPMS: Deprecated credentials example removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants