JoernL / LimiTTer

Transmitter for the Freestyle Libre FGM system
205 stars 103 forks source link

LIMITTER #1

Open pedrojrr opened 8 years ago

pedrojrr commented 8 years ago

Hola mi nombre es Pedro y soy padre de un niño Diabetico que usa el freestyle libre. Primero quisiera darle mi enhorabuena por el desarrollo del proyecto ya que llevábamos tiempo buscando algo parecido. Estoy deseando que comparta su diseño para poder probarlo en mi hijo sobre todo por la utilidad de guardián nocturno. Gracias por su tiempo y dedicación estoy convencido que seremos muchos los padres que se lo agradeceremos. Espero tener pronto noticias suyas

JoernL commented 8 years ago

Of course you have to hold down the sensor with your other hand while taking off the limitter ;)

Try rebooting your phone. There is no need to stop/start a new sensor session in xDrip for a new activated sensor. You only have to take off the limitter from the expired one and set it near the new activated one and make a new calibration. That's all.

libxmike commented 8 years ago

thx for the explanation with no need to stop/start.

After reboot same, no readings.

JoernL commented 8 years ago

The collection method in xDrip settings must be set to LimiTTer.

libxmike commented 8 years ago

it is, did not change anything there. I had same problem last time I changed the sensor. Does the xDrip recognise the LimiTTer just by name? so if I have 2 LimiTTer's I can just swap w/o anything?

libxmike commented 8 years ago

problem solved, it was an "schuss ins Knie" with two magnets :) Did some debugging with serial console, 5 min try and error with my 2nd LimiTTer and found the bugger, "no sensor in range". The two magnets blocked the signal, so 2 15mm magnets are definitely too big, I edited my imgur album and deleted the pics with two magnets on the sensor. With one magnet on the sensor the LimiTTer don't stick as good as with two but I hope it will hold. For that configuration the 2nd magnet below the sensor is necessary, w/o it won't stick.

Biggest pain was removing the magnets from the sensor, magnets "glued" with double side tape to sensor, covered with Fixomull and Optsite Flexifix :)

libxmike commented 8 years ago

@JoernL do you know how I can edit the data in xDrip? I got a spike with 8900mg/dl so for all new data received I see just flat line now.

JoernL commented 8 years ago

@libxmike why did you get a value of 8900? You can stop and start a new sensor session.

libxmike commented 8 years ago

I don't know why, no idea, the 8900 is from today 8am, xDrip should filter this kind of "noise" out. I did stop and start a new sensor session but nothing changed,

JoernL commented 8 years ago

@libxmike , take a look in the Glucose_Reading() function of your uploaded code. Did you modified this? int bitmask = 0x0FFF; return ((val & bitmask) / 8.5);

libxmike commented 8 years ago

@JoernL I use stock code, no modification. I have to find the file where the data is stored in xDrip on Android to delete the 8900 data. in MongoDB I don't have the 8900

libxmike commented 8 years ago

@JoernL Just checked my code directory and I had the old ino code with: int bitmask = 0x0FFF; return (((val & bit mask)-181)/7.26);

updated my firmware but still have to somhow edit that 8900 data in xDrip out

JoernL commented 8 years ago

What is the output of xDrips main screen now?

libxmike commented 8 years ago

same, flat line http://imgur.com/KGdFY05 http://imgur.com/oDeCPPJ

JoernL commented 8 years ago

Ok, set the high value level in settings -> "General Settings" again to 200.

libxmike commented 8 years ago

@JoernL it was set to 150, I set it again, no change.

libxmike commented 8 years ago

found the problem, Display filtered plot was checked, unchecked and it shows OK. But it should be the other way around. not OK - http://imgur.com/MMjGs24 OK - http://imgur.com/vL8UXh7

JoernL commented 8 years ago

Ah, yes ... okay ;)

dcpamp commented 8 years ago

I managed to get all parts together tonight and LimiTTer shows up (and lets me connect) in the bluetooth connections on my phone but I can't find it in xDrip. I'm using the xDrip version from here. What can I have done wrong?

JoernL commented 8 years ago

@dcpamp , do not make the bt connection via android settings. Only "Scan for BT" via xDrip is necessary. You will see the LimiTTer every 4 minutes from there.

libxmike commented 8 years ago

if you don't want to wait 4 min or missed the BT connection just turn off and on your LimiTTer (only possible if you have a switch : ). I'm migration today to Xperia Z5C so did it few times after I found there is Import/Export DB function in xDrip

dcpamp commented 8 years ago

Thanks for the quick reply @JoernL but my problem still remain. Using the Android 5 version (Sony Z5C too). I was worried it was an issue with the HM-11 but since it shows up on the bluetooth list on my phone it seems like it works. Maybe I'm missing some kind of setting in xDrip (I've told it to look for LimiTTer in it).

dcpamp commented 8 years ago

Got it connected now, used this solution:

"I had to go into the xDrip application permission settings (Settings -> Apps -> xDrip -> Permissions) and turn on Location manually before any devices would show up when running the Scan for BT from xDrip."

holmberg81 commented 8 years ago

hey have problems BM19 read once at boot but then will not start more. What can be the reason?

Martin

Den 15 juli 2016 10:44 em skrev "dcpamp" notifications@github.com:

Got it connected now, used this solution:

"I had to go into the xDrip application permission settings (Settings -> Apps -> xDrip -> Permissions) and turn on Location manually before any devices would show up when running the Scan for BT from xDrip."

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JoernL/LimiTTer/issues/1#issuecomment-233065143, or mute the thread https://github.com/notifications/unsubscribe-auth/ARlaJ2a_TyskhnwVa1I_odwq-O6umrQ2ks5qV_EkgaJpZM4II3zZ .

libxmike commented 8 years ago

@JoernL did you ever have "Unfortunately, xdrip has stopped" error message? I have on both, Nexus 5 and Xperia 5ZC, both MM. Only reinstall helped, first time it happened when I imported settings on Z5C from Nexus. After reinstall works, then paired with LimiTTer works for about 1h and same again, "Unfortunately, xdrip has stopped", every time I start it, reboot did nothing. Also Import/Export does not work anymore. xDrip can be started only after App->xDrip-> Clear Data but then again, DB/Settings Import is not working

libxmike commented 8 years ago

@JoernL after my problem today I did some research and found xDrip+ with LimiTTer support, it has cool features, better as original. Did you coded the xDrip fork here?

libxmike commented 8 years ago

btw, with xDrip+ you can use one android device as master for LimiTTer and 2nd (or 3rd, etc) as slave/receiver

JoernL commented 8 years ago

@libxmike , yep xdrip+ has great features and runs well with LimiTTer. Maybe i will link it as the default app.

libxmike commented 8 years ago

@JoernL you should, I'm using it just for 2 days but I love it, "Insulin on Board" graph, forward prediction and Carbohydrate Absorption in my case is spot on, this is the best xDrip fork for now. ditch the one you linked and make + default. and Instant data synchronisation between phones and tablets works gr8.

holmberg81 commented 8 years ago

Look on paps on facebook can conect whit limitter.

Den 22 juli 2016 4:03 em skrev "libxmike" notifications@github.com:

@JoernL https://github.com/JoernL you should, I'm using it just for 2 days but I love it, "Insulin on Board" graph, forward prediction and Carbohydrate Absorption in my case is spot on, this is the best fork for now. ditch the one you linked and make + default.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JoernL/LimiTTer/issues/1#issuecomment-234551520, or mute the thread https://github.com/notifications/unsubscribe-auth/ARlaJ7Dqmyo0fzGa3dbNBIQEF6yU4pDlks5qYMz8gaJpZM4II3zZ .

libxmike commented 8 years ago

@holmberg81 sorry, don't understand what you mean, please explain

holmberg81 commented 8 years ago

https://m.facebook.com/paps4t1d/

want to conect this to limitter and my omnypod. :-)

Den 22 juli 2016 5:05 em skrev "libxmike" notifications@github.com:

@holmberg81 https://github.com/holmberg81 sorry, don't understand what you mean, please explain

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JoernL/LimiTTer/issues/1#issuecomment-234568935, or mute the thread https://github.com/notifications/unsubscribe-auth/ARlaJ-4yOrsooC2TdHP0PJ0aahchzjACks5qYNw0gaJpZM4II3zZ .

JoernL commented 8 years ago

So there must be a pdm button hack to change the basal rate. Can't find a picture of this.

libxmike commented 8 years ago

@holmberg81 wha.. WHA.. WHAT! I thought does not exist yet for omnipod, I have omnipod myself. I just have http://www.openomni.org/blog/ on my radar. the Paps PodHIP will be OpenSouce, PodHIC is the part that communicates with the PDM

libxmike commented 8 years ago

@JoernL the pictures are NightScout

ramjar commented 8 years ago

Shouldn't it be possible to use NFC ring as example https://m.aliexpress.com/item/32690683840.html

To read and send data to phone/android. That would make the reader much smaller than the picture I have seen by just stick the ring on the libre sensor.

I love this project and I know that this would make the life of a diabetics much easier.

JoernL commented 8 years ago

No, most readers can only read nfc iso 14443. The sensor uses nfc iso 15693.

libxmike commented 8 years ago

excellent! thx for the battery status, finally real percentage in xDrip+ :)

libxmike commented 8 years ago

@JoernL is it possible to increase the send power of BLE in the code? can't find anything in there.

JoernL commented 8 years ago

@libxmike you can set the module power with an HM-10 via "AT+POWE3" command for maximum.

libxmike commented 8 years ago

@JoernL thx, did the change, will see how the battery will do with this change, but I'm not sure if this is the right place to put the AT+POWE3

ble_Serial.write("AT+NAME");
ble_Serial.write("LimiTTer");
delay(100);
ble_Serial.write("AT+RESET");
delay(500);
ble_Serial.write("AT+POWE3"); //BT send power increased to +6db , default is AT+POWE2 = 0db
delay(500);    
SPI.begin();
JoernL commented 8 years ago

@libxmike , any improvement?

libxmike commented 8 years ago

@JoernL not as I expected, it is hard to say but I don't have signal drop while running which may or may not be BT related, in closed rooms no problem but more or less same distance.

Please check my last post and say if that was the right place to include the AT+POWE3

JoernL commented 8 years ago

Place it above the RESET.

libxmike commented 8 years ago

moved above RESET and didn't noticed any difference. I'll go back to default.

1ster commented 8 years ago

I've just built my LimiTTer but it does not seen to work. After switching on, I managed to see a "HMSoft" BT device (but shouldn't it be named "LimiTTer"?), and I can see the NFC reader's LED on for a while, then switching off. I'm using a HM-17. Any idea what's wrong? Thanks.

libxmike commented 8 years ago

try with: ble_Serial.write("AT+NAME"); ble_Serial.write("LimiTTer");

1ster commented 8 years ago

Didn't make a difference... still seeing HMSoft. I wonder if the software communicates properly with the HM-17?

JoernL commented 8 years ago

@1ster , the name should be changed after you start the Arduino till it goes to sleep and then pushing the reset button. If it is still HMSoft, check the following: start the arduino and take a look at the 3 times flashing red led. Is it flashing for a second, or for 1/2 one? If it is 1/2 one, you have bought the wrong 5V 16Mhz Arduino.

1ster commented 8 years ago

I would say that was a second (an I am pretty sure I ordered the right one). xDrip+ also always says "Not Connected"

JoernL commented 8 years ago

Then it must be a wiring or soldering problem.