|
Post by Scarr on Aug 7, 2021 12:10:02 GMT -8
I purchased the SD Card from SwitchDoc after trying to provision my own and having a difficult experience. I am following the initial setup (https://www.switchdoc.com/wp-content/uploads/2020/09/SmartGardenSystemAssemblyAndTestManual1.4.pdf). When I try to run Step 6 I get the following error:
pi@SwitchDocLabs:~/SDL_Pi_SmartGardenSystem2 $ sudo i2cdetect –y 1 Error: I2C bus name doesn't match any bus present! Usage: i2cdetect [-y] [-a] [-q|-r] I2CBUS [FIRST LAST] i2cdetect -F I2CBUS i2cdetect -l I2CBUS is an integer or an I2C bus name If provided, FIRST and LAST limit the probing range.
I've tried to troubleshoot online but haven't been able to figure out a resolution. Please help.
|
|
|
Post by SDL on Aug 8, 2021 9:18:58 GMT -8
That is a new one on us.
Is this on our SDCard or on yours? It's not clear.
If it is yours, find a tutorial on line about enabling i2c on your Pi and follow it very carefully. Looks like you missed something!
BP
|
|
|
Post by Scarr on Aug 9, 2021 16:41:48 GMT -8
This is on your SDCard. Fresh out of the package and into my rPi. I insert the SwitchDoc SDCard, turned on the rPi, connected to my WiFi, ran this command, and received this error.
|
|
|
Post by SDL on Aug 9, 2021 17:03:57 GMT -8
This is on your SDCard. Fresh out of the package and into my rPi. I insert the SwitchDoc SDCard, turned on the rPi, connected to my WiFi, ran this command, and received this error. Look at the README.md card and give me the card version. Even if I am outbid the office, I should be able to test this. I’ll try duplicate it. “cd” and the try the command again. John
|
|
|
Post by Scarr on Aug 10, 2021 7:01:02 GMT -8
From the readme:
SmartGardenSystem 2 - Version May 2020 and on<BR> SwitchDoc Labs<BR> May 2020<BR>
Version 021 - October 1, 2020 - Added compatiblitly with new WeatherSense WeatherRack2 and Indoor T/H<BR> Version 020 - September 4, 2020 - Added Orchid Features, small bug fixes<BR> Version 019 - August 14, 2020 - Added Indoor TH page on dash_app<BR> Version 018 - August 13, 2020 - Fixed Manual Valve Activation Log Entry<BR> Version 017 - August 12, 2020 - Fixed testMoistureSensors.py problem <BR> Version 016 - August 1, 2020 - Fixed Pi4 Rev2 problem - Kludge - just disables Pixels<BR> Version 014 - July 14, 2020 - First Release Version <BR> Version 013 - July 13, 2020 - Release Candidate One <BR> Version 005 - June 5, 2020 - More modifications to dash_app and wireless<BR> Version 005 - June 3, 2020 - Added GardenCam / WeatherSTEM code<BR> Version 003 - May 11, 2020 - Added dashboard code<BR>
|
|
|
Post by SDL on Aug 10, 2021 8:27:44 GMT -8
I'm sorry, do this:
cd more README.md
I ran the command on a new SD Card and no problem.
pi@SwitchDocLabs:~ $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- 77 pi@SwitchDocLabs:~ $
Did you install ANYTHING on this card? Looks like the i2c bus is not there.
Is the board plugged in correctly on the PI? a good test would be to turn the Pi off, pull the card out, reboot the pi and re run the sudo i2cdetect -y 1 command.
I wonder if your pins are aligned properly and if they aren't, that is hosing the i2c bus.
BP
|
|
scarr
New Member
Posts: 15
|
Post by scarr on Aug 11, 2021 20:02:35 GMT -8
No, I did not install anything to the card. The board is plugged in and glowing blue. Is there any other way to test that the board is properly plugged in? I tried resetting the the Pi using your directions and am still getting the error.
See below for the output:
Version 16 of the SwitchDoc Labs SD Card June 2021
Buster Raspberry Pi OS
Now supports -
SkyWeather2
WeatherSense AfterShock Earthquake Detector WeatherSense Air Quality Sensor WeatherSense Lightning Detector
SDL Version of rtl_433
Smart Garden System2
WeatherSense WeatherRack2
Python All-In-One For Dummies Second Edition
Pixel Sticks
Pi DataLogger
MouseAir
|
|
|
Post by SDL on Aug 13, 2021 10:48:32 GMT -8
Did you pull the hat off of the Raspberry Pi and rerun the "sudo i2cdetect -y 1"? If so, post the results.
This has got to be a hardware issue of some kind as V16 works fine on all of our systems.
BP
|
|
scarr
New Member
Posts: 15
|
Post by scarr on Aug 14, 2021 14:18:40 GMT -8
Does "pull the hat off" mean remove the SwitchDoc board from atop the rPi? If so, I did that and reran and got the same error.
|
|
|
Post by doxidad on Aug 15, 2021 3:47:00 GMT -8
Here's something to check - I would assume that it isi2c is enabled but it doesn't hurt to check.
run this command: grep i2c /boot/config.txt
Example below
pi@WPI2:~ $ grep i2c /boot/config.txt dtparam=i2c_arm=on
If the parameter i2c_arm is not set to on the reason you are getting the error is that i2c is not enabled.
Use raspi-config to turn it on - sudo raspi-config
You will find it under the interface options.
if you do need to enable it you will have to reboot for it to take effect.
Hope this helps
|
|
|
Post by SDL on Aug 15, 2021 18:08:12 GMT -8
Doxidad,
That is a great suggestion, but what caused it to turn off in the first place? Our SD Cards work perfectly.
BP
|
|
scarr
New Member
Posts: 15
|
Post by scarr on Aug 28, 2021 8:42:46 GMT -8
Thanks for the suggestion, but the i2c is in fact enabled. ... # Uncomment some or all of these to enable the optional hardware interfaces dtparam=i2c_arm=on #dtparam=i2s=on #dtparam=spi=on
# Uncomment this to enable the lirc-rpi module ...
Not sure if this is useful at all but I ran i2cdetect and got this: pi@SwitchDocLabs:~/SDL_Pi_SmartGardenSystem2 $ i2cdetect 0
Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory
pi@SwitchDocLabs:~/SDL_Pi_SmartGardenSystem2 $ i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1.
I will probe address range 0x03-0x77.
Continue? [Y/n]
|
|
|
Post by SDL on Aug 29, 2021 10:03:18 GMT -8
shouldn't it be "sudo i2cdetect -y 1" ?
Run the above command and post the results.
BP
|
|
scarr
New Member
Posts: 15
|
Post by scarr on Aug 29, 2021 10:26:09 GMT -8
Yes it should, that still returns the same error...
I included the above info for context, figured it may be useful.
I still have the same issue.
|
|
|
Post by SDL on Aug 29, 2021 11:41:29 GMT -8
When you say same error, do you mean this error?
pi@SwitchDocLabs:~/SDL_Pi_SmartGardenSystem2 $ sudo i2cdetect –y 1 Error: I2C bus name doesn't match any bus present! Usage: i2cdetect [-y] [-a] [-q|-r] I2CBUS [FIRST LAST] i2cdetect -F I2CBUS i2cdetect -l I2CBUS is an integer or an I2C bus name If provided, FIRST and LAST limit the probing range. BP
|
|