Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Bluetooth reconnect timer not stopped after connection, causing unnecessary reconnect cycle

オープン 初心者向け
#4,741 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp
領域
mobile

調査の方向性

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MerginMaps/mobile のほかの issue

MerginMaps/mobile の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。