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

7th
Jan 2017
John Benjamin
@Bender1061
Jan 07 2017 00:10
Does anyone know what calls the report monitor/glucose-unzoned.json ? I can see anything that calls it or makes it
Aaron Michelson
@Aaybob
Jan 07 2017 00:11
power off, power on to the edison/explorer then ran oref0-setup again using dev branch and it ran
John Benjamin
@Bender1061
Jan 07 2017 00:14
I have pancreabble working, and working on the integration into oref0-setup, but sometimes that report is zoned, and other time is is unzoned, so I'm trying to figure out what's calling it. Cause it causes an issue with the format urchin data. if it's zoned
and does anyone see an issue with adding jq to the edison?
Joe
@t1djoe
Jan 07 2017 00:18
@Sgoldberg89 Reflashng right now. :(
Sgoldberg89
@Sgoldberg89
Jan 07 2017 00:18
@t1djoe that's what I ended up doing too
Seems to be working again
Aaron Michelson
@Aaybob
Jan 07 2017 00:19
@Sgoldberg89 @t1djoe you're both on RPi using CareLink?
Joe
@t1djoe
Jan 07 2017 00:19
@Aaybob Edison/Sparkfun Base with TI Stick
Planning to setup a backup RPi/Carelink this weekend.
Aaron Michelson
@Aaybob
Jan 07 2017 00:27
I reflashed and I'm back to looping with ble tether. Next to turn RPi off and make it real. I've got three loops with return of "less than five minutes since last good data".
glenrob1940
@glenrob1940
Jan 07 2017 00:37
@Aaybob I just reflashed on an edison/explorer. Still getting some loops where it complains 'Could not get subg_rfspy state or version' but recovers and seems to be running okay.
Aaron Michelson
@Aaybob
Jan 07 2017 00:45
@glenrob1940 how hot is edison?
explorer is getting cgm readings from iPhone. I hate to because cables are so flakey but I'll need to hard wire cgm. but that can be later when I start my new job out of cellular range.
Could not get subg_rfspy state or version. Have you got the right port/device and radio_type?
mmtune: "916.636", 5, -36 Listen same here.
John Benjamin
@Bender1061
Jan 07 2017 00:57

So I have a bit of an issue When I run the upload for the urchin in pancreabble It works but I always get a return of

root@Hal9000:~/johnopenaps# openaps use pbbl send_urchin_data upload/urchin-data.json
[ 4845.733426] BUG: sleeping function called from invalid context at kernel/mutex.c:95
[ 4845.733508] in_atomic(): 1, irqs_disabled(): 0, pid: 69, name: krfcommd
{
  "received": true

it works but I don't like how it just writes it back to the terminal, so if I have it running with cron this shows up everytime it uploads

Aaron Michelson
@Aaybob
Jan 07 2017 01:04
Tonight I take my looping edison explorer with me dancing. Thank you all for your patience with my struggles. Let me know if there's anything I can do to help. :sparkles: Now I need a box :shipit:
Dana Lewis
@danamlewis
Jan 07 2017 01:07
:)
Russell Gardner
@RussGG
Jan 07 2017 01:47
I had to put setting up my explorer board on the back burner for a little. I am going to get back at it. I can SSH in when I have a cable pluged in but not through wifi like I could with my PI. Should I be able to do that? I know the edison is accessing the wifi. I can ping Google. That was nice to be able to watch the loop through wifi.
jaylagorio
@jaylagorio
Jan 07 2017 02:01
@scottleibrand http://imgur.com/a/SX1CQ
Parchment paper not in place so the plastic is there for the time being, but once the second antenna comes in for the Wi-Fi/BT interface on the Edison that part will be done.
Aaron Michelson
@Aaybob
Jan 07 2017 02:43
I put Eddys'son in the cap of a flonase bottle. I remember the RPi and uploader phone and how I was proud I could hide it on my person in a large fanny pack. I could hide Eddys'son in my beard!
Russell Gardner
@RussGG
Jan 07 2017 02:43
My Explorer is looping!!! Wahoo!!!!
Aaron Michelson
@Aaybob
Jan 07 2017 02:44
@RussGG excited for you :clap:
Joe
@t1djoe
Jan 07 2017 02:48
@RussGG :clap:
JaysonEwer
@JaysonEwer
Jan 07 2017 03:01
@jaylagorio I can't really see where you have the antenna pcb portion located. Is that INSIDE the can? or outside? Thanks!
Scott Leibrand
@scottleibrand
Jan 07 2017 03:09
And is that just a wire whip antenna (length of wire cut based on the wavelength)?
jaylagorio
@jaylagorio
Jan 07 2017 03:41
@jaysonewer @scottleibrand Sorry that part wasn't clear. The antenna is from Adafruit (https://www.adafruit.com/product/2308) and is a flat PCB that's stuck to the outside. If you look at the bottom of the second picture you can see the solder joint visible where the wire meets the PCB. I've added a third picture that should be more clear, the wire goes through a cut in the aluminum I made. I'll add another antenna symmetrical to this one for Wi-Fi and Bluetooth.
JaysonEwer
@JaysonEwer
Jan 07 2017 03:50
@jaylagorio cool. Is the Altoids can something you really liked the form factor on, or was there another reason you wanted to use the metal box? I'm having very success with the plastic Radio Shack project box. I don't feel like I need an external antenna and its is quite strong. Its a bit too deep, so I have added some bubble wrap so the Explorer and battery don't bounce around inside of it. :-D Have you determined how much of a difference the external antenna makes under normal circumstances?
good success, not very success.
Congrats @RussGG
jaylagorio
@jaylagorio
Jan 07 2017 03:55
@JaysonEwer Before trying the tin I was able to interrogate the pump from across a room without any problem at all, I was pretty impressed. Maybe the CareLink stick is just that bad, but the Explorer board by itself is great. I like the tin's form factor, as you mentioned it isn't as thick as a project box and I like that it's sturdy. My ultimate goal once we can figure out ShareBLE with a G4 receiver is to have just the tin and the receiver in my pants pockets without needing wires or USB batteries. With pants pockets being the goal I didn't want to be concerned about cracking plastic or breaking the Edison. I also added the M2 nuts as supports as someone here described.
As far as I know ShareBLE + G4 receiver on an Edison hasn't been done yet, so that's my white whale at the moment. I think I have everything else working as long as the G4 is connected via USB OTG.
I've been able to solve this on Windows but that doesn't help me here. Fact is Linux isn't my normal dev environment so I'm doing a lot of hamfisted prodding of things that probably aren't what I need to be looking at.
Rob Kresha
@rkresha
Jan 07 2017 05:19
@jaylagorio "ShareBLE + G4 receiver on an Edison hasn't been done yet" It's running on my rig :+1:
jmcrawford
@jmcrawford
Jan 07 2017 05:50
@Aaybob If you've got the BLE tethering going, any chance we can convince you to update the doc and PR?
Tim Street
@tim2000s
Jan 07 2017 12:43
Are there any gotchas with Edison and iPhone personal hotspot? I've found that it appears to connect to the iPhone, but there's no device registered on the network when I scan it. WPA supplicant has the correct details in it. All rather odd.
John Benjamin
@Bender1061
Jan 07 2017 13:03

So I've got an idea and I'll look at it tonight, as today I'm going to be busy with the First Robotics game reveal today. But when my pump look hangs, to the point where I've gotten pretty quick at just reseating the battery on my pump (which seems to get things running again) what I'm seeing is

Starting pump-loop at Sat Jan 7 00:22:05 EST 2017:
Radio ok, Listening: .No pump comms detected from other rigs
cgm://JSON/iter_glucose_hours/monitor/cgm-mm-glucosedirty.json
tz://JSON/rezone/monitor/glucose.json
reporting monitor/glucose.json
Old pumphistory:
Error, retrying
Starting pump-loop at Sat Jan 7 00:23:47 EST 2017:
Radio ok, Listening: .No pump comms detected from other rigs
cgm://JSON/iter_glucose_hours/monitor/cgm-mm-glucosedirty.json
tz://JSON/rezone/monitor/glucose.json
reporting monitor/glucose.json
Old pumphistory:
Error, retrying
Starting pump-loop at Sat Jan 7 00:25:29 EST 2017:
Radio ok, Listening: .No pump comms detected from other rigs
cgm://JSON/iter_glucose_hours/monitor/cgm-mm-glucosedirty.json
tz://JSON/rezone/monitor/glucose.json
reporting monitor/glucose.json
Old pumphistory:
Error, retrying
Starting pump-loop at Sat Jan 7 00:27:23 EST 2017:
Radio ok, Listening: .No pump comms detected from other rigs

it just keeps doing it, never runs an mmtune unless I take out the battery of the pump. I manually ran an mmtune and everything started working again. My guess would be that this might be related to the fact that the get-bg is in the pump-loop because we put it there because it we could have had an issue with two crons running pump comms. but it seems we get stuck in a loop if it needs an mmtune, but can't due to being stuck. And Yes I was getting the above for more than 30 mins. So that seems to be my issue, just need to figure out a way to break it. @scottleibrand what are your thoughts?

Tim Street
@tim2000s
Jan 07 2017 17:16
Having finally got the second edison flashed (thanks @oskarpearson ) Which of the set-up scripts install mmeowlink, which require me to do it and which accept the WW pump parameter? I've tried to run dev, which doesn't set up the pump, and autotune, which doesn't seem to have the bluetooth capability.
Scott Leibrand
@scottleibrand
Jan 07 2017 17:44
@Bender1061 sounds like we need to look at / modify your aliases' logic for when to run an mmtune. Can you paste the alias that normally does that if comms fail?
@tim2000s If autotune is missing anything from dev, just do a git merge dev on your local autotune branch.
I think there is still a bug though that prevents openaps from adding the WW line to pump.ini properly. Not sure if anyone affected has opened an issue on that or tried to figure out why.
@tim2000s for the .local DNS stuff you might try adding an avahi-daemon restart to cron. If that fixes it, we should add it to oref0-setup, as I've had that on most of my rigs for ages.
jaylagorio
@jaylagorio
Jan 07 2017 17:55
@rkresha That's amazing! I'd like to work out how so we can submit PRs if necessary, oref0-setup out of the box didn't work.
Tim Street
@tim2000s
Jan 07 2017 18:24
Merged the two branches @scottleibrand and got the following error in the setup:
Checking oref0 installation
└── oref0@0.3.5-dev  -> /root/src/oref0
Checking mmeowlink installation

module.js:340
    throw err;
          ^
Error: Cannot find module 'yargs'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/root/src/oref0/bin/oref0-get-profile.js:45:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
Could not run oref0-get-profile
Dana Lewis
@danamlewis
Jan 07 2017 18:40
@rkresha we haven’t heard anyone else get shareble working reliably, so +1 to hearing more as @jaylagorio said
Aaron Michelson
@Aaybob
Jan 07 2017 18:41
@jmcrawford I'd like for the steps to be repeatable....could others use it before PRing it. What if I put the steps here?
Aaron Michelson
@Aaybob
Jan 07 2017 18:52
@jaylagorio brilliant, A2 is a connector for that antenna. I'm getting reception with A1 all around the house I think. But not really tested.
Scott Leibrand
@scottleibrand
Jan 07 2017 18:57
@tim2000s not sure how you got this far without yargs, but should be able to just install it.
Or maybe that means you missed an earlier step in the docs, if this is a new rig.
Tim Street
@tim2000s
Jan 07 2017 19:15
I reinstalled it - no issues.
Still having some issues wiht the WW pump install though
Aaron Michelson
@Aaybob
Jan 07 2017 19:17

@jmcrawford This is what I do after a successful pairing. Pairing is a one time thing. iPhone: Settings>Bluetooth>My Devices has a device "BlueZ 5.37"
root:sudo killall bluetoothd
root:sudo /usr/local/bin/bluetoothd --experimental &
root:bluetoothctl

blue:agent on
blue:default-agent
blue:help (to see its working)
blue:devices (this returns my iPhone address and name)

Tim Street
@tim2000s
Jan 07 2017 19:17
think i'll add it manually
Aaron Michelson
@Aaybob
Jan 07 2017 19:21
@jmcrawford to pair its blue:pair,blue:trust,blue:connect
Rob Kresha
@rkresha
Jan 07 2017 19:25
@danamlewis @jaylagorio It is hit or miss on reliability so don't think it works flawlessly for me. Didn't do anything other than to make sure oref0-setup is pointed to the dev branch
Aaron Michelson
@Aaybob
Jan 07 2017 19:26
@jmcrawford continuing the steps blue:connect <address of iPhone>, it says failed so i go to iphone and tap "BlueZ 5.37, then it says connected and prompt is [iPhoneName]:
jaylagorio
@jaylagorio
Jan 07 2017 19:41
@Aaybob I haven't had a chance to test distances with the antenna, but that's great to head.
@rkresha I know I don't have the dev branch checked out, maybe that's something I'll try next. I've never gotten a successful response using the master branch, not even sporadically.
tazitoo
@tazitoo
Jan 07 2017 20:02
@jaylagorio , @rkresha , @danamlewis - I also routinely use openxshareble with my G4 share. Looking back at statistics from my logs in January, it looks like I have ~520 misses with cgm+bluetooth and ~780 misses with pump+mmeowlink+explorer. (Note: those misses can be any combination of software, user error and/or radio range).
jmcrawford
@jmcrawford
Jan 07 2017 20:27
@Aaybob When you are tethered, can you run 'ifconfig -a' on your edison. Does it create a network device which gets an address from your phone?
Aaron Michelson
@Aaybob
Jan 07 2017 20:28
@jmcrawford no.
Aaron Michelson
@Aaybob
Jan 07 2017 20:44
@jmcrawford I didn't see the whole question. so "no" is not the answer yet
Tim Street
@tim2000s
Jan 07 2017 20:48
Hmm. When I manually add the pump, I get a bunch of mmeowlink errors on the dev setup relating to rfg_spy. I must be missing something from the setup file.
Tim Street
@tim2000s
Jan 07 2017 20:56
Also, in the Dev branch, what is the xdrip setting for glucose data?
Aaron Michelson
@Aaybob
Jan 07 2017 20:57
@jmcrawford ifconfig -a lists: lo, usb0, wlan0. lo is Local Loopback, usb0 is Ethernet HWaddr....., wlan0 is Ethernet HWaddr..... not the iPhone address.
jmcrawford
@jmcrawford
Jan 07 2017 21:02
@tim2000s --cgm=xdrip
Aaron Michelson
@Aaybob
Jan 07 2017 21:07
@jmcrawford then when I am BLE tethered ifconfig -a has bnep0 listed before the other three, it is Ethernet HWaddr <not the iPhone address>
jmcrawford
@jmcrawford
Jan 07 2017 21:08
@Aaybob That's what I thought, which is what I'm not getting
Aaron Michelson
@Aaybob
Jan 07 2017 21:09
the iPhone will put a blue collor at top of screen and flash off and on "Personal Hotspot: 1 Connection"
Tim Street
@tim2000s
Jan 07 2017 21:10
@jmcrawford yup I got that. Is it linked to xDrip via android or the local xDrip stuff?
PieterGit
@PieterGit
Jan 07 2017 21:10
I managed to upgrade my uboot on the edison and am able to boot a 4.9.1 kernel. Does anybody how to create a /dev/spidev5.1 device on an edison? (it's not there)
Aaron Michelson
@Aaybob
Jan 07 2017 21:11
@jmcrawford what is your first error in the process?
jmcrawford
@jmcrawford
Jan 07 2017 21:11
@tim2000s Sorry, I haven't looked at it any further than that.
@Aaybob no error, just no connection
@PieterGit Devices normally get created during the boot process, no? May be able to create it manually, let me have a look
Aaron Michelson
@Aaybob
Jan 07 2017 21:13
@jmcrawford start over at this step and we'll step together.....no not neccesary.....
$ mkdir -p ~/src; cd ~/src && git clone -b dev git://github.com/openaps/oref0.git || (cd oref0 && git checkout dev && git pull)
@jmcrawford
jmcrawford
@jmcrawford
Jan 07 2017 21:16
o
ok
I'm there
Aaron Michelson
@Aaybob
Jan 07 2017 21:18
@jmcrawford do you have the bluetooth address? it is very close to the wi-fi address.
jmcrawford
@jmcrawford
Jan 07 2017 21:19
yes
Aaron Michelson
@Aaybob
Jan 07 2017 21:19
@jmcrawford if you add one to the wi-fi address do you get the bluetooth address?
jmcrawford
@jmcrawford
Jan 07 2017 21:20
yup
Aaron Michelson
@Aaybob
Jan 07 2017 21:20
Step two:
cd ~/src/oref0/ && npm run global-install
@jmcrawford paste the address in a document you can access to do copy/paste a few times
jmcrawford
@jmcrawford
Jan 07 2017 21:26
ok, next?
Aaron Michelson
@Aaybob
Jan 07 2017 21:27
@jmcrawford step 3:
cd && ~/src/oref0/bin/oref0-setup.sh --btmac=<address>
jmcrawford
@jmcrawford
Jan 07 2017 21:34
ok, done
Aaron Michelson
@Aaybob
Jan 07 2017 21:34
step 4: crontab -e , take out all the lines and save
jmcrawford
@jmcrawford
Jan 07 2017 21:35
I didn't install the cron jobs from oref0-setup.sh, so there's nothing there
Aaron Michelson
@Aaybob
Jan 07 2017 21:36
step 5: comment out the wifi networks your rig can now connect to in /etc/wpa_supplicant/wpa_supplicant.conf
jmcrawford
@jmcrawford
Jan 07 2017 21:37
done
Aaron Michelson
@Aaybob
Jan 07 2017 21:37
sudo killall bluetoothd
jmcrawford
@jmcrawford
Jan 07 2017 21:37
ok
Aaron Michelson
@Aaybob
Jan 07 2017 21:37
sudo /usr/local/bin/bluetoothd --experimental &
jmcrawford
@jmcrawford
Jan 07 2017 21:37
ok
Aaron Michelson
@Aaybob
Jan 07 2017 21:38
this will error but do it and we'll continue: sudo hciconfig hci0 name $HOSTNAME
jmcrawford
@jmcrawford
Jan 07 2017 21:38
what error are you expecting from this?
Aaron Michelson
@Aaybob
Jan 07 2017 21:38
Network is down can't change namne
jmcrawford
@jmcrawford
Jan 07 2017 21:39
Got that.
Aaron Michelson
@Aaybob
Jan 07 2017 21:39
bluetoothctl
new blue prompt?
jmcrawford
@jmcrawford
Jan 07 2017 21:40
yup
Aaron Michelson
@Aaybob
Jan 07 2017 21:40
help
see if its working
jmcrawford
@jmcrawford
Jan 07 2017 21:41
it's working
Aaron Michelson
@Aaybob
Jan 07 2017 21:41
agent on
jmcrawford
@jmcrawford
Jan 07 2017 21:42
ok
Aaron Michelson
@Aaybob
Jan 07 2017 21:42
default-agent
jmcrawford
@jmcrawford
Jan 07 2017 21:42
ok
Aaron Michelson
@Aaybob
Jan 07 2017 21:42
open up iphone to bluetooth
pair <address>
iPhone settings>bluetooth
[bluetooth]: pair AA:BB...
iphone: tap settings icon then tap bluetooth
when the command "pair" is issued from Eddys'son it will say not available so tap the new device in the bluetooth iphon window
jmcrawford
@jmcrawford
Jan 07 2017 21:47
getting an error on edison saying Device not available.
Aaron Michelson
@Aaybob
Jan 07 2017 21:47
good
now open iPhone settings: bluetooth
jmcrawford
@jmcrawford
Jan 07 2017 21:49
ok
Aaron Michelson
@Aaybob
Jan 07 2017 21:49
see a new device listed?
jmcrawford
@jmcrawford
Jan 07 2017 21:51
On the iphone, no. But the 'devices' command in bluetoothctl shows the phone
Aaron Michelson
@Aaybob
Jan 07 2017 21:52
[bluetooth]: connect <address>
[bluetooth]: trust <address>
this may have been needed first.
did connect go without it?
jmcrawford
@jmcrawford
Jan 07 2017 21:54
getting "device not available" from both connect and trust commands
Aaron Michelson
@Aaybob
Jan 07 2017 21:55
yes it can take a few tries
do pair, trust, and connect again
I don't know if this is neccessary but to get it to work I "forgot" all my bluetooth devices first
jmcrawford
@jmcrawford
Jan 07 2017 21:59
The phone shows the edison device, says connected. Trust command was successful, but connect fails with: Failed to connect: org.bluez.Error.Failed
Aaron Michelson
@Aaybob
Jan 07 2017 22:00
good
open iphone bluetooth and tap new device icon to connect
jmcrawford
@jmcrawford
Jan 07 2017 22:00
phone says it's connected
Aaron Michelson
@Aaybob
Jan 07 2017 22:01
it is connected, next
you will [bluetooth]: quit
jmcrawford
@jmcrawford
Jan 07 2017 22:01
ok
Aaron Michelson
@Aaybob
Jan 07 2017 22:01
root: reboot
now you need to connect the serial port
and window in
jmcrawford
@jmcrawford
Jan 07 2017 22:02
still booting up, been on serial conn the whole time
Aaron Michelson
@Aaybob
Jan 07 2017 22:03
good, just let it reboot, we'll wait three minutes for you to be tethered
jmcrawford
@jmcrawford
Jan 07 2017 22:03
at login prompt now
Aaron Michelson
@Aaybob
Jan 07 2017 22:04
I think we're just waiting now patiently for the iPhone to tell you it has a Hotspot connection
did the oref0-setup install cron?
jmcrawford
@jmcrawford
Jan 07 2017 22:05
no, I opted to not set up the jobs in cron
Aaron Michelson
@Aaybob
Jan 07 2017 22:06
do it again and let it put cron in, then reboot
cron will have a @bootup job scheduled
John Benjamin
@Bender1061
Jan 07 2017 22:10

@scottleibrand so I'm comparing the Pump-loop alias between normal and MDT. they are very similar the biggest difference I see is the random is a larger number

{
    "pump-loop": {
      "command": "! bash -c \"sleep $[ ( $RANDOM / 2048 ) ]s; until(echo Starting pump-loop at $(date): && openaps wait-for-silence && openaps get-bg && openaps refresh-old-pumphistory && openaps refresh-old-pumphistory-24h && openaps refresh-old-profile && openaps refresh-temp-and-enact && openaps refresh-pumphistory-and-enact && openaps refresh-profile && openaps refresh-pumphistory-24h && echo Completed pump-loop at $(date) && echo); do echo Error, retrying && [[ $RANDOM > 30000 ]] && openaps wait-for-long-silence && openaps mmtune; sleep 5; done\""
    },
    "type": "alias",
    "name": "pump-loop"
  },

so the get-bg is added in and the erron random number is 30000 instead of 28000, so not much.
What I'm wondering is, wait-for-long-silence basically calls monitor/temp_basal.json, since that's going to fail cause it needs an mmtune, with the && doesn't that means wait-for-long-silence would have to come back as completed, before it would go on to mmtune? would it be better to put an or (||) there?

Aaron Michelson
@Aaybob
Jan 07 2017 22:11
@jmcrawford did you have to "forget" all your bluetooth connections first?
jmcrawford
@jmcrawford
Jan 07 2017 22:11
there weren't any to begin with
John Benjamin
@Bender1061
Jan 07 2017 22:12
if you connected to bluetooth just while in bluetoothctl, type in remove AA:BB
sorry, I havent read all your above posts, but it's a usefull command when you are playing with the bluetooth
Aaron Michelson
@Aaybob
Jan 07 2017 22:14
@jmcrawford Its already paired and trusted so lets see what happens with reboot for five minutes
@Bender1061 what is the name of the "My Devices"
in iPhone settings:bluetooth?
@jmcrawford in iPhone settings:bluetooth is the "new devices" name BlueZ 5.37 ?
jmcrawford
@jmcrawford
Jan 07 2017 22:19
@Aaybob yes, that's the name. It can be set differently with the hciconfig hci name <somename> command
John Benjamin
@Bender1061
Jan 07 2017 22:20
run this command sudo hciconfig hci0 name $HOSTNAME
but you need to do a power off and power on in bluetoothctl in order for your phone to see it that way
jmcrawford
@jmcrawford
Jan 07 2017 22:20
Getting this error from oref0-online: Failed to connect: org.bluez.Error.Failed
John Benjamin
@Bender1061
Jan 07 2017 22:20
did you run sudo killall bluetoothd; sudo /usr/local/bin/bluetoothd --experimental &
first
that has to be done after every reboot
oref0-online does it, but it only does that if it does not see a ip address from the wifi
jmcrawford
@jmcrawford
Jan 07 2017 22:21
I think that's the problem - there is nothing set up to start the bluetoothd process after the reboot. There should be a systemd job that starts it up
John Benjamin
@Bender1061
Jan 07 2017 22:21
so to manually do it, if you are trying to connect when you have wifi hooked up
I added to my cron, at least for now
Aaron Michelson
@Aaybob
Jan 07 2017 22:22
@jmcrawford what step are you on?
John Benjamin
@Bender1061
Jan 07 2017 22:22
cause I'm playing with pancreabble right now, and I need that inorder for the bluetooth to run
Aaron Michelson
@Aaybob
Jan 07 2017 22:23
@jmcrawford is that error during oref0-setup?
John Benjamin
@Bender1061
Jan 07 2017 22:24
the first time you run oref0-setup when it installs blueZ it normally will fail, just run it again and your all good
jmcrawford
@jmcrawford
Jan 07 2017 22:24
ok, it's connected now. I started bluetoothd and re-ran oref0-online, it connected to the phone and got an IP assigned to the bnep0 device.
Aaron Michelson
@Aaybob
Jan 07 2017 22:24
crawford ran oref0-setup but didn't let it make cron
@jmcrawford so all good
jmcrawford
@jmcrawford
Jan 07 2017 22:25
@Bender1061 putting the bluetoothd command in your cron as a @reboot command seems stable?
Aaron Michelson
@Aaybob
Jan 07 2017 22:25
@jmcrawford tell me the steps you took so we can PR for otherss
John Benjamin
@Bender1061
Jan 07 2017 22:26
I just did it yesterday, so far, no problems
Aaron Michelson
@Aaybob
Jan 07 2017 22:26
@Bender1061 that fixed it for me :)
John Benjamin
@Bender1061
Jan 07 2017 22:26
awesome!
I'll probably make a pull request with the pancreabble stuff in a day or two, couple things I would like to test first
Aaron Michelson
@Aaybob
Jan 07 2017 22:27
and for @jmcrawford just now. Right?
jmcrawford
@jmcrawford
Jan 07 2017 22:27
I'll run through it one more time to remove any of the extraneous commands
jmcrawford
@jmcrawford
Jan 07 2017 22:34
@Aaybob @Bender1061 thanks for your help sorting this. it's been a bur under my saddle for a few days now
John Benjamin
@Bender1061
Jan 07 2017 22:36
no problem
Scott Leibrand
@scottleibrand
Jan 07 2017 22:48
@Bender1061 Yeah, if wait-for-long-silence always fails, that would prevent it from mmtuning. We could either change && openaps mmtune to ; openaps mmtune or we could change the wait-for-long-silence alias to always return true.
John Benjamin
@Bender1061
Jan 07 2017 22:49
I'm good with the ; cause if it failed, more mmtune wont hurt
Scott Leibrand
@scottleibrand
Jan 07 2017 22:50
Yeah
Is that alias set differently for MDT than Dex?
John Benjamin
@Bender1061
Jan 07 2017 22:51
no its that way on both
Scott Leibrand
@scottleibrand
Jan 07 2017 22:51
K. Wondering if there's any reason not to change it globally.
John Benjamin
@Bender1061
Jan 07 2017 22:51
i can't think of anything, but probably should test it first
Scott Leibrand
@scottleibrand
Jan 07 2017 22:51
I think we'd need some extra parentheses too
After the RANDOM part, so the mmtune is still subject to randomization.
John Benjamin
@Bender1061
Jan 07 2017 22:52
that makes sense