controlX2 icon indicating copy to clipboard operation
controlX2 copied to clipboard

Update to v7.7 Changes Pairing code Format

Open NethCoder opened this issue 1 year ago • 4 comments

Just wanted to let you know. If anyone updates their pump to work with the Dexcom G7, the software update to the pump changes the pairing code to a 6-digit code similar to 2FA codes. The code is only good for 5 minutes at a time for each G7 sensor.

New_Pairing_Code

NethCoder avatar Dec 08 '23 20:12 NethCoder

This has been on my radar (once it was mentioned in the early launch announcement), but I only got access to the G7 update earlier this week and haven't updated yet. I will investigate the protocol changes and their impact on the project once I've updated my pump.

jwoglom avatar Dec 08 '23 21:12 jwoglom

The latest Tandem update does break the connection with ControlX2. I recently updated and am now unable to get this working again. Hopefully an update can fix this.

aaroecker avatar Dec 20 '23 03:12 aaroecker

I've updated my pump and good news: the core protocol has not changed. The pump reports ApiVersionResponse[majorVersion=3,minorVersion=2] as its API version and still appears to use the same basic auth protocol. I think the main change necessary is just to reverse engineer how the 6 character code gets translated into a 16 character code which is then sent over the wire via HMAC. I'll report in this thread when I have any further findings about this,.

jwoglom avatar Dec 20 '23 04:12 jwoglom

Thank you 🙏

aaroecker avatar Dec 20 '23 12:12 aaroecker

@NethCoder @aaroecker the 6-digit pairing code system has been successfully reverse engineered! It ended up being much more complicated than initially expected: Tandem rewrote the entire pairing protocol using JPAKE. Please try it out and let me know if you run into any issues.

jwoglom avatar Dec 10 '24 06:12 jwoglom