-
-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BME280 Sensor error #330
Comments
Were the sensors working with this version, or were they working in a previous version and after the upgrade stopped working? If so, what version did you upgrade from? |
Can you run the daemon in debug mode with one sensor activated and look for any errors?
The daemon can then be stopped with the client terminate command:
|
Hi Kyle,
I've placed a new SD card with the latest version of the Mycodo i.e. 5.4.7,
as I thought it would be best for a new experiment (done this several days
ago). It was working with this version, however, I didn't try all the
channels, only 3 or 4.
My old SD cards have been replaced with other projects, so I won't be able
to go back to an older version. Even the older version seemed to
be working, however, only trialed 3-4 sensors, not all the multiplexer
channels.
Regards,
Vik
…On Fri, Nov 24, 2017 at 2:31 PM, Kyle Gabriel ***@***.***> wrote:
Were the sensors working with this version, or were they working in a
previous version and after the upgrade stopped working?
If so, what version did you upgrade from?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#330 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AePfsLNReazR8yzGoehPvUgSO1T4LvzDks5s5jijgaJpZM4QpQRT>
.
|
If you need a working system right away, you can always download an earlier version from the release page. As for the issue, I'm unsure if it's a multiplexer or sensor issue, so the debug log would help a lot. I'm away (Thanksgiving) from home and my development Pi so I can't test myself. |
Hi Kyle,
I did it with a single sensor following your commands, and it seemed to be
ok. However, when I connect more sensors it seems to be a problem.
2017-11-24 03:53:09,611 - mycodo.daemon - INFO - Anonymous statistics enabled
2017-11-24 03:53:10,879 - mycodo.daemon - INFO - Starting rpyc server
2017-11-24 03:53:11,169 - mycodo.daemon - DEBUG - Starting output controller
2017-11-24 03:53:11,181 - mycodo.output - DEBUG - Initializing Outputs
2017-11-24 03:53:11,284 - mycodo.output - DEBUG - Outputs Initialized
2017-11-24 03:53:11,286 - mycodo.output - INFO - Output controller activated in 114.8 ms
2017-11-24 03:53:11,287 - mycodo.daemon - DEBUG - Starting all activated timer controllers
2017-11-24 03:53:11,289 - mycodo.daemon - INFO - All activated timer controllers started
2017-11-24 03:53:11,290 - mycodo.daemon - DEBUG - Starting all activated input controllers
2017-11-24 03:53:11,566 - mycodo.input_1 - DEBUG - Setting multiplexer (0x70) to channel 2
2017-11-24 03:53:11,602 - mycodo.input_1 - INFO - Activated in 238.0 ms
2017-11-24 03:53:11,603 - mycodo.daemon - INFO - All activated input controllers started
2017-11-24 03:53:11,604 - mycodo.daemon - DEBUG - Starting all activated PID controllers
2017-11-24 03:53:11,605 - mycodo.daemon - INFO - All activated PID controllers started
2017-11-24 03:53:11,606 - mycodo.daemon - DEBUG - Starting all activated LCD controllers
2017-11-24 03:53:11,607 - mycodo.daemon - INFO - All activated LCD controllers started
2017-11-24 03:53:11,608 - mycodo.input_1 - DEBUG - Setting multiplexer (0x70) to channel 2
2017-11-24 03:53:11,608 - mycodo.daemon - INFO - Mycodo daemon v5.4.7 started in 2.405 seconds
2017-11-24 03:53:11,645 - mycodo.daemon - INFO - 58.84 MB RAM in use
2017-11-24 03:53:21,592 - mycodo.daemon - INFO - Received command to terminate daemon
2017-11-24 03:53:21,661 - mycodo.daemon - DEBUG - Stopping all running controllers
2017-11-24 03:53:21,662 - mycodo.daemon - INFO - All LCD controllers stopped
2017-11-24 03:53:21,663 - mycodo.daemon - INFO - All Timer controllers stopped
2017-11-24 03:53:21,752 - mycodo.input_1 - INFO - Deactivated in 89.4 ms
2017-11-24 03:53:21,753 - mycodo.daemon - INFO - All Input controllers stopped
2017-11-24 03:53:21,753 - mycodo.daemon - INFO - All PID controllers stopped
2017-11-24 03:53:21,825 - mycodo.output - INFO - Output controller deactivated in 71.0 ms
2017-11-24 03:53:21,826 - mycodo.daemon - INFO - Mycodo terminated in 0.234 seconds
|
So with just one sensor it is acquiring measurements? What happens when you enable two sensors on different multiplexer channels and run the daemon in debug mode for a few minutes? |
I'm off to sleep. I'll pick up this issue again tomorrow. |
Hi Kyle,
What I've noticed is that the Mx channels do not correspond to the
multiplexer numbers e.g. SD1 SC1, SD2 SC2. They seemed to be jumbled up.
So to fix the problem, I enable 1 sensors, then one by one change the Mx
channel until an error message doesn't pop up and it is green
(successful). I've managed to do this for 5 sensors now, however, I'm
having an issue with my last two sensors.
Regards,
Vik
…On Fri, Nov 24, 2017 at 3:03 PM, Kyle Gabriel ***@***.***> wrote:
So with just one sensor it is acquiring measurements? What happens when
you enable two sensors one different multiplexer channels and run the
daemon in debug mode for a few minutes?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#330 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AePfsP34BRLS3cYW3Dj-qduNke2V5k1Lks5s5kASgaJpZM4QpQRT>
.
|
Are you using the TCA9548A breakout board made by Adafruit? |
Hi Kyle,
Yes, it's the tca9548a from adafruit.
Regards,
Vik
…On 25 Nov 2017 02:41, "Kyle Gabriel" ***@***.***> wrote:
Are you using the TCA9548A breakout board made by Adafruit?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#330 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AePfsM1DwvcBfDFfOaOroxkmfAtKjTBPks5s5uOLgaJpZM4QpQRT>
.
|
BTW, happy thanksgiving.
…On 25 Nov 2017 8:47 AM, "Victor Armani" ***@***.***> wrote:
Hi Kyle,
Yes, it's the tca9548a from adafruit.
Regards,
Vik
On 25 Nov 2017 02:41, "Kyle Gabriel" ***@***.***> wrote:
> Are you using the TCA9548A breakout board made by Adafruit?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#330 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AePfsM1DwvcBfDFfOaOroxkmfAtKjTBPks5s5uOLgaJpZM4QpQRT>
> .
>
|
Thanks. Happy Thanksgiving to you as well. I haven't had a chance to test my multiplexer. I'll be getting home today but might not get to test for another day or so. So, your multiplexer appears to be working atypically and a few sensors don't work... Do they work when you connect them straight to the I2C lines, without the multiplexer? |
Hi Kyle,
I've tested each sensor individually, and they work without any issues.
I've attached an image of a sample reading.
Regards,
Vik
…On Tue, Nov 28, 2017 at 11:07 AM, Kyle Gabriel ***@***.***> wrote:
Thanks. Happy Thanksgiving to you as well.
I haven't had a chance to test my multiplexer. I'll be getting home today
but might not get to test for another day or so. So, your multiplexer
appears to be working atypically and a few sensors don't work... Do they
work when you connect them straight to the I2C lines, without the
multiplexer?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#330 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AePfsKHlhrFQUuN7NabqgyWY1aBTlyAoks5s607AgaJpZM4QpQRT>
.
|
Hi Kyle, |
I just tested my multiplexer and I'm experiencing the same disjointed channels as you. Here is what I was able to determine using my AM2315 (I don't have a BME280), channel-wise:
X = Could not detect the AM2315 on any channel 0 - 8. I was testing with the command below to change channels (bus 3, channel 4 below) with the newest test script that includes the bus option:
Then, see if the sensor appeared with
Do these "new" channels align with what you found? |
I'm working on a fix. I should have more to report soon. |
I found a fix that corrects all the multiplexer channel issues. I have no idea how this happened, but my apologies. I'll have a fix pushed and a release made soon. Thanks for the bug report. |
I just released v5.4.12. Let me know if your issues are resolved after updating. Thanks. |
I had to pull back the release because I found a database issue. I'll try to have a fix and new release out soon. |
I finally figured out the database upgrade issue during Mycodo upgrades, though if you have issues with your database after the upgrade, you may have to delete your database and create a new one (by visiting the web UI after deleting it) to be clear if the issue. I'm not even sure how the issue arose, but my testing has found a fix. So, I released the latest code as v5.4.14. Good luck with the upgrade and let me know if it fixes your multiplexer issue. |
Thanks Kyle. I'll check it soon, and let you know.
…On 6 Dec 2017 07:44, "Kyle Gabriel" ***@***.***> wrote:
I finally figured out the database upgrade issue during Mycodo upgrades,
though if you have issues with your database after the upgrade, you may
have to delete your database and create a new one (by visiting the web UI
after deleting it) to be clear if the issue. I'm not even sure how the
issue arose, but my testing has found a fix. So, I released the latest code
as v5.4.14. Good luck with the upgrade and let me know if it fixes your
multiplexer issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#330 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AePfsD1WWZ_8ejD5S6d_u4b9AkN6rQ3xks5s9as-gaJpZM4QpQRT>
.
|
All is working fine. Thanks for your help. Much appreciated. |
You're welcome. Thanks for the bug report. It's hard to test everything myself, moreso for the sensors I don't own. |
Mycodo Issue Report:
Problem Description
Please list:
Errors
Steps to Reproduce the issue:
How can this issue be reproduced?
Additional Notes
The connected sensors were working fine, however, I've noticed them recently not working. I'll send pictures of the problem.
The text was updated successfully, but these errors were encountered: