winemug / OmniCore

Control omnipod from your phone and more.
MIT License
107 stars 43 forks source link

Problems re-establishing connection to RileyLink (green LED on) #6

Open vanelsberg opened 5 years ago

vanelsberg commented 5 years ago

Observation:

Review of the code: Shows a RileyInstance is only created once for the lifetime of the OmniCore application. When this instance gets problematic this is (1) not detected by OmniCore/EnsureDevice, nor will the instance be recreated (2) to restore proper RL/Pod communications.

Suggestion: Build in some detection or failsave for (1) then execute (2)?

alevar1975 commented 4 years ago

Hi, we are three guys in Germany experiencing the same issue.

Once the connection gets lost, it requires a restart of the phone and several attempts to reconnect with the RL.

Here the OS systems that showed this issue:

  1. Motorola and Android 8.1
  2. Samsung Galaxy S 9, Android 9 Pie
  3. Huawei Mate 20 Pro, Android 9.1

all running with Android APS 2.3 and OmniCore 1.0.0.703

The same issue occurs as well when the RL green light is off. a347435e-6c49-4e43-a99b-f8111a76683b

Screenshot 2019-10-01 23 19 10

b4a817ca-7299-4a2f-8ba5-f33ff8176e51

scottkellie commented 4 years ago

I also have this issue and it's interesting that the Bluetooth seems connected but omnicore has lost communication with the pod. Using xdrip there is a function "trust autoconnect" before this was disabled I had no end of stale sessions connecting to my miaomiao2 since disabled I very very rarely have this issue. May e that is something that could be looked into I am awaiting the next release to look into the code and see how it all works.