NightscoutFoundation / xDrip

Nightscout version of xDrip+
https://jamorham.github.io/#xdrip-plus
GNU General Public License v3.0
1.41k stars 1.15k forks source link

InPen Not Authorizing #1176

Open codywarmbo opened 4 years ago

codywarmbo commented 4 years ago

Hello, I love xDrip+! It's changed my life. I'm wondering though if it's compatible with the InPen like it describes in the Wiki here? I've tried pairing it numerous times and while it loads the pens information like model and firmware and serial number, it never grabs dosages and Authorization always shows Required.

Any suggestions? I've tried the 2.ou pairing process numerous times.

More details

Last Error: Cannot bond with pens as incorrect number of units dialed up for pairing. Should be 2.0 or other error
Brain State: Connecting/Get Auth/Sleeping (always cycles these three)
Authentication: Required
Model: Inpen-100NN-BL
Firmware: 3.8.2
Hardware: RevAF
dkumor commented 4 years ago

I have also been unable to pair my inpen with xdrip+ on Android 10, with the same error. I'm using the latest alpha.

The InPen app does not permit downloading raw data, so I am hoping that this issue can be fixed so that I can sync treatments with nightscout.

Pancreacrafter commented 4 years ago

Same problem. I see the InPen serial number and it shows on Bluetooth, but no doses show. I'm not even getting a message for required authorization.

jamorham commented 4 years ago

Maybe they changed something with a newer version. Does it work to pair with the official app and then uninstall that and use xDrip?

codywarmbo commented 4 years ago

@jamorham in my experience, the same issue occurs with Authorization and no dosages get transferred. I am available 24/7 and have an InPen I'd be willing to really mess around with if it helps you.

jamorham commented 4 years ago

Is the bonding procedure still the same with the official app, that it asks you to dial up a number of units which the app specifies to confirm pairing?

Pancreacrafter commented 4 years ago

I did this yesterday. The official app tells you to remove the cartridge and gives you a number of units to dose. It's different each time - one time it said to do 10; another time it said to do 27.

codywarmbo commented 4 years ago

Yes. It uses a random number of units in the InPen app when you pair though. Not just 2u each time.

codywarmbo commented 4 years ago

Any headway on this or something a non-developer can do to contribute? @jamorham do you have a donations/buyacoffee link?

dbreviu commented 4 years ago

I'm also experiencing this issue, attaching some screenshots of the logs, can't seem to upload feedback through the app. One thing I'm noticing is when trying to pair I briefly see a system message along the lines of "unable to pair bluetooth incorrect pin or password"

Screenshot_20200303-224014 Screenshot_20200303-225833

usmc03 commented 4 years ago

I'm having the same issue.

The InPen is pairing with the phone just fine but I'm having the same issue with 'Authorization : Required' in the InPen status tab. In system settings the InPen section perpetually says 'Downloading Dosages' but the status tab shows the pen as sleeping until I start to dial in a dose, then it presents as connected It's clearly not downloading dosages or else it would, I assume, show as connected through the download process.

Was a solution found for this?

codywarmbo commented 4 years ago

Closing in on almost a year later now. Has there been any progress with this issue? I am still having the same issue after all this time.

tolot27 commented 4 years ago

I would realy like to fix this but I don't have an InPen because it is not sold outside US. I've asked on Gitter for one, but did not get a response. If anyone can provide one, I can work on this issue.

tolot27 commented 4 years ago

I cannot work on this issue until someone can send me an InPen.

DHVDave commented 4 years ago

@tolot27 - I believe part of the issue is what you have listed as a pairing dose. The InPen app has several pairing doses, I've seen 3.5u (default) or 10.5u (which resets the pen's connections) There is also a 21.5u dose that is used for a new pen. I am not positive - but this might be why we are seeing these errors. Perhaps the InPen treats any dose dose ending in .5u as a pairing dose and generates the pairing code that way.

zip9 commented 3 years ago

Thanks tolot27 for picking this issue up. Using xDrip as a Dexcom follower. Google fit steps adds activity. Looking forward to having multiple daily injection shows on the graphs without manual logging. Hopefully glucose and onboard insulin from InPen may be added to xDrip graph as well. All these elements, graphed on a mobile app, will improve many diabetics lives.

martire01 commented 3 years ago

If I unpair and re-pair using 2.0, would that solve the problem in my case? Screenshot_20210417-181839

johnmccoyjr commented 3 years ago

I have revived my second inPen so my old one could be shipped to somebody who would work on this issue. Unsure about shipping it internationally but I'm willing to try.

ahanuban commented 3 years ago

I just got a new inpen and am having the same issue. I would rather not send off my new pen but if someone has an old one @johnmccoyjr I do a lot of international ecommerce and would be happy to help with shipping to @tolot27 (i.e., I can provide a prepaid shipping label). I am located in the USA.

gth001 commented 3 years ago

I just bought an Inpen, after seeing it in the latest xDrip settings. After a lot of troubleshooting, I see it hasn't been working since 2019. I can confirm that the Inpen app works fine, and the pen pairs there. xDrip seems unable to authenticate and bond. They're only $35 max copay (with insurance) if a developer thinks they want a new one. It'd be really nice to have my insulin doses in nightscout somehow for use MDI folk...I don't think Pendiq is available in the USA.

tolot27 commented 3 years ago

I'm working on this issue for some weeks. Please be patient some more time.

johnmccoyjr commented 3 years ago

@Mathis - Great to hear that, just wanted to offer my spare hardware if needed.

@ahanuban, I can manage the shipping was just unsure of any regulations that might hold it up.

As a side not I slammed my pen in a door, the back button went flying and a small washer fell out, it all snapped back together without issue. Hurrah well designed hardware!

John

On 6/5/2021 2:08 AM, Mathias Walter wrote:

I'm working on this issue for some weeks. Please be patient some more time.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/1176#issuecomment-855209984, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABR4IIZPIPY5AGBUF723XH3TRHSSRANCNFSM4KHEQ4PQ.

-- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

Navid200 commented 3 years ago

@tolot27 Thanks for working on this. Should we remove the capability from xDrip until this is resolved considering the existence of Inpen under settings may give the wrong impression that it currently works? Or, should we add a note on the capability highlighting that currently there is a problem?

martire01 commented 3 years ago

I would think adding a note would suffice, just so users of the inPen are aware of a future possibility. Thanks.

On Tue, Aug 3, 2021, 11:03 Navid @.***> wrote:

@tolot27 https://github.com/tolot27 Thanks for working on this. Should we remove the capability from xDrip until this is resolved considering the existence of Inpen under settings may give the wrong impression that it currently works? Or, should we add a note on the capability highlighting that currently there is a problem?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/1176#issuecomment-891969768, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOKBCG3GSGJSZXRWRTKZWQTT3AHOHANCNFSM4KHEQ4PQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

ahanuban commented 3 years ago

It's also possible that some people with older versions of inPen are currently using the feature.

On Fri, Aug 6, 2021, 12:00 martire01 @.***> wrote:

I would think adding a note would suffice, just so users of the inPen are aware of a future possibility. Thanks.

On Tue, Aug 3, 2021, 11:03 Navid @.***> wrote:

@tolot27 https://github.com/tolot27 Thanks for working on this. Should we remove the capability from xDrip until this is resolved considering the existence of Inpen under settings may give the wrong impression that it currently works? Or, should we add a note on the capability highlighting that currently there is a problem?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/NightscoutFoundation/xDrip/issues/1176#issuecomment-891969768 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AOKBCG3GSGJSZXRWRTKZWQTT3AHOHANCNFSM4KHEQ4PQ

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/1176#issuecomment-894357275, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ3YQPJKF74C7N67RXBGKTT3QBI7ANCNFSM4KHEQ4PQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

tolot27 commented 3 years ago

It would be good to know who is using an older version. There are some changes in authentication with the InPen I got. If I adapt xDrip accordingly, old InPens will not work any longer. But it is very likely that they dont't work already because of empty battery.

ahanuban commented 3 years ago

Good point, although it's possible someone has replaced their battery and still uses it.

Maybe make a tab or checkbox for the new inpen authentication so the old one is not disabled entirely?

On Sat, Aug 7, 2021, 18:05 Mathias Walter @.***> wrote:

It would be good to know who is using an older version. There are some changes in authentication with the InPen I got. If I adapt xDrip accordingly, old InPens will not work any longer. But it is very likely that they dont't work already because of empty battery.

tolot27 commented 3 years ago

Good point, although it's possible someone has replaced their battery and still uses it.

Is there any guide to replace the battery? I'll not touch the only InPen I got send until it runs out of battery.

Maybe make a tab or checkbox for the new inpen authentication so the old one is not disabled entirely?

That's what I did. But it is much better to know how we can distinguish old InPens from newer ones. Does anybody has an old one which is expired?

ahanuban commented 3 years ago

I have not seen a guide, although when mine runs out I will probably disassemble and see if it is doable.

Unfortunately I do not have an old one but perhaps the easiest way to find one would be to post in the xDrip+ Facebook group.

On Sun, Aug 8, 2021, 05:33 Mathias Walter @.***> wrote:

Good point, although it's possible someone has replaced their battery and still uses it.

Is there any guide to replace the battery? I'll not touch the only InPen I got send until it runs out of battery.

Maybe make a tab or checkbox for the new inpen authentication so the old one is not disabled entirely?

That's what I did. But it is much better to know how we can distinguish old InPens from newer ones. Does anybody has an old one which is expired?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/1176#issuecomment-894769907, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ3YQOAWPVSP3IXX4UEYYDT3ZFPFANCNFSM4KHEQ4PQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

telabu commented 3 years ago

I took one apart a few months ago, and while I was technically able to power it on and attempt a pairing dose, the battery is physically inside the gear mechanism that does dosing and is glued in. There are minimum 3 glued or chemically welded plastic parts that are integral to the function of the pen that must be cut into to access the battery. I doubt there are many if any of these in use with a replaced battery. I replace batteries in G5/G6 transmitters and have done motor swaps and ribbon cable fixes on insulin pumps, and these pens are just not meant to be taken apart imo.

I have some limited internal photos if they would be of any use: 20210413_202738 20210413_200747 20210413_200902 20210413_200919

gth001 commented 3 years ago

Photos are on the post. Note that US customers get a discount to bring out of pocket to $35. Commercially insured and uninsured. So it's a lot less than the $599.99 dexcom transmitter battery situation. https://www.companionmedical.com/user-access.

ahanuban commented 3 years ago

Thanks. Yes, looks like the battery is very well buried in there.

Navid200 commented 3 years ago

@telabu Fantastic post! Thanks so much for sharing.

ahanuban commented 3 years ago

@tolot27 any update on your progress? Not impatient, just curious how far along things are. Really appreciate you working on this!

fclingen commented 2 years ago

Hey @tolot27 , do you have a branch/notes from working on this issue? I really need to get it working myself, I was wanting to use inPen in conjunction with AndroidAPS now that Omnipod DASH is tentatively supported. If I have to I'll dive in and work on it from square one, but since I haven't really done anything with XDrip yet (I'm an experienced Java developer in a geographic area where inPen is sold) I wouldn't mind having more of a jump-off point.

ahanuban commented 2 years ago

Just wondering if there has been any progress as it has been almost a year since the last update. Would really love to get this working and appreciate any work you are doing on this @tolot27 and @fclingen. Thanks!

halprewitt commented 5 months ago

Was there a fix to allow the entry of the dosage that permits the pairing? The version I have still does not work. Also, it is helpful to add an option to retry using an already paired pen without doing a reset/repair. If reset is chosen, it keeps wanting to repair even if the pen is shown in the Bluetooth.

halprewitt commented 5 months ago

@jamorham Was there a fix to allow the entry of the dosage that permits the pairing? The version I have still does not work. Also, it is helpful to add an option to retry using an already paired pen without doing a reset/repair. If reset is chosen, it keeps wanting to repair even if the pen is shown in the Bluetooth.

Lopicl commented 2 months ago

any news on this issue? i can offer testing if needed