0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 9, 2022 23:37:00 GMT -8
I am to the point in the instructions where I add the soil sensors, but I can't get the scan to run.
It errors out on line 15 "<<<<<<< HEAD", with: "SyntaxError: Invalid Syntax" and points to the second < I tried deleting one, and it gave me the same error. I've tried removing them one-at-a-time until there was only one left. No change I tried commenting out the whole line to see what would happen, and the same thing happened on Line 20 "=======", so I commented that out and it hung on line 27 ">>>>>>>>> 97d4c...", so I commented that out. Now I can get it to launch, but until I hit [ctrl]+[c] it says: Starting Bluetooth Reset Starting Bluetooth Reset ---------------------------------------------- Starting Scan for new Bluetooth Sensors ----------------------------------------------
After I stop it, the traceback: File "scanBluetooth.py", line 134, in <module> src, line = q.get(timeout = 1) File "/usr/lib/python3.7/queue.py", line 179, in get self.not_empty.wait(remaining) File "/usr/lib/python3.7/threading.py", line 300, in wait gotit = waiter.acquire(True, timeout) KeyboardInterupt
Any help would be greatly appreciated.
Thank you, ~S
|
|
|
Post by SDL on Mar 10, 2022 8:59:31 GMT -8
Ouch! This has something to do with the GIT merge. This is a problem in the repository. I'll get it fixed and you can re download. Or you can:
Delete:
=======
print("Starting Bluetooth Reset") cmd = ["/bin/hciconfig", "hci0", "reset"] run(cmd)
>>>>>>> 97d4c1daa21a1474c43ab59c139bbc367afaac9f
and the HEAD line
BP
|
|
|
Post by SDL on Mar 10, 2022 9:05:09 GMT -8
Fixed! 056 is uploaded. BP
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 10, 2022 20:10:27 GMT -8
Nice! Thank you. I will report back. ~S
|
|
|
Post by 0_0 on Mar 11, 2022 10:05:20 GMT -8
Well, it there are no errors, but it hangs in the same spot and the traceback is the same.
|
|
|
Post by 0_0 on Mar 11, 2022 10:37:11 GMT -8
I have completely started the software install again and got to the same point with the hang in the same spot, and the same traceback contents.
A little feedback: This system (and the hydroponic set) has been amazing to play with, and get to know. Great job! Congratulations to you and your team! I have been playing with the rest of it while I try to work out the Bluetooth issue, IT'S SO FUN!Even though this part has hung, I have been getting plenty of other successes. The instructions are easy to follow, the interfaces have been easy to access and use, and the flexibility in both hardware and software is tremendous. It has been easy to work with this on the same RPi that has already been running my SkyWeather system (with several versioned backups, of course).
Thank you for your assistance and for making this, ~S
|
|
|
Post by SDL on Mar 11, 2022 11:37:47 GMT -8
What do you mean by traceback contents? If it hangs, there isn't a traceback unless you interrupt it.
It can take up to 15 or 20 minutes to pick up your Bluetooth sensor. Make sure it is not toooooo close. Put it a meter away from your Pi.
Now, I know from experience that there are two kinds of hangs. 1) The computer isn't frozen and just takes a long time to find the Bluetooth Sensor or 2) The whole computer is hung. This second one has to do some routers and a weird interaction with lots of Sonos speakers. Not sure what is going on there.
Thank you fro the fine compliments! We think this is the best engineered product we have ever put out!
BP
|
|
|
Post by 0_0 on Mar 11, 2022 16:02:38 GMT -8
I was definitely putting them too close. I have moved them (I have 5 BT soil sensors) farther a way, and ran it for 4 hours. It still says: "Starting scan for new Bluetooth Sensors" and does not appear to be hung, but no sensors. No Sonos speakers though. Thank you, ~S
|
|
|
Post by SDL on Mar 12, 2022 14:16:39 GMT -8
Hmm. Could you show me what is printed on the screen? Do a screenshot.
John
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 14, 2022 7:29:37 GMT -8
It's not quite the screenshot you meant, but it was the easiest way to get it cropped and attached. If you need a better one, just let me know and I'll send a larger one.There isn't much information about the pause, it just stops where you see above, and will stay just like that until I kill the process. Everything I try seems to respond with no delays, so cache, mem and cpu seem to be unburdened. Everything else also seems to work fine, I now have everything assembled and running. Last night was the first night running unattended; it ran perfectly. I will need to get another base station for the outside plants, which is where I intend to use the BT Sensors, once the rains have stopped for the summer; which gives tons of time to figure this out.
I LOVED seeing my quote on the hydroponics page! I am beginning to stage my installation locations, so that I can get a series of pics that shows my entire setup. I want to get Watchdog setup as well, for an "under the hood" set of shots. I will post those in the "My Projects" section as soon as I can, so that other apartment-dwellers (like myself), can get ideas.
Thank you again, ~S
|
|
|
Post by SDL on Mar 14, 2022 11:56:41 GMT -8
Excellent! please consider writing up a guest blog for www.switchdoc.comOK, you have something else going on with the BlueTooth units. Could you run "sudo python3 testBluetooth.py" and let it run for about 1/2 hour? Also, what version of the OS are you using? Are you using the SDL SD Card? After you do the above, run: "sudo apt update" and "sudo apt full-upgrade" and repeat the test. BP
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 14, 2022 14:26:19 GMT -8
I am using the SDL SD card, but copied to an external drive.
(after update && full-upgrade)
OS = "Linux 10 (buster)"
I'll post the results after I run the next round. I'd love to write a Guest Blog. I just committed to a large and complex project, but I would be pleased to after this wraps in late Spring - early Summer. I'll take pics and notes in the mean time. ~S
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 14, 2022 14:59:37 GMT -8
After the second round, it looks the same as above. ~S
|
|
|
Post by SDL on Mar 16, 2022 7:14:40 GMT -8
Copying it to a hard drive shouldn't make any difference. Give me what you have when you run this command:
pi@SwitchDocLabs:~/SDL_Pi_SmartGarden3 $ bluetoothctl -v bluetoothctl: 5.50
BP
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 16, 2022 10:28:41 GMT -8
It returned: bluetoothctl: 5.50
|
|