LoopKit / CGMBLEKit

Make your G5/G6 data truly mobile.
MIT License
140 stars 150 forks source link

Always get "Transmitter error: Unable to parse auth challenge: timeout" with newer transmitters #148

Open goltra3 opened 4 years ago

goltra3 commented 4 years ago

Hi guys!, I'm always getting "Transmitter error: Unable to parse auth challenge: timeout" with these G6 newer transmitters that showed @ps2 in his v3.1 version.

I've:

With an older one (July 2019), it does ask me for pairing, but next it throws me an exception and app crashes. It does reset the transmitter.

Any Ideas?

pi4ohhi7 commented 4 years ago

Having the same issue with my new batch of transmitters (serial numbers starting with 8G). Interestingly, passive mode is also not working. Logs from active mode (ids redacted):

2020-04-16 10:22:27.323822-0500 dtracker[739:142631] [BluetoothManager] centralManager(_:didDisconnectPeripheral:error:): <CBPeripheral: 0xXXXXXXXXX, identifier = XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, name = DexcomXX, state = disconnected>
2020-04-16 10:22:29.335385-0500 dtracker[739:142631] [BluetoothManager] Re-connecting to known peripheral XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
2020-04-16 10:22:29.712137-0500 dtracker[739:142627] [BluetoothManager] centralManager(_:didConnect:): <CBPeripheral: 0xXXXXXXXXX, identifier = XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, name = DexcomXX, state = connected>
2020-04-16 10:22:29.712530-0500 dtracker[739:142627] [PeripheralManager] Configured peripheral has no services. Reconfiguring…
Transmitter connected
2020-04-16 10:22:29.863499-0500 dtracker[739:142627] [PeripheralManager] Peripheral configuration completed
2020-04-16 10:22:29.864202-0500 dtracker[739:142627] [PeripheralManager] Delegate configuration completed
2020-04-16 10:22:29.864503-0500 dtracker[739:142627] [Transmitter] Authenticating with transmitter
Unable to parse auth challenge: timeout
pi4ohhi7 commented 4 years ago

Shortly after that last comment passive mode started working. But active mode still fails to authenticate.

goltra3 commented 4 years ago

Hi @pi4ohhi7!, what do you mean with "active" and "passive" mode?

pi4ohhi7 commented 4 years ago

Passive mode eavesdrops on the official Dexcom app as it communicates with the transmitter; active mode directly communicates with the transmitter. It looks like passive mode does still work (though I'm having some trouble getting it to work consistently).

goltra3 commented 4 years ago

Thanks @pi4ohhi7!, and is it possible to reset transmitters with passive mode?, I haven't heard about that possibility... how does it work?. Thanks again!

pi4ohhi7 commented 4 years ago

It's not relevant to resetting transmitters as far as I know.

agoldh20 commented 4 years ago

I am also getting this error

DonaldBough commented 4 years ago

Also having this issue with 8J transmitter in the US on iPhone with iOS 13 something.

trauts2 commented 3 years ago

Same here, with 8H transmitters.

tomnis commented 3 years ago

Getting the same with an 8M transmitter.