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

[EFR32] BLE Advertissement fixes and change default pin code #5503

Merged
merged 5 commits into from
Mar 22, 2021

Conversation

jmartinez-silabs
Copy link
Member

@jmartinez-silabs jmartinez-silabs commented Mar 19, 2021

Problem

Default setup Pin Code 12345678 is invalid
BLE always advertises the same address wich is the device identity address
BLE always advertises at the same interval until provisioned.

Summary of Changes

  • Change default SetupPincode value for lock and light example, can be changed by build argument
  • Set random BLE advertissement address at advertissement start.
  • Add Advertissement times outs -> fast advertisement (25ms)intervals from 0 to 30s, slow adv interval (500ms) from 30s to 15m, stop advertissement after that

- Change default SetupPincode value for lock adn light example, can be changed with build arguments
- Set random BLE advertissement addresse at advertissement start.
- Add Advertissement times outs -> fast advertisement 25ms from 0 to 30s, slow adv 500ms 30s to 15m, stop adv after that
@woody-apple woody-apple merged commit c99bef7 into project-chip:master Mar 22, 2021
jmartinez-silabs added a commit to jmartinez-silabs/connectedhomeip that referenced this pull request Mar 22, 2021
… add ble advertissement timeouts

- fix conflicts from Cherry picking due to api modified in master vs test_event_1 tag
jmartinez-silabs added a commit to jmartinez-silabs/connectedhomeip that referenced this pull request Mar 22, 2021
… add ble advertissement timeouts

- fix conflicts from Cherry picking due to api modified in master vs test_event_1 tag
andy31415 pushed a commit that referenced this pull request Mar 22, 2021
* Fix for test event 1
- Change default SetupPincode value for lock adn light example, can be changed with build arguments
- Set random BLE advertissement addresse at advertissement start.
- Add Advertissement times outs -> fast advertisement 25ms from 0 to 30s, slow adv 500ms 30s to 15m, stop adv after that

* Restyled by whitespace

* Restyled by clang-format

* Restyled by gn

* Fix build, missed function delete by rebase.

Co-authored-by: Restyled.io <commits@restyled.io>

Conflicts:
	src/platform/EFR32/BLEManagerImpl.cpp
@jmartinez-silabs jmartinez-silabs deleted the ble_adv branch March 24, 2021 15:36
mspang added a commit to mspang/connectedhomeip that referenced this pull request Mar 25, 2021
- Remove all of the duplicate include_dirs that were needed due
  to missing dependencies & improper use of private deps.
- Add back an retargetserial.c file which is needed for this build. It
  was removed in fc59bd2 ("[3rd-party] update openthread and
  ot-br-posix (project-chip#5062)")
- Define the pigweed_lighting debug API in a common place. This
  means we need to move the enable_pw_rpc to that place, too.
- Add missing bits to CHIPProjectConfig.h needed after c99bef7
  ("[EFR32] BLE Advertissement fixes and change default pin code
  (project-chip#5503)")

Tested via
  gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
  ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.
mspang added a commit to mspang/connectedhomeip that referenced this pull request Mar 25, 2021
- Remove all of the duplicate include_dirs that were needed due
  to missing dependencies & improper use of private deps.
- Add back an retargetserial.c file which is needed for this build. It
  was removed in fc59bd2 ("[3rd-party] update openthread and
  ot-br-posix (project-chip#5062)")
- Define the pigweed_lighting debug API in a common place. This
  means we need to move the enable_pw_rpc to that place, too.
- Add missing bits to CHIPProjectConfig.h needed after c99bef7
  ("[EFR32] BLE Advertissement fixes and change default pin code
  (project-chip#5503)")

Tested via
  gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
  ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.
mspang added a commit to mspang/connectedhomeip that referenced this pull request Mar 25, 2021
- Remove all of the duplicate include_dirs that were needed due
  to missing dependencies & improper use of private deps.
- Add back an retargetserial.c file which is needed for this build. It
  was removed in fc59bd2 ("[3rd-party] update openthread and
  ot-br-posix (project-chip#5062)")
- Define the pigweed_lighting debug API in a common place. This
  means we need to move the enable_pw_rpc to that place, too.
- Add missing bits to CHIPProjectConfig.h needed after c99bef7
  ("[EFR32] BLE Advertissement fixes and change default pin code
  (project-chip#5503)")

Tested via
  gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
  ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.
jimlyall-q pushed a commit to jimlyall-q/connectedhomeip that referenced this pull request Mar 26, 2021
…-chip#5503)

* Fix for test event 1
- Change default SetupPincode value for lock adn light example, can be changed with build arguments
- Set random BLE advertissement addresse at advertissement start.
- Add Advertissement times outs -> fast advertisement 25ms from 0 to 30s, slow adv 500ms 30s to 15m, stop adv after that

* Restyled by whitespace

* Restyled by clang-format

* Restyled by gn

* Fix build, missed function delete by rebase.

Co-authored-by: Restyled.io <commits@restyled.io>
jmartinez-silabs pushed a commit to jmartinez-silabs/connectedhomeip that referenced this pull request Mar 26, 2021
- Remove all of the duplicate include_dirs that were needed due
  to missing dependencies & improper use of private deps.
- Add back an retargetserial.c file which is needed for this build. It
  was removed in fc59bd2 ("[3rd-party] update openthread and
  ot-br-posix (project-chip#5062)")
- Define the pigweed_lighting debug API in a common place. This
  means we need to move the enable_pw_rpc to that place, too.
- Add missing bits to CHIPProjectConfig.h needed after c99bef7
  ("[EFR32] BLE Advertissement fixes and change default pin code
  (project-chip#5503)")

Tested via
  gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
  ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.

Clean up and add comments for the uart api
remap OT uart functions to use our uart api.
jmartinez-silabs pushed a commit to jmartinez-silabs/connectedhomeip that referenced this pull request Mar 26, 2021
- Remove all of the duplicate include_dirs that were needed due
  to missing dependencies & improper use of private deps.
- Add back an retargetserial.c file which is needed for this build. It
  was removed in fc59bd2 ("[3rd-party] update openthread and
  ot-br-posix (project-chip#5062)")
- Define the pigweed_lighting debug API in a common place. This
  means we need to move the enable_pw_rpc to that place, too.
- Add missing bits to CHIPProjectConfig.h needed after c99bef7
  ("[EFR32] BLE Advertissement fixes and change default pin code
  (project-chip#5503)")

Tested via
  gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
  ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.

Clean up and add comments for the uart api
remap OT uart functions to use our uart api.
jmartinez-silabs pushed a commit to jmartinez-silabs/connectedhomeip that referenced this pull request Mar 26, 2021
- Remove all of the duplicate include_dirs that were needed due
  to missing dependencies & improper use of private deps.
- Add back an retargetserial.c file which is needed for this build. It
  was removed in fc59bd2 ("[3rd-party] update openthread and
  ot-br-posix (project-chip#5062)")
- Define the pigweed_lighting debug API in a common place. This
  means we need to move the enable_pw_rpc to that place, too.
- Add missing bits to CHIPProjectConfig.h needed after c99bef7
  ("[EFR32] BLE Advertissement fixes and change default pin code
  (project-chip#5503)")

Tested via
  gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
  ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.

Clean up and add comments for the uart api
remap OT uart functions to use our uart api.
jmartinez-silabs pushed a commit to jmartinez-silabs/connectedhomeip that referenced this pull request Mar 26, 2021
- Remove all of the duplicate include_dirs that were needed due
  to missing dependencies & improper use of private deps.
- Add back an retargetserial.c file which is needed for this build. It
  was removed in fc59bd2 ("[3rd-party] update openthread and
  ot-br-posix (project-chip#5062)")
- Define the pigweed_lighting debug API in a common place. This
  means we need to move the enable_pw_rpc to that place, too.
- Add missing bits to CHIPProjectConfig.h needed after c99bef7
  ("[EFR32] BLE Advertissement fixes and change default pin code
  (project-chip#5503)")

Tested via
  gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
  ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.

Clean up and add comments for the uart api
remap OT uart functions to use our uart api.
jmartinez-silabs pushed a commit to jmartinez-silabs/connectedhomeip that referenced this pull request Mar 26, 2021
- Remove all of the duplicate include_dirs that were needed due
  to missing dependencies & improper use of private deps.
- Add back an retargetserial.c file which is needed for this build. It
  was removed in fc59bd2 ("[3rd-party] update openthread and
  ot-br-posix (project-chip#5062)")
- Define the pigweed_lighting debug API in a common place. This
  means we need to move the enable_pw_rpc to that place, too.
- Add missing bits to CHIPProjectConfig.h needed after c99bef7
  ("[EFR32] BLE Advertissement fixes and change default pin code
  (project-chip#5503)")

Tested via
  gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
  ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.

Clean up and add comments for the uart api
remap OT uart functions to use our uart api.
mspang added a commit to mspang/connectedhomeip that referenced this pull request Mar 29, 2021
- Remove all of the duplicate include_dirs that were needed due
  to missing dependencies & improper use of private deps.
- Add back an retargetserial.c file which is needed for this build. It
  was removed in fc59bd2 ("[3rd-party] update openthread and
  ot-br-posix (project-chip#5062)")
- Define the pigweed_lighting debug API in a common place. This
  means we need to move the enable_pw_rpc to that place, too.
- Add missing bits to CHIPProjectConfig.h needed after c99bef7
  ("[EFR32] BLE Advertissement fixes and change default pin code
  (project-chip#5503)")

Tested via
  gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
  ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.
mspang added a commit that referenced this pull request Mar 29, 2021
- Remove all of the duplicate include_dirs that were needed due
  to missing dependencies & improper use of private deps.
- Add back an retargetserial.c file which is needed for this build. It
  was removed in fc59bd2 ("[3rd-party] update openthread and
  ot-br-posix (#5062)")
- Define the pigweed_lighting debug API in a common place. This
  means we need to move the enable_pw_rpc to that place, too.
- Add missing bits to CHIPProjectConfig.h needed after c99bef7
  ("[EFR32] BLE Advertissement fixes and change default pin code
  (#5503)")

Tested via
  gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
  ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.
jimlyall-q pushed a commit to jimlyall-q/connectedhomeip that referenced this pull request Mar 29, 2021
…5628)

- Remove all of the duplicate include_dirs that were needed due
  to missing dependencies & improper use of private deps.
- Add back an retargetserial.c file which is needed for this build. It
  was removed in fc59bd2 ("[3rd-party] update openthread and
  ot-br-posix (project-chip#5062)")
- Define the pigweed_lighting debug API in a common place. This
  means we need to move the enable_pw_rpc to that place, too.
- Add missing bits to CHIPProjectConfig.h needed after c99bef7
  ("[EFR32] BLE Advertissement fixes and change default pin code
  (project-chip#5503)")

Tested via
  gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
  ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.
jmartinez-silabs pushed a commit to jmartinez-silabs/connectedhomeip that referenced this pull request Mar 29, 2021
- Remove all of the duplicate include_dirs that were needed due
  to missing dependencies & improper use of private deps.
- Add back an retargetserial.c file which is needed for this build. It
  was removed in fc59bd2 ("[3rd-party] update openthread and
  ot-br-posix (project-chip#5062)")
- Define the pigweed_lighting debug API in a common place. This
  means we need to move the enable_pw_rpc to that place, too.
- Add missing bits to CHIPProjectConfig.h needed after c99bef7
  ("[EFR32] BLE Advertissement fixes and change default pin code
  (project-chip#5503)")

Tested via
  gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
  ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.

Clean up and add comments for the uart api
remap OT uart functions to use our uart api.
mspang added a commit that referenced this pull request Mar 30, 2021
…read (#5648)

* Rework uart functionality for pigweed to use silabs UARTDRV and DMA.

Rework Uart.c to use a circular buffer and the uardrv dma for RX
Remove from build the uart from openthread. Was causing issue with PW
Add some weak empty implementations of now missing/unused Thread uart functions. Will remap those functions to use uart api implementation for efr32 in chip

* Fix and clean up examples/lighting-app/efr32 RPC build

- Remove all of the duplicate include_dirs that were needed due
  to missing dependencies & improper use of private deps.
- Add back an retargetserial.c file which is needed for this build. It
  was removed in fc59bd2 ("[3rd-party] update openthread and
  ot-br-posix (#5062)")
- Define the pigweed_lighting debug API in a common place. This
  means we need to move the enable_pw_rpc to that place, too.
- Add missing bits to CHIPProjectConfig.h needed after c99bef7
  ("[EFR32] BLE Advertissement fixes and change default pin code
  (#5503)")

Tested via
  gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
  ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.

Clean up and add comments for the uart api
remap OT uart functions to use our uart api.

* Restyled by whitespace

* Restyled by clang-format

* Restyled by gn

Co-authored-by: Michael Spang <spang@google.com>
Co-authored-by: Restyled.io <commits@restyled.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants