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

4th
Aug 2018
Paul Dickens
@thebookins
Aug 04 2018 00:20
I've just now fired up an Edison that has been lying dormant for a while, and it's making strange noises (like a faulty computer hard drive). It's working fine though. Anyone experienced that before? Should I be concerned?
Dana Lewis
@danamlewis
Aug 04 2018 00:40
hrm, don't think we've heard that (or reports of that). double check to make sure it's seated well? check battery is plugged in well, etc.?
Paul Dickens
@thebookins
Aug 04 2018 00:47
thanks @danamlewis will do
Dana Lewis
@danamlewis
Aug 04 2018 00:49
@thebookins which reminds me to ask you - does anyone in your neck of the woods have G6? Forgot to ask you if anyone was looking at xdrip-js on it yet.
Paul Dickens
@thebookins
Aug 04 2018 00:52
Not in my neck of the woods @danamlewis ; it's not approved in Australia yet. But we have support in drip-js now. @efidoman @cluckj are working on fine-tuning right now.
Dana Lewis
@danamlewis
Aug 04 2018 00:52
fantastic! thanks for the update @thebookins. and kudos @efidoman @cluckj :clap:
Jon Cluck
@cluckj
Aug 04 2018 00:53
it's working in calibration mode, I'm testing out no-calibration mode right this second :laughing:
Dana Lewis
@danamlewis
Aug 04 2018 00:53
:)
openaps/docs@11c7d7a feel free to put in better notes, but that's more of a reminder to myself that this conversation happened!
Jon Cluck
@cluckj
Aug 04 2018 01:00
:thumbsup:
naboull1
@naboull1
Aug 04 2018 01:53
@scottleibrand i checked the docs the only section on flashing talks about the edison im using the explorer board for the rpi zero would these instructions still work?
N3FM
@N3FM
Aug 04 2018 02:01
Has anybody else noticed that when SMB is running, the reservoir level checks don't make sense? I had a 0.3 bolus scheduled, reservoir 147.6 during beginning of cycle. "Checking reservoir: reservoir level before: 147.6, suggested: 147.6 and actual 147.5"
naboull1
@naboull1
Aug 04 2018 02:18

@scottleibrand when i try make ccprog i get this error

root@raspberrypi:~/src/ccprog# cd ccprog; make ccprog
-bash: cd: ccprog: No such file or directory
gcc -o ccprog ccprog.c readhex.c -lmraa
ccprog.c:9:18: fatal error: mraa.h: No such file or directory

              ^

compilation terminated.
Makefile:2: recipe for target 'ccprog' failed
make: * [ccprog] Error 1
root@raspberrypi:~/src/ccprog#

Scott Leibrand
@scottleibrand
Aug 04 2018 03:04
@N3FM what is odd about that? You have a basal running and it ticked over by 0.1U in between the two checks.
@naboull1 which version of oref0 do you have on that Pi?
naboull1
@naboull1
Aug 04 2018 03:28
@scottleibrand Im doing a fresh install from the documentation ill let you know when its finished
Scott Leibrand
@scottleibrand
Aug 04 2018 03:40
I believe mraa is installed by oref0-setup, but not sure if that’s done in both master and dev.
Jon Cluck
@cluckj
Aug 04 2018 03:41
iirc master should do it all the time, dev only does it if mdt-cgm is selected
N3FM
@N3FM
Aug 04 2018 03:52
@cluckj Thx bunches. I don't know how much longer I can hold my breath! LOL
Scott Leibrand
@scottleibrand
Aug 04 2018 04:03
@cluckj we‘ll need to figure out how to do ccprog with dev on non-enlite setups. Maybe add a mraa install step to the ccprog directions in the docs? Or maybe go back to always installing it?
naboull1
@naboull1
Aug 04 2018 07:37

when installing openaps which option should we use for this it seems new

Explorer Board HAT detected.
Would you like to [D]ownload precompiled Go pump communication library or build them from [S]ource? [D]/S s

naboull1
@naboull1
Aug 04 2018 08:14
@scottleibrand just done a fresh install. which command line can show me what the oref0 version is?
Arnoud82
@Arnoud82
Aug 04 2018 09:05
Can ayone help me, just done a fresh install on my pi zero with the explorer board. But it dosn't upload my mdt to nightscout, i have done the openaps frist-upload like i always did on the older dev but now it says the commando is unknown.
iValkou
@iValkou
Aug 04 2018 10:42
How to use Explorer HAT screen menu? There are only 2 buttons. How to choose an option?
iValkou
@iValkou
Aug 04 2018 10:51
I found. double click
JohnDoeAkira
@JohnDoeAkira
Aug 04 2018 14:59
Does anybody uses Pancreable here ? I have tried to install it ... in vain.
naboull1
@naboull1
Aug 04 2018 16:19
anyone gets hanging when trying to setup oref0
i changed the option from xdrip to MDT and its installing mraa now but getting stuck when running oref0 setup
it hands when i reaches addings openaps log shortcuts
Arnoud82
@Arnoud82
Aug 04 2018 17:13

Last login: Sat Aug 4 16:56:49 2018 from 192.168.0.108

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@NoudsKlier:~# cd myopenaps
root@NoudsKlier:~/myopenaps# openaps first-upload
[Errno 2] No such file or directory
openaps: 'first-upload' is not an openaps command. See 'openaps --help'.

root@NoudsKlier:~/myopenaps# openaps first-upload

Dana Lewis
@danamlewis
Aug 04 2018 17:14
@Arnoud82 are you using dev or master?
@naboull1 top of this page describes how to check your version: http://openaps.readthedocs.io/en/latest/docs/Customize-Iterate/update-your-rig.html
Arnoud82
@Arnoud82
Aug 04 2018 18:32

Last login: Sat Aug 4 18:29:03 2018 from 192.168.0.108

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@NoudsKlier:~# npm list -g oref0
(node:2826) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
/usr/local/lib
└── (empty)

npm ERR! not ok code 1
root@NoudsKlier:~#

Last login: Sat Aug 4 18:29:03 2018 from 192.168.0.108

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@NoudsKlier:~# npm list -g oref0
(node:2826) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
/usr/local/lib
└── (empty)

npm ERR! not ok code 1
root@NoudsKlier:~# cd ~/src/oref0
root@NoudsKlier:~/src/oref0# git branch

Scott Leibrand
@scottleibrand
Aug 04 2018 18:38
@naboull1 the [] indicate the default option, which is selected automatically if you just press enter. If that’s not obvious, it might make sense to PR in a message at the top of the interactive setup that explains that.
Did you install from master or dev?
Dana Lewis
@danamlewis
Aug 04 2018 18:38
@cluckj do you know if OpenAPS first-upload was added to Go, or if not because not needed, what else @Arnoud82 should try? ^
Jon Cluck
@cluckj
Aug 04 2018 18:51
@Arnoud82 is it looping and not uploading?
Arnoud82
@Arnoud82
Aug 04 2018 18:57
It is looping great
@cluckj I only don't get my bloodsuger in nightscout
Arnoud82
@Arnoud82
Aug 04 2018 19:06

@cluckj Last login: Sat Aug 4 20:29:56 2018 from 192.168.0.108

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@NoudsKlier:~# l
Warning: clock input Invalid Date is unzoned; please pass clock-zoned.json instead
refreshed: {"carbs":96,"nsCarbs":96,"bwCarbs":0,"journalCarbs":0,"mealCOB":18,"currentDeviation":-12,"maxDeviation":0.74,"minDeviation":-8.67,"slopeFromMaxDeviation":-2.469,"slopeFromMinDeviation":0,"allDeviations":[-9,-6,-1,1],"lastCarbTime":1533402282000,"bwFound":false}
Listening for 3 s silence: Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Sat 4 Aug 20:47:34 CEST 2018

Checking pump clock: "2018-08-04T20:47:34+02:00" is within 90s of current time: 2018-08-04T20:47:36+0200
Temp refreshed: monitor/temp_basal.json: {"duration":113,"temp":"absolute","rate":0}
{"carbs":96,"nsCarbs":96,"bwCarbs":0,"journalCarbs":0,"mealCOB":18,"currentDeviation":-12,"maxDeviation":0.74,"minDeviation":-8.67,"slopeFromMaxDeviation":-2.469,"slopeFromMinDeviation":0,"allDeviations":[-9,-6,-1,1],"lastCarbTime":1533402282000,"bwFound":false}
Warning: Autotune has not been run. All microboluses will be disabled until you manually run autotune or add it to run nightly in your loop.
{"carbs":96,"nsCarbs":96,"bwCarbs":0,"journalCarbs":0,"mealCOB":18,"currentDeviation":-12,"maxDeviation":0.74,"minDeviation":-8.67,"slopeFromMaxDeviation":-2.469,"slopeFromMinDeviation":0,"allDeviations":[-9,-6,-1,1],"lastCarbTime":1533402282000,"bwFound":false}
{"iob":2.985,"activity":0.0301,"basaliob":0.543,"bolusiob":2.442,"netbasalinsulin":1.55,"bolusinsulin":9.2,"time":"2018-08-04T18:47:36.000Z","iobWithZeroTemp":{"iob":2.985,"activity":0.0301,"basaliob":0.543,"bolusiob":2.442,"netbasalinsulin":1.55,"bolusinsulin":9.2,"time":"2018-08-04T18:47:36.000Z"},"lastBolusTime":1533405081000,"lastTemp":{"rate":0,"timestamp":"2018-08-04T20:39:46+02:00","started_at":"2018-08-04T18:39:46.000Z","date":1533407986000,"duration":8.83}}
{"delta":-14,"glucose":184,"noise":null,"short_avgdelta":-12.33,"long_avgdelta":-7.02,"date":1533408060000,"last_cal":0}
Autosens ratio: 1; Basal unchanged: 0.75; ISF unchanged: 72; CR: 9.5
currenttemp: { duration: 113, temp: 'absolute', rate: 0 } lastTempAge: 9 m tempModulus: 2 m
SMB disabled (!microBolusAllowed)
Last carbs 104 minutes ago; remainingCATime: 5.6 hours; 81% carbs absorbed
Carb Impact: -3.2 mg/dL per 5m; CI Duration: 0 hours; remaining CI (~2h peak): 4.1 mg/dL per 5m
predCIs (mg/dL/5m): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
remainingCIs: 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 3 3 3 3 3 3 3 3 2 2
UAM Impact: -3.2 mg/dL per 5m; UAM Duration: 0 hours
minPredBG: 25 minIOBPredBG: 39 minZTGuardBG: 25 minCOBPredBG: 39 minUAMPredBG: 39 avgPredBG: 25 COB: 18 / 96
BG projected to remain above 4.9 for 45 minutes
BG projected to remain above 3.6 for 65 minutes
naive_eventualBG: -31 bgUndershoot: 104 zeroTempDuration: 65 zeroTempEffect: 59 carbsReq: 6
2018-08-04T18:48:31.485Z
Checking deliverAt: 2018-08-04T18:48:31.485Z is within 1m of current time: Sat 4 Aug 20:48:32 CEST 2018
and that smb-suggested.json is less than 1m old
enact/smb-suggested.json: {"temp":"absolute","bg":184,"tick":-14,"eventualBG":59,"insulinReq":0,"reservoir":"110.55\n","deliverAt":"2018-08-04T18:48:31.485Z","sensitivityRatio":1,"COB":18,"IOB":2.985}
"COB: 18, Dev: 1.3, BGI: -0.6, ISF: 4.0, CR: 9.5, Target: 4.9, minPredBG 1.4, minGuardBG -2.2, IOBpredBG 2.2, COBpredBG 3.3, UAMpredBG 2.2; minGuardBG -2.2<3.6 113m left and 0 ~ req 0U/hr: no temp required"
COB: [184,170,157,145,133,122,112,102,93,85,78,71,66,60,55,50,45,41,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,40,42,45,47,50,52,54,57,59]
UAM: [184,170,157,144,132,120,109,99,89,80,71,64,56

@cluckj this is how my log looks
Jon Cluck
@cluckj
Aug 04 2018 19:09
Thanks, what about your NS loop log?
(I'm on mobile right now, so I may not respond immediately)
Arnoud82
@Arnoud82
Aug 04 2018 19:11
Where can i find that?
Scott Leibrand
@scottleibrand
Aug 04 2018 19:11
The problem is that if there’s no BG in NS the most-recent check fails, so it can’t upload. The workaround has always been openaps first-upload, which just uploads the current BG.
Jon Cluck
@cluckj
Aug 04 2018 19:12
Ah okay
Scott Leibrand
@scottleibrand
Aug 04 2018 19:12
It would be better if we made oref0-ns-loop autodetect the failure and do so automatically.
Dana Lewis
@danamlewis
Aug 04 2018 19:18
^ yeppp
Jon Cluck
@cluckj
Aug 04 2018 19:18
It looks like first-upload was removed in the refactor and replaced with.... something
@Arnoud82 ns-looplog
Arnoud82
@Arnoud82
Aug 04 2018 19:21

Last login: Sat Aug 4 20:58:49 2018 from 192.168.0.108

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@NoudsKlier:~# ns-looplog
No recent valid BG found. Most recent:
{"glucose":152,"dateString":"2018-08-04T08:42:00+02:00"}
20:51:52 up 29 min 0 users load average: 5.05 4.13 3.62
Load high at Sat 4 Aug 20:51:52 CEST 2018: waiting up to 5m to continue

Starting oref0-ns-loop at Sat 4 Aug 20:52:04 CEST 2018:
No recent valid BG found. Most recent:
{"glucose":152,"dateString":"2018-08-04T08:42:00+02:00"}
20:52:51 up 30 min 0 users load average: 7.90 5.12 4.00
Load high at Sat 4 Aug 20:52:52 CEST 2018: waiting up to 5m to continue

Starting oref0-ns-loop at Sat 4 Aug 20:53:04 CEST 2018:
No recent valid BG found. Most recent:
{"glucose":152,"dateString":"2018-08-04T08:42:00+02:00"}
20:53:51 up 31 min 0 users load average: 4.90 4.82 3.97
Load high at Sat 4 Aug 20:53:51 CEST 2018: waiting up to 5m to continue

Starting oref0-ns-loop at Sat 4 Aug 20:54:03 CEST 2018:
No recent valid BG found. Most recent:
{"glucose":152,"dateString":"2018-08-04T08:42:00+02:00"}
Latest NS temptargets: (NOT VALID JSON: empty)
Merging local temptargets: (NOT VALID JSON: empty)
Temptargets merged: (NOT VALID JSON: empty)
Refreshed carbhistory; COB: 17
{"batteryVoltage":4040,"battery":91}
{"BG":172,"IOB":2.658,"rate":0,"duration":120,"units":null}
No new treatments to upload
Completed oref0-ns-loop at Sat 4 Aug 20:57:54 CEST 2018

Starting oref0-ns-loop at Sat 4 Aug 20:58:04 CEST 2018:
No recent valid BG found. Most recent:
{"glucose":152,"dateString":"2018-08-04T08:42:00+02:00"}
Latest NS temptargets: (NOT VALID JSON: empty)
Merging local temptargets: (NOT VALID JSON: empty)
Temptargets merged: (NOT VALID JSON: empty)
Refreshed carbhistory; COB: 16
{"batteryVoltage":4070.0000000000005,"battery":94}
{"BG":172,"IOB":2.658,"rate":0,"duration":120,"units":null}
No new treatments to upload
Completed oref0-ns-loop at Sat 4 Aug 21:02:00 CEST 2018

Starting oref0-ns-loop at Sat 4 Aug 21:02:04 CEST 2018:
No recent valid BG found. Most recent:
{"glucose":152,"dateString":"2018-08-04T08:42:00+02:00"}
Latest NS temptargets: (NOT VALID JSON: empty)
Merging local temptargets: (NOT VALID JSON: empty)
Temptargets merged: (NOT VALID JSON: empty)
Refreshed carbhistory; COB: 16
{"batteryVoltage":4090,"battery":95}
{"BG":null,"IOB":null,"rate":0,"duration":30,"units":null}
[{"duration":120,"raw_duration":{"timestamp":"2018-08-04T20:56:18+02:00","_type":"TempBasalDuration","duration (min)":120},"timestamp":"2018-08-04T20:56:18+02:00","absolute":0,"rate":0,"raw_rate":{"timestamp":"2018-08-04T20:56:18+02:00","_type":"TempBasal","temp":"absolute","rate":0},"eventType":"Temp Basal","medtronic":"mm://openaps/mm-format-ns-treatments/Temp Basal","created_at":"2018-08-04T20:56:18+02:00","enteredBy":"openaps://medtronic/754","_id":"5b65f9181c09a4292a9dd787"}]
Completed oref0-ns-loop at Sat 4 Aug 21:06:00 CEST 2018

Starting oref0-ns-loop at Sat 4 Aug 21:06:05 CEST 2018:
No recent valid BG found. Most recent:
{"glucose":152,"dateString":"2018-08-04T08:42:00+02:00"}
Latest NS temptargets: (NOT VALID JSON: empty)
Merging local temptargets: (NOT VALID JSON: empty)
Temptargets merged: (NOT VALID JSON: empty)
Refreshed carbhistory; COB: 14
{"batteryVoltage":4100,"battery":96}
{"BG":null,"IOB":null,"rate":0,"duration":30,"units":null}
No new treatments to upload
Completed oref0-ns-loop at Sat 4 Aug 21:10:02 CEST 2018

Starting oref0-ns-loop at Sat 4 Aug 21:10:05 CEST 2018:
No recent valid BG found. Most recent:
{"glucose":152,"dateString":"2018-08-04T08:42:00+02:00"}
21:10:48 up 48 min 1 user load average: 4.14 5.10 4.56
Load high at Sat 4 Aug 21:10:48 CEST 2018: waiting up to 5m to continue

Starting oref0-ns-loop at Sat 4 Aug 21:11:04 CEST 2018:
No recent valid BG found. Most recent:
{"glucose":152,"dateString":"2018-08-04T08:42:00+02:

Jon Cluck
@cluckj
Aug 04 2018 19:27
nope, hold on...
okay try this? cat monitor/glucose.json | json 1 > nightscout/recent-missing-entries.json && openaps report invoke nightscout/uploaded-entries.json
Arnoud82
@Arnoud82
Aug 04 2018 19:33
root@NoudsKlier:~# cat monitor/glucose.json | json 1 > nightscout/recent-missing-entries.json && openaps report invoke nightscout/uploaded-entries.json
-bash: nightscout/recent-missing-entries.json: No such file or directory
cat: monitor/glucose.json: No such file or directory
root@NoudsKlier:~#
Jon Cluck
@cluckj
Aug 04 2018 19:34
oh, you need to be in the myopenaps directory :)
cd myopenaps and try again
Arnoud82
@Arnoud82
Aug 04 2018 19:38

or directory
root@NoudsKlier:~# cd myopenaps
root@NoudsKlier:~/myopenaps# cat monitor/glucose.json | json 1 > nightscout/recent-missing-entries.json && openaps report invoke nightscout/uploaded-entries.json
ns://JSON/shell/nightscout/uploaded-entries.json
No JSON object could be decoded

Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/bin/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/invoke.py", line 48, in main
reporters.Reporter(report, device, task)(output)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/init.py", line 33, in call
self.blob = self.serialize(data)
File "/usr/local/lib/python2.7/dist-packages/openaps/reports/reporters/init.py", line 31, in serialize
return self.method.serialize(render(data), self)
File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/process.py", line 56, in prerender_json
return json.loads(data)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
root@NoudsKlier:~/myopenaps#

Jon Cluck
@cluckj
Aug 04 2018 19:55
hmm
Jon Cluck
@cluckj
Aug 04 2018 20:27
ns-loop isn't recognizing that you're using an mdt cgm
I'll bbl
naboull1
@naboull1
Aug 04 2018 23:21

@scottleibrand
root@raspberrypi:~# npm list -g oref0
(node:29751) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
/usr/local/lib
└── oref0@0.6.2

root@raspberrypi:~# cd ~/src/oref0
root@raspberrypi:~/src/oref0# git branch
dev

  • master

@scottleibrand the position im in now after selecting MDT in setup and getting mraa installed i attempted to flash again from the instruction this is the outcome

root@raspberrypi:~# killall -g oref0-pump-loop; openaps mmtune
oref0-pump-loop: no process found
Not an openaps environment, run: openaps init
root@raspberrypi:~# sudo service cron stop && killall -g oref0-pump-loop && shutdown -c
oref0-pump-loop: no process found
root@raspberrypi:~# cd ~/src; git clone https://github.com/ps2/ccprog.git
fatal: destination path 'ccprog' already exists and is not an empty directory.
root@raspberrypi:~/src# cd ccprog; make ccprog
gcc -o ccprog ccprog.c readhex.c -lmraa
ccprog.c: In function 'main':
ccprog.c:777:18: warning: implicit declaration of function 'isprint' [-Wimplicit-function-declaration]
else if (isprint (optopt))
^~~
root@raspberrypi:~/src/ccprog# wget https://github.com/EnhancedRadioDevices/subg_rfspy/releases/download/v0.8-explorer/spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex
--2018-08-05 09:11:37-- https://github.com/EnhancedRadioDevices/subg_rfspy/releases/download/v0.8-explorer/spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex
Resolving github.com (github.com)... 192.30.255.112, 192.30.255.113
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/65105795/7a835ee6-9b89-11e6-87e1-8d31520ea103?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180804%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180804T231138Z&X-Amz-Expires=300&X-Amz-Signature=8a219f28c31c067618abb97756738e3ce17cd32f8adfc9c63727affc390c7f85&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dspi1_alt2_EDISON_EXPLORER_US_STDLOC.hex&response-content-type=application%2Foctet-stream [following]
--2018-08-05 09:11:39-- https://github-production-release-asset-2e65be.s3.amazonaws.com/65105795/7a835ee6-9b89-11e6-87e1-8d31520ea103?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180804%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180804T231138Z&X-Amz-Expires=300&X-Amz-Signature=8a219f28c31c067618abb97756738e3ce17cd32f8adfc9c63727affc390c7f85&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dspi1_alt2_EDISON_EXPLORER_US_STDLOC.hex&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.163.51
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.163.51|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6799 (6.6K) [application/octet-stream]
Saving to: 'spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex'

spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex 100%[===============================================================================================>] 6.64K 26.4KB/s in 0.3s

2018-08-05 09:11:40 (26.4 KB/s) - 'spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex' saved [6799/6799]

root@raspberrypi:~/src/ccprog# ./ccprog -p 19,7,36 erase
Using pins: DC=19, DD=7, RESET=36
Erasing chip.
NOP failed!
Could not put device into debug mode.
Chip erase failed.
root@raspberrypi:~/src/ccprog# sudo service cron stop && killall -g oref0-pump-loop && shutdown -c
oref0-pump-loop: no process found
root@raspberrypi:~/src/ccprog# ./ccprog -p 19,7,36 erase
Using pins: DC=19, DD=7, RESET=36
Erasing chip.
NOP failed!
Could not put device into debug mode.
Chip erase failed.
root@raspberrypi:~/src/ccprog# ./ccprog -p 19,7,36 write spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex
Using pins: DC=19, DD=7, RESET=36
NOP failed!
Could not put device into debug mode.

Jon Cluck
@cluckj
Aug 04 2018 23:34
@naboull1 those are the pins for the edison explorer, you want to use 16,18,7
naboull1
@naboull1
Aug 04 2018 23:37

so if i change it like this it should work?

/ccprog -p 16,18,7erase
,./ccprog -p 16,18,7 write spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex

Jon Cluck
@cluckj
Aug 04 2018 23:38
let me make sure that's the right firmware, hold on :)
yep :thumbsup:
naboull1
@naboull1
Aug 04 2018 23:39
okay typing it now
Jon Cluck
@cluckj
Aug 04 2018 23:39
./ccprog -p 16,18,7 erase
./ccprog -p 16,18,7 write spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex
naboull1
@naboull1
Aug 04 2018 23:43
root@raspberrypi:~/src/ccprog# ./ccprog -p 16,18,7 erase
Using pins: DC=16, DD=18, RESET=7
Erasing chip.
Chip erased.
root@raspberrypi:~/src/ccprog# ./ccprog -p 16,18,7 write spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex
Using pins: DC=16, DD=18, RESET=7
Intel Hex file: spi1_alt2_EDISON_EXPLORER_US_STDLOC.hex
Writing 2769 bytes to flash....
root@raspberrypi:~/src/ccprog#
the lights turn off now :)
ill reboot and check if its working
Jon Cluck
@cluckj
Aug 04 2018 23:44
nice :D