by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 04 2017 03:25
    @scottleibrand banned @Prosulpump
ichambon
@ichambon
@Foxy7 Worked! thank you so much!
mvasserman
@mvasserman
I just reflashed two separate edison/explorer rigs and keep getting the same communication error on both of them...cannot connect to CC111x...initially I thought it was a radio chip problem and tried to reflash it but that did not resolsve the issue and it seems to be a problem across boards. anyone else have this problem? Any help greatly appreciated
sirfisch
@sirfisch
@mvasserman I’m in the same boat. Haven’t been able to get past this error using multiple explorer boards and Edisons.
mvasserman
@mvasserman
@sirfisch have you gotten any input from others on a potential solution? How long have you been having this issue?
Eric
@ecc1
@sirfisch are you using the master or dev branch of openaps?
mvasserman
@mvasserman
@sirfisch master branch
Eric
@ecc1
OK, can you try this:
sudo su -c "echo mode0 > /sys/kernel/debug/gpio_debug/gpio110/current_pinmux"
Fuller explanation: see https://iotdk.intel.com/docs/master/mraa/edison.html -- GP110 is used as SPI5 CS0 in pinmode1, but we need to use it under program control (because the Explorer uses that instead of CS1, which is the Edison default)
This used to be done automatically by something in the mraa code, but if that's not installed any more, that could be the problem.
if it fixes it, you'll have to put that echo command somewhere so it gets done every boot -- crontab with @reboot, /etc/rc.local, or a custom systemd file
sirfisch
@sirfisch
I got that error on both dev and master, I believe. I’ll have to double check since it’s been a couple of weeks. I’ll give that echo command a try a little later today.
mvasserman
@mvasserman
@sirfisch thanks. I will give that A
@ecc1 will try that now.... fingers crossed
mvasserman
@mvasserman
@ecc1 unfortunately, that does not seem to have worked
mvasserman
@mvasserman
@ecc1 I switched to dev branch and was able to reflash the radio chip so it's no longer giving the cannot connect to cc111x error, but it's still not communicating with pump - preflight and pump history refresh keep failing. any other thoughts?
Eric
@ecc1
@mvasserman what happens when you run the mdt command directly from the command line on your rig?
mvasserman
@mvasserman
@ecc1 I'm not sure how to do that.
Eric
@ecc1
log into your rig, set the MEDTRONIC_FREQUENCY and MEDTRONIC_PUMP_ID environment variables appropriately, and then run a command like mdt settings
mvasserman
@mvasserman
@ecc1 so after not having the rig on for a few days, I turned it on and it now seems to be communicating with the pump. it has changed the clock. however, it is not giving me a bunch of syntax errors and can't complete a loop successfully. Do you have any thoughts? I'm not tech savvy so not sure where to go from here....

@ecc1 this is the errors I get
Starting oref0-pump-loop at Tue Aug 4 16:46:03 MDT 2020 with 20 second wait_for_silence:
Waiting up to 4 minutes for new BG: First loop: not waiting

Listening for 20s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Tue Aug 4 16:46:25 MDT 2020
Preflight OK. Old settings: pump profile refresh unsuccessful; trying again on next loop
Profile valid. Pump history updated through 2020-08-04T15:05:48-06:00 with 0 new records; meal.json Could not parse profile data: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.<anonymous> (/usr/lib/node_modules/oref0/bin/oref0-meal.js:61:29)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3
refreshed: { "carbs": 0, "mealCOB": 0, "reason": "Could not parse profile data" }
Listening for 1s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Tue Aug 4 16:47:21 MDT 2020
Checking that pump clock: "2020-08-04T16:47:32-06:00" is within 90s of current time: 2020-08-04T16:47:23-0600
Temp refreshmodule.js:675
throw err;
^

SyntaxError: /root/myopenaps/settings/profile.json: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.Module._extensions..json (module.js:672:27)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/lib/node_modules/oref0/bin/oref0-calculate-iob.js:50:22)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)

Couldn't calculate IOB
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 34 s silence before mmtuning
Listening for 34s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Tue Aug 4 16:48:04 MDT 2020
Listening for 34 s silence before mmtuning: Listening for 34s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Tue Aug 4 16:48:39 MDT 2020
mmtune: "916.600", 3, -48 -- "916.650", 3, -48
No wait required.
If pump and rig are close enough, this error usually self-resolves. Stand by for the next loop.
Unsuccessful oref0-pump-loop at Tue Aug 4 16:48:59 MDT 2020

mvasserman
@mvasserman
anyone encounter this error when running OpenAPS setup script on edison/explorer?
Command "git clone -q https://github.com/openaps/openaps.git /tmp/pip-9_murc-build" failed with error code 128 in None
tzachi-dar
@tzachi-dar
@mvasserman from google:
Does your environment have access to the web? 128 indicates Git couldn't access the resource.
And also "It's weird. I fix it with sudo .""
And also: "I had to install pip
sudo apt install python-pip"
mvasserman
@mvasserman
@tzachi-dar it was connected to the web, so thats odd....I'll try the above and see if that works
JenikSj
@JenikSj
Hello everybody,
I use Edison rig with BT tethering. BT tethering spend ca. 400MB phone data per day with new 0.7.0. I think, it isn´t right.
Have somebody the same problem as I? Please, do somebody know, what can I do?
Dave Cole
@Dave9111
@JenikSj
Are you using an Apple phone? From what I understand; Apple phones are pretty much the only phones that can do Blue Tooth Tethering properly.
I couldn't do it with two different Android phones.
Eric
@ecc1
I use Bluetooth tethering constantly on my phone. Has worked well on both Pixel 2 and 3
Dave Cole
@Dave9111
I gave up on BT tethering and went with Wifi tethering and that has worked for a few years now. Her (my daughters) monthly data usage, including her own browsing, email, plus the nightscout uploads, are in the range of 5-6 gigabytes per month. Her phone limits throughput at 10 gig and she has never hit that.
The Pixel is Google of course and they tend to be on the front end of Android development. BT tethering did not work with a Samsung S9 or a Moto G6.
BT tethering is supposed to be a battery saver, but she gets through the day with the Samsung S9 on a single battery charge with Wifi tethering.
Eric
@ecc1
In either case, @JenikSj 's 400MB/day seems excessive. Are you using papertrail? Can you reduce what gets sent there?
Dave Cole
@Dave9111
Yes... 400 mb per day works out to about 12 gigs per month. That's a lot of data!
If that was Papertrail data, they would be asking her for money for that much logging.
JenikSj
@JenikSj
@Dave9111 @ecc1 I have Androd phone. But with 0.6.2 I had no problem. The problem with BT tethering had begun since install new oref0 0.7.0. Green and red LED flashing frequently (with 0.7.0). I tried chip CC1111 reflash, but without result. I´m not using papertrail... https://openaps.readthedocs.io/en/latest/docs/Resources/troubleshooting.html#could-not-get-subg-rfspy-state-or-version-ccprog-or-cannot-connect-to-cc111x-radio
Dave Cole
@Dave9111
@JenikSj
You may want to look at the other apps on your phone. Perhaps you have something else that is burning data. 400MB through bluetooth really doesn't sound reasonable.
ArthurusDent
@ArthurusDent
@JenikSj If your Android is not super old, there should be something like mobile data usage somewhere in settings. Each app that is using data will be mentioned and should help you narrow down the problem
JenikSj
@JenikSj
image.png
JenikSj
@JenikSj
@Dave9111 I use BT Tethering for rig at work. Today it is 243 MB. Home I switch the rig direct to wifi.. But yesterday I was on BT tethering 24 hours and it was ca. 400 MB. I think, the problem isn´t in Android. In oref 0.6.2. everythink worked..
Eric
@ecc1
@JenikSj if 0.6.2 works for you, use that
JenikSj
@JenikSj
@ecc1 Please, do you know, how can I make fresh install with older tag? I can´t find right way to install older oref0.
Eric
@ecc1
@JenikSj make sure you're on the master branch (git checkout master) and follow the install instructions in the docs
JenikSj
@JenikSj
@ecc1 Sorry, but in the instruction for fresh install I can´t find option for older tag. And the instruction for update I can find only change the branch. I tried downgrade from 0.7.0 with this: git checkout tags/v0.6.2 -b loc_062 and then npm run global-install. But there was a lot of errors. And then I made again fresh install with 0.7.0.
JenikSj
@JenikSj
I will try to buy a new explorer board block, I think, in this HW is the problem..
Jens Heuschkel
@juehv

oref0-setup (dev version) on a fresh installed debian strech (raspberry pi) failes with

Traceback (most recent call last):
  File "/usr/local/bin/openaps-device", line 35, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 47, in __call__
    self.configure_parser(self.parser)
  File "/usr/local/bin/openaps-device", line 21, in configure_parser
    self.commands = devices.configure_commands(parser, parent=self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/devices/__init__.py", line 36, in configure_commands
    parent.devices = get_device_map(parent.config)
  File "/usr/local/lib/python2.7/dist-packages/openaps/devices/__init__.py", line 21, in get_device_map
    for device in Device.FromConfig(vendors, conf):
  File "/usr/local/lib/python2.7/dist-packages/openaps/devices/device.py", line 77, in FromConfig
    vendor = vendors.lookup(config.get(candidate, 'vendor').split('.').pop( ), config)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/__init__.py", line 27, in lookup
    return get_map(config)[name]
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/__init__.py", line 22, in get_map
    vendors = all_vendors(config)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/__init__.py", line 36, in all_vendors
    return get_vendors( ) + find_plugins(config)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/__init__.py", line 16, in find_plugins
    return [ v.get_module( ) for v in vendors ]
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/plugins/vendor.py", line 19, in get_module
    return importlib.import_module(self.name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/local/lib/python2.7/dist-packages/openapscontrib/timezones/__init__.py", line 132, in <module>
    import recurrent
  File "/usr/local/lib/python2.7/dist-packages/recurrent/__init__.py", line 1, in <module>
    from recurrent.event_parser import RecurringEvent
  File "/usr/local/lib/python2.7/dist-packages/recurrent/event_parser.py", line 11, in <module>
    pdt = parsedatetime.Calendar()
  File "/usr/local/lib/python2.7/dist-packages/parsedatetime/__init__.py", line 270, in __init__
    self.ptc = Constants()
  File "/usr/local/lib/python2.7/dist-packages/parsedatetime/__init__.py", line 2381, in __init__
    self.locale = get_icu(self.localeID)
  File "/usr/local/lib/python2.7/dist-packages/parsedatetime/pdt_locales/icu.py", line 56, in get_icu
    result['icu'] = icu = pyicu.Locale(locale)
AttributeError: 'module' object has no attribute 'Locale'
Traceback (most recent call last):
  File "/usr/local/bin/openaps-device", line 35, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps/cli/__init__.py", line 47, in __call__
    self.configure_parser(self.parser)
  File "/usr/local/bin/openaps-device", line 21, in configure_parser
    self.commands = devices.configure_commands(parser, parent=self)
  File "/usr/local/lib/python2.7/dist-packages/openaps/devices/__init__.py", line 36, in configure_commands
    parent.devices = get_device_map(parent.config)
  File "/usr/local/lib/python2.7/dist-packages/openaps/devices/__init__.py", line 21, in get_device_map
    for device in Device.FromConfig(vendors, conf):
  File "/usr/local/lib/python2.7/dist-packages/openaps/devices/device.py", line 77, in FromConfig
    vendor = vendors.lookup(config.get(candidate, 'vendor').split('.').pop( ), config)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/__init__.py", line 27, in lookup
    return get_map(config)[name]
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/__init__.py", line 22, in get_map
    vendors = all_vendors(config)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/__init__.py", line 36, in all_vendors
    return get_vendors( ) + find_plugins(config)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/__init__.py", line 16, in find_plugins
    return [ v.get_

Any idea how to solve this ?

Sorry was cut
File "/usr/local/lib/python2.7/dist-packages/openaps/devices/__init__.py", line 21, in get_device_map
    for device in Device.FromConfig(vendors, conf):
  File "/usr/local/lib/python2.7/dist-packages/openaps/devices/device.py", line 77, in FromConfig
    vendor = vendors.lookup(config.get(candidate, 'vendor').split('.').pop( ), config)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/__init__.py", line 27, in lookup
    return get_map(config)[name]
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/__init__.py", line 22, in get_map
    vendors = all_vendors(config)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/__init__.py", line 36, in all_vendors
    return get_vendors( ) + find_plugins(config)
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/__init__.py", line 16, in find_plugins
    return [ v.get_module( ) for v in vendors ]
  File "/usr/local/lib/python2.7/dist-packages/openaps/vendors/plugins/vendor.py", line 19, in get_module
    return importlib.import_module(self.name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/local/lib/python2.7/dist-packages/openapscontrib/timezones/__init__.py", line 132, in <module>
    import recurrent
  File "/usr/local/lib/python2.7/dist-packages/recurrent/__init__.py", line 1, in <module>
    from recurrent.event_parser import RecurringEvent
  File "/usr/local/lib/python2.7/dist-packages/recurrent/event_parser.py", line 11, in <module>
    pdt = parsedatetime.Calendar()
  File "/usr/local/lib/python2.7/dist-packages/parsedatetime/__init__.py", line 270, in __init__
    self.ptc = Constants()
  File "/usr/local/lib/python2.7/dist-packages/parsedatetime/__init__.py", line 2381, in __init__
    self.locale = get_icu(self.localeID)
  File "/usr/local/lib/python2.7/dist-packages/parsedatetime/pdt_locales/icu.py", line 56, in get_icu
    result['icu'] = icu = pyicu.Locale(locale)
AttributeError: 'module' object has no attribute 'Locale'
Traceback (most recent call last):
  File "/usr/local/bin/openaps-import", line 89, 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-import", line 77, in run
    candidates = json.load(args.input)
  File "/usr/lib/python2.7/json/__init__.py", line 291, in load
    **kw)
  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
Could not run nightscout autoconfigure-device-crud
Foxy7
@Foxy7
@juehv this looks like the python issue from a couple of months ago. @endafarrell work around https://gitter.im/nightscout/intend-to-bolus?at=5edd2fc2b101510b20433a44
Foxy7
@Foxy7
@juehv i flashed a rig last night and used pip install parsedatetime==2.5 after the first failure, then ran the setup script again and it worked.
Jens Heuschkel
@juehv
Sounds good. Will try that :)