[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 574: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 630: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5348: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5348: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5348: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
Plum Geek Forum • volts.py output problem - Page 4
Page 4 of 5

Re: volts.py output problem

Posted: Fri Mar 02, 2018 1:23 am
by Kevin
Okay everyone, I been working this today. Sure enough, building up a clean new unit, I get the exact problem as the rest of you.

First observation is the code on at least some of the SD cards is definitely different, even though I purchased them all together. When I went through my own setup steps, a few things were different. The raspi-config system is totally different options.

Looking at a scope, I see there is a problem during the read sequence, which is driven from the Pi side. I can't tell if it's in the chip hardware or somewhere in the software driver for the i2c on the Pi side.

Here are a couple notes I am hoping some of you can play with. Then I will post a bunch of screen dumps in a follow up post of the suggestions you guys had above....

This may be a relevant post:
https://forums.adafruit.com/viewtopic.php?f=19&t=118882

The person says they solved their problem "I had to load the module i2c-bcm2708 additionally to the already loaded module i2c-bcm2835. And after doing this I got a new folder in the /sys/module/ directory named i2c_bcm2708."

I don't know how you would load a module into an already loaded module. (Don't you just HATE HATE HATE :evil: :evil: :evil: when someone says they fixed it but don't post an actual command?).

Anyway, I think this problem is somewhere in one of the smbus modules or the low level i2c driver.

On both units I run lsmod.

On the working unit, I have i2c_bcm2708
On the non working newer unit I have i2c_bcm2835

I'm really hoping someone can help on this. I'll put some dumps in the next post. Thanks everyone. This i2c thing is critical to making the whole thing work like it's supposed to. I can say I'll never design anything with a Pi ever again. Dealing with that thing took a simple project and added about a thousand hours of un-necessary headache.

Re: volts.py output problem

Posted: Fri Mar 02, 2018 1:44 am
by Kevin

Re: volts.py output problem

Posted: Fri Mar 02, 2018 4:05 am
by gpvillamil

Re: volts.py output problem

Posted: Fri Mar 02, 2018 10:02 am
by Nickw58

Re: volts.py output problem

Posted: Fri Mar 02, 2018 4:59 pm
by Kevin

Re: volts.py output problem

Posted: Sat Mar 03, 2018 12:52 am
by gpvillamil

Re: volts.py output problem

Posted: Sat Mar 03, 2018 9:59 am
by Nickw58
Hi Guys,

I have tried adding i2c_bcm2835 to the blacklist.conf file. When I do this it stops i2c working, running i2cdetect fails with 'cannot open file' .
If I edit the blacklist file and change the line to 'blacklist i2c_bcm2708, so i12c_bcm2835 is loaded, i2cdetect now works but the Volts.py module still fails.

I also did a NOOBS fresh install on another Pi I have, then checked which module is loaded. By default i2c is not enabled on a fresh install so 'lsmod' showed no i2c_bcm2708 or 2835. Enabling i2c via the Pi Pixel interface I see module i2c_bcm2835 loaded and i2cdetect now works.

So for both my Pi's I need to have i2c_bcm2835 loaded for i2cdetect to run, but I think for your working unit Kevin you have i2c_bcm2708 loaded.

Re: volts.py output problem

Posted: Sat Mar 03, 2018 7:11 pm
by Kevin

Re: volts.py output problem

Posted: Sat Mar 03, 2018 7:13 pm
by Kevin

Re: volts.py output problem

Posted: Sat Mar 03, 2018 7:18 pm
by gpvillamil