These are chat archives for nightscout/intend-to-bolus

28th
Sep 2015
diabeticgonewild
@diabeticgonewild
Sep 28 2015 00:00
The WiFi can draw more power than the power source can supply, just FYI, if you didn't know that, on the Raspberry Pi 2s.
Like honestly, updating the firmware may be useful in this case too.
sudo apt-get install rpi-update
Rachel Sandlain
@audiefile
Sep 28 2015 00:02
@bewest I'm open to all suggestions but not sure how to start
@diabeticgonewild I've tried that. Multiple times. It's up to date. I thought that might have been it and tried it when you first suggested it but it didn't help since everything is already current. There aren't any updates to install
Ben West
@bewest
Sep 28 2015 00:04
looking through man udevadm
diabeticgonewild
@diabeticgonewild
Sep 28 2015 00:04
oh, sorry and thanks for telling me
Rachel Sandlain
@audiefile
Sep 28 2015 00:05
:+1:
diabeticgonewild
@diabeticgonewild
Sep 28 2015 00:06
Power allocation is Raspberry Pi 2 can be modified to USB ports (worth a try): http://hackaday.com/2015/04/06/more-power-for-raspberry-pi-usb-ports/
You may want to back up an image of your SD card before trying that though.
Obviously you need a 2.1 Amp USB power supply. Always.
I really think this should fix the problem. Also power management on Edimax dongle should be disabled.
Ben West
@bewest
Sep 28 2015 00:08
@audiefile I just pushed some updates to openaps-js on my branch
wip/bewest/separate-concerns
diabeticgonewild
@diabeticgonewild
Sep 28 2015 00:09
This will decrease battery life. But, at least for the CareLink stick, you need power to be "the same as a standard computer" in order to guarantee reliable or consistent operation. But, this really sounds like the source of the problem.
If you used the GPIO pins instead of the USB ports on the Pi, it would guaranteed solve the problem.
But it adds extra bulk.
Ben West
@bewest
Sep 28 2015 00:34
bewest@hither:~/Documents/foo$ mm-stick 
Usage: /usr/local/bin/mm-stick [{scan,diagnose,help},...]

    scan      - Print the local location of a plugged in stick.
    diagnose  - Run python -m decocare.stick $(python -m decocare.scan)
    insert    - Insert usbserial kernel module.
    remove    - Remove usbserial kernel module.
    udev-info - Print udev information about the stick.
    list-usb  - List usb information about the stick.
    reset-usb - Reset entire usb stack. WARNING, be careful.
    help      - This message.
bewest@hither:~/Documents/foo$
diabeticgonewild
@diabeticgonewild
Sep 28 2015 00:37
There's a new minimalistic case for raspberry pi: Pibow Coupe
Crap doesn't fit Raspberry Pi 2 without mods! :(
diabeticgonewild
@diabeticgonewild
Sep 28 2015 00:52
Has anyone tried the power hack yet?
Scott Leibrand
@scottleibrand
Sep 28 2015 00:57
I think I'm the only one who's managed to catch the issue and troubleshoot while it's happening. That sounds like a preventative thing, so much harder to know if you've actually fixed the issue.
diabeticgonewild
@diabeticgonewild
Sep 28 2015 00:58
It has to be preventative. I can't really troubleshoot it fully cause I don't have OpenAPS system running completely. I don't care whether or not I fixed the issue...I just want it fixed. Sounds kind of serious.
I might try to do a fresh install on both Mac and PC tonight just to modify the docs a little bit.
Honestly I may just use a Arduino with a single USB port or a BeagleBone Black with a powered USB hub if this continues to be an issue.
Scott Leibrand
@scottleibrand
Sep 28 2015 01:07
If it ends up affecting you, troubleshoot it when it does. More likely one of us will come up with a fix by then. Rachel is perfectly capable of troubleshooting and asking for help, like I did to come up with my original fix.
diabeticgonewild
@diabeticgonewild
Sep 28 2015 01:07
Cool!
Lori
@LoriLori
Sep 28 2015 01:18
so much trouble with Carelink, why not a mmcommander with better range as bustavo mentioned
Scott Leibrand
@scottleibrand
Sep 28 2015 01:21
Because no one has made it work yet. :-)
diabeticgonewild
@diabeticgonewild
Sep 28 2015 01:21
Yeah, it takes a lot of work, plus debugging.
I found a development board that is less thick than the Raspberry Pi 2, but otherwise about the same size, with integrated WiFi (who knows at this point of time if the "chip" can be used to make an access point).... https://www.96boards.org/products/ce/dragonboard410c/
I'm about to eat dinner. Hence wasting time before getting serious about installing...
Scott Leibrand
@scottleibrand
Sep 28 2015 01:23
Most of the effort right now on Carelink alternatives is focusing on RileyLink.
Ben West
@bewest
Sep 28 2015 01:23
I'm trying to get my ble environment running as we speak
diabeticgonewild
@diabeticgonewild
Sep 28 2015 01:24
:D !
That board I linked has BLE too I think integrated...
The boards I am looking at are here: https://en.wikipedia.org/wiki/Comparison_of_single-board_computers (anything before 2015 is outdated...)
Ben West
@bewest
Sep 28 2015 01:26
right now my efforts are best focused on linux systems like rpi, edison, my laptop
diabeticgonewild
@diabeticgonewild
Sep 28 2015 01:27
I would agree. Just trying to give my mind a break. This power issue may never be resolved with the Raspberry Pi.
That's one of my fears.
Ben West
@bewest
Sep 28 2015 01:28
I don't think it's a power issue
the problem also happens on my laptop, which has no power issue
Ben West
@bewest
Sep 28 2015 01:36
oh boy oh boy
success:
r$ sudo gatttool -t random -I -b 00:07:80:39:4C:37
[00:07:80:39:4C:37][LE]> connect
Attempting to connect to 00:07:80:39:4C:37
Error: connect error: Transport endpoint is not connected (107)
[00:07:80:39:4C:37][LE]> status
Error: status: command not found
[00:07:80:39:4C:37][LE]> help
help                                           Show this help
exit                                           Exit interactive mode
quit                                           Exit interactive mode
connect         [address [address type]]       Connect to a remote device
disconnect                                     Disconnect from a remote device
primary         [UUID]                         Primary Service Discovery
included        [start hnd [end hnd]]          Find Included Services
characteristics [start hnd [end hnd [UUID]]]   Characteristics Discovery
char-desc       [start hnd] [end hnd]          Characteristics Descriptor Discovery
char-read-hnd   <handle>                       Characteristics Value/Descriptor Read by handle
char-read-uuid  <UUID> [start hnd] [end hnd]   Characteristics Value/Descriptor Read by UUID
char-write-req  <handle> <new value>           Characteristic Value Write (Write Request)
char-write-cmd  <handle> <new value>           Characteristic Value Write (No response)
sec-level       [low | medium | high]          Set security level. Default: low
mtu             <value>                        Exchange MTU for GATT/ATT
[00:07:80:39:4C:37][LE]> connect 00:07:80:39:4C:37
Attempting to connect to 00:07:80:39:4C:37
Connection successful
[00:07:80:39:4C:37][LE]> primary
attr handle: 0x0001, end grp handle: 0x0005 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x0006, end grp handle: 0x0008 uuid: 0000180f-0000-1000-8000-00805f9b34fb
attr handle: 0x0009, end grp handle: 0xffff uuid: d39f1890-17eb-11e4-8c21-0800200c9a66
[00:07:80:39:4C:37][LE]>
Scott Leibrand
@scottleibrand
Sep 28 2015 01:36
No idea what I'm reading. :-)
diabeticgonewild
@diabeticgonewild
Sep 28 2015 01:42
IDK but I think he connected, at a minimum with the Share?
Ben West
@bewest
Sep 28 2015 01:42
no, just connected with rileylink, finally
diabeticgonewild
@diabeticgonewild
Sep 28 2015 01:43
Cool!
Ben West
@bewest
Sep 28 2015 01:43
now I can starting working on decocare module for rileylnk
Dana Lewis
@danamlewis
Sep 28 2015 01:43
Woot !
diabeticgonewild
@diabeticgonewild
Sep 28 2015 02:08
About to start the Windows install...
Just ate comfort food and I have a food baby and I am sleepy :P
Ali Mazaheri
@amazaheri
Sep 28 2015 02:14
😊
Scott Leibrand
@scottleibrand
Sep 28 2015 02:14
I've come to expect good things when Ben starts working on tools, so I wholeheartedly support this progression of events. :-)
Ali Mazaheri
@amazaheri
Sep 28 2015 02:23
This message was deleted
diabeticgonewild
@diabeticgonewild
Sep 28 2015 02:23
Yeah indeed
Ali Mazaheri
@amazaheri
Sep 28 2015 02:23
second that
diabeticgonewild
@diabeticgonewild
Sep 28 2015 02:25
So anyone using the Edimax USB adapter as an access point I found out that the cut-and-paste hack that we have been using to make hostapd compatible with the drivers is just a hack and doesn't configure it to be an actual access point. Instead, if you are using this as an access point, these steps may be advisable to make it an actual access point. Making a shell script for this may be useful, and I am considering it.... http://www.digitalpeer.com/blog/raspberry-pi-wireless-access-point-with-usb-edimax-adapter
Scott Leibrand
@scottleibrand
Sep 28 2015 02:28
Would love to see someone put together a working and tested config that runs an AP on one wifi adapter and client on the other. I got tired of fiddling with it though myself.
diabeticgonewild
@diabeticgonewild
Sep 28 2015 02:29
Yeah, I think I can definitely do it. Give me a week or so to test it out. I don't think I will be that sick this week.
A lot of it is using the tools sed and awk for editing files within the shell script, I think/believe...
Scott Leibrand
@scottleibrand
Sep 28 2015 02:32
For interactive editing you should use a proper editor. Don't make it hard on yourself.
diabeticgonewild
@diabeticgonewild
Sep 28 2015 02:32
OK as of 8/22/15 Edimax does support Access Point Mode officially via GitHub ... original link:http://elinux.org/RPI-Wireless-Hotspot (ctrl+f Edimax) See: https://github.com/lostincynicism/hostapd-rtl8188
What editor should I use? nano or vim?
So I do need to use that stuff in See:
Ben West
@bewest
Sep 28 2015 02:39
nano has the nice property that it shows all the keyboard short cuts on the screen
diabeticgonewild
@diabeticgonewild
Sep 28 2015 02:39
K
Ben West
@bewest
Sep 28 2015 02:40
vim has the nice property that once you learn it, it's extremely fast, but it can be a bit of a curve to get used to the difference between insert vs command mode
diabeticgonewild
@diabeticgonewild
Sep 28 2015 02:40
yeah not going to use vim
This message was deleted
This message was deleted
Nevermind. Always trying to find something better...
Dana Lewis
@danamlewis
Sep 28 2015 03:00
+1 for 'vim', but exposed to nano during working with docs and think it's nice for those new to command line
Peter Miller
@ochenmiller
Sep 28 2015 03:03
Thing I like about vi/vim is that it's native on pretty much all unix systems. That said, I've been using textwrangler on my mac, which can push to the RPi via sftp.
diabeticgonewild
@diabeticgonewild
Sep 28 2015 03:07
Ok will any of you oppose to me recommending a software that is free, not open source, but works better for editing Ext4 partitions in windows? It's this: https://www.paragon-software.com/home/extfs-windows/ The alternative is Ext2FS and it's just not as nice. It's actually kind of ghetto and can corrupt the disk.
You do have to register to use it....
diabeticgonewild
@diabeticgonewild
Sep 28 2015 03:26
You know what would be cool? Configure the Raspberry Pi so that it can do both VNC and SSH... SSHing for verifying OpenAPS is currently working...VNC (plus configurations) for using things like @loudnate 's tools without a mobile connection.
But yeah, removing boot messages from my Pi :P
John Males
@johnmales
Sep 28 2015 03:36
@bewest thats great with the rileylink :)
diabeticgonewild
@diabeticgonewild
Sep 28 2015 04:38
I need to go to bed soon. Getting exhausted. But I totally realized something that could speed up and improve the install directions.... installing copy/paste features so people can copy and paste instead of typing in stuff.... sudo apt-get install xclip makes that possible...
@audiefile sudo apt-get install rpi-updateto my discovery right now does not update firmware. You have to do sudo rpi-update to do so...
diabeticgonewild
@diabeticgonewild
Sep 28 2015 06:06
Has anyone considered integrating your OpenAPS system with a heart rate monitor, particularly the Polar straps? There is an expansion board that can be used very nicely with the Pi with a lot of user-friendly features. Device: https://www.sparkfun.com/products/8661 Guide: http://danjuliodesigns.com/sparkfun/hrmi_assets/hrmi.pdf
I mean, Rate of Perceived Exertion (RPE) correlates well to heart rate zones, and Roman Hovorka published a paper on the basics of BG correlation to physical activity. It's very basic calculus so it would be easy to program, even in JavaScript. I sent it to a couple of people.
The expansion board has some really nice stuff developed for it.
diabeticgonewild
@diabeticgonewild
Sep 28 2015 06:14
You may want to use an Arduino in tandem with a Raspberry Pi. It wouldn't add too much bulk. I also have a couple of books that teach you how to make custom cases for whatever your project is using laser cutting via local hackspaces. Remember that I have a "collection" of books, due to having access to a digital library due to having a print-related disability.
But definitely don't need Arduino as you can communicate through USB interface.
Chris Oattes
@cjo20
Sep 28 2015 14:42
Mobile pi seems to be working :) I need to change my cron to run every 3 minutes I think.
Dana Lewis
@danamlewis
Sep 28 2015 14:42
:)
Just got an email that Medtronic connect is now shipping, in case anyone had ordered one to play around with.
Chris Oattes
@cjo20
Sep 28 2015 14:44
Also got a new a1c while I was in London. 7.1%.
diabeticgonewild
@diabeticgonewild
Sep 28 2015 14:48
Cool! :) Yeah my last one was a 7.0 and I wasn't wearing my CGM much. My diabetes is "complicated" by things that are virtually indistinguishable from "diabetes related autonomic neuropathy"—which my problems were initially blamed on but I have a very rare autoimmune disease, which made the diagnosis elusive.
Autonomic neuropathy sucks. I juggle around hypoglycemia awareness, absorption problems due to severe gastroparesis and hardcore diarrhea, which affects insulin dosing, etc. My diabetes is hard to manage in general.
Chris Oattes
@cjo20
Sep 28 2015 14:49
2 years ago it was >10%
diabeticgonewild
@diabeticgonewild
Sep 28 2015 14:50
I mean, if I end up with diabetes complications, even though I don't have them right now, it's not the end of the world, given what I have went through.
Glad it has improved for you. Yeah, being diagnosed with "diabetes complications" and having to go to school full time to keep health insurance plus work part time 15-20 hours a week plus deal with my medical problems, meant that my control went down the toilet for a couple of years.
I can't really look back. I actually don't regret it cause I did my best given everything I was going through. Plus it was depressing. For the past few years, due to having autoimmune autonomic ganglionopathy/neuropathy formally diagnosed and how hard it has been to deal with, I only really take things one day at a time, so diabetes care is not as high up on the priority list as my neurologist wants it. She wants my A1c at a 6.0 or lower. But endocrine has been pleased with me...
Dana Lewis
@danamlewis
Sep 28 2015 14:58
@cjo20 Awesome!
diabeticgonewild
@diabeticgonewild
Sep 28 2015 14:58
But yeah need to put a sensor in and finish up configuring Nightscout. My site: diabeticgonewild.heroku.com
But yeah that is awesome. I agree with Dana! :smile: :+1:
diabeticgonewild
@diabeticgonewild
Sep 28 2015 15:11
Honestly, I am very concerned about how OpenAPS is going to work for me, given carbs on board, etc. Obviously OpenAPS is higher on my priority list than the Roman Hovorka stuff I had been working on earlier this year, as it's more obtainable. Roman Hovorka's work is very, very complicated, but stepping away from it for about 4-5 months was actually a good idea, cause I do get carried away and it let me reprocess information gradually and brainstorm new ideas. OpenAPS is a movement and it's an altruistic kind of thing so it's much more feel good than "mission impossible"....hahahaha!
But hearing about other people's implementations of OpenAPS has relieved a lot of my doubts that I initially had, which were extreme. But I do have "diabetes gone wild"....and it sucks!
Sorry I need to shut up and work!
Jason Calabrese
@jasoncalabrese
Sep 28 2015 15:57
wow, very exciting @bewest
Eric
@ecc1
Sep 28 2015 17:33
Just saw this: http://www.kosagi.com/w/index.php?title=Orchard_Main_Page Might make a nice APS platform for MM + G5
Not sure how to actually buy one yet, though
diabeticgonewild
@diabeticgonewild
Sep 28 2015 17:35
Looks nice! I would be patient. I am always looking to make things better, but I wouldn't make any quick moves until BLE is supported on Linux. There will be configuration issues in Linux and the raspberry pi is well supported...