Bluetooth reconnect timer not stopped after connection, causing unnecessary reconnect cycle
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
bluetoothpositionprovider.cppから始めて、socketStateChanged()、特にそのConnectedState分岐を、reconnect()およびcloseProvider()にある既存のタイマー処理と併せて読んでください。ソケットが接続されたときにタイマーが停止することを確認し、次に受け入れ条件を確認してください。接続済みの受信側では再度の再接続が発生せず、接続が失われた場合は引き続き再接続される必要があります。
索引モデルが issue の本文から書いたものです。
説明
Context
When the app resumes and reconnects to an external Bluetooth GNSS receiver, mReconnectTimer keeps running after the socket reaches ConnectedState. When the timer fires, reconnect() closes the healthy socket and starts over, adding a 10–15 s delay before position data is available again.
The timer is stopped in reconnect() and closeProvider(), but not in the ConnectedState branch of socketStateChanged() in bluetoothpositionprovider.cpp.
Log pattern from the user: Connected → "Reconnecting" ~4 s later → Connected again ~13 s after that.
Support ticket: https://support.merginmaps.com/odoo/all-tickets/17049
Related: #2259, #3893, #4588
Solution
Stop mReconnectTimer when the socket reaches ConnectedState.
Acceptance Criteria
- Once the Bluetooth receiver is connected, no further reconnect attempts are triggered
- After resuming the app, the receiver connects once and stays connected
- Reconnection still works when the connection is actually lost
- 主要言語
- C++
- スター
- 389
- フォーク
- 88
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 21
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MerginMaps/mobile のほかの issue
-
bug ui/ux
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
MerginMaps/mobile#4669 ·
メンテナーはふだん 1 日以内に返信
-
bug Good first issue ui/ux
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
MerginMaps/mobile#4665 ·
メンテナーはふだん 1 日以内に返信
-
bug ui/ux
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
MerginMaps/mobile#4647 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
MerginMaps/mobile#4740 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 65/100
MerginMaps/mobile#4727 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
MerginMaps/mobile の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
EchoTools/nevr-runtime#116 ·
メンテナーはふだん 1 日以内に返信
-
code-quality libc++
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
llvm/llvm-project#229284 ·
メンテナーはふだん 1 日以内に返信
-
test-issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
llvm/offload-test-suite#1557 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
iOS: hidden scale bar invalidates its intrinsic content size on every layout pass of MLNMapViewオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
maplibre/maplibre-native#4723 ·
メンテナーはふだん 1 日以内に返信