SiliconLabs / arduino

Arduino Core for Silicon Labs devices
77 stars 15 forks source link

[bug] device unable to connect after being reprogrammed #88

Open leonardpitzu opened 1 week ago

leonardpitzu commented 1 week ago

Hardware

SparkFun Thing Plus Matter - MGM240P

Core version

2.1.0

Arduino IDE version

2.3.2

Operating system

macOS 14.6.1

Radio stack variant

Matter

OpenThread Border Router device (if using Matter)

HomePod mini

Issue description

After flashing the board with the compiled sketch I am able to commission everything as expected. After refreshing the sketch the board appears as commissioned but does not connect to the boarder router any more (nothing changes in the setup otherwise). I have to manually remove the accessory from the iOS Home app, refresh the board and do the commissioning all over again. And this every time, for every code change!

Serial output

No response

RTT output (if using Matter)

No response

Minimal reproducer code

any demo sketch would do it

leonardocavagnis commented 2 days ago

Hi @leonardpitzu, Thanks for your report. I tried to replicate your setup, and everything worked fine. First, I flashed one of the examples from the library, then I applied some modifications (e.g., adding Serial prints) and re-flashed the sketch.

Could you please provide us with some additional details about the changes you applied?

leonardpitzu commented 11 hours ago

It happens with any sample and reflashing the same, without any modifications, results in the behavior described. I think it has something to do with iOS 18 and its ability to connect to matter devices over thread without the need of an edge router. Could you please try and replicate this with iOS 18 and its default Hone app?

leonardpitzu commented 7 hours ago

Did some more testing today with the fully reset board and the temp sensor demo. Steps to reproduce:

  1. Flash the board with the demo
  2. Pair the board with the iOS18 Home app
  3. Test the sensor working
  4. Release the board with the same demo (unchanged) or simply unplug the board
  5. Thread connects but the demo hangs at “waiting for Matter discovery”