pazaan / 600SeriesAndroidUploader

Your Medtronic 600-series pump data, direct to Nightscout
http://pazaan.github.io/600SeriesAndroidUploader/
MIT License
189 stars 311 forks source link

Backfill not working after pump change #173

Closed whooze closed 6 years ago

whooze commented 6 years ago

Your Environment

Brief Explanation of Issue

Got a replacement pump from Medtronic. Treatments, backfills and basal rates are not working. Installed the first Indra version I used, but didn't work. Compiled a new apk with latest source and didn't work either. App crashes when I activate Crashalytics so no good logging availible :/

Uploader Error Code

PUMP history: requested 12/01/2018 23:58:47 - 13/01/2018 09:13:46 Communication Error: Pump Sent a NAK(304:0A) response

Severity Score

4 - once you have gotten used to backfill and treatment info you don't want to be without it

Pogman commented 6 years ago

Ok that doesn't sound good and I'm concerned that a firmware change on the pump could be an issue here. Can you have a look on the pump on the status screen and note down the pump version number and the other version numbers too so we have a record.

Also can you clear the app data and start it over just to rule out anything with that.

Pogman commented 6 years ago

There is a bug that can crash the uploader when there is no data for a period it's trying to pull but you don't seem to have that problem. Actually when you reset the app data, do not turn on the "sync" option in the nightscout settings so that it will limit the backfill period.

Pogman commented 6 years ago

What is it doing exactly when you "Update pump profile"? what error does it report?

whooze commented 6 years ago

Yeah, the version numbers sure is different :(

Old PumpNew Pump
Version2.9D4.1D
Motor App1.9A2.6A
Main Intern1.0A2.4A
Motor Intern1.0A2.3A
TelD1.0A1.0A
Compression1.0A2.1A
Pogman commented 6 years ago

Ok - I really hope it's not a firmware issue and is something related to a near empty pump history. Can you try the other things I suggested and let me know. After that I might get you a debug apk.

whooze commented 6 years ago

It reads the profile just fine and sends it to nightscout (at least according to the logs in the app, can verify that on mlab too. PUMP history is then requested and fails with communication error: NAK(304:0A)

Pogman commented 6 years ago

Ok and what about resetting the app data? and just using the default settings.

Pogman commented 6 years ago

How many days have you been using the new pump?

whooze commented 6 years ago

Yeah, I did reset the data, enteded the ns-stuff and that's when I got this result

Been using the new pump since wednesday evening

Pogman commented 6 years ago

With default settings it will attempt to get history for the last 7 days over several polls. Did it finish any of the history pulls or was there always a NAK error?

whooze commented 6 years ago

always a NAK error as far as I can see

Pogman commented 6 years ago

ok - debug apk time - I'll message you on Gitter when I have a version for you to try. You will need to go into the debug settings and turn on the remote debugging.

whooze commented 6 years ago

sure thing.

I'll install it on the two phones I use as uploaders to collect as much data as possible

Pogman commented 6 years ago

closing - fixed on 0.6+