|
Post by SDL on Mar 16, 2022 11:39:38 GMT -8
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 19, 2022 7:48:34 GMT -8
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 19, 2022 8:54:51 GMT -8
Hey BP,
- I have performed steps 1, 2 & 3; but there is no hotspot named "RPiHotspot". - I have unplugged Ethernet as well and tried again, but got the same result, (no end to scanning and no results, but not frozen). - I have tried going to desktop and adding bluetooth devices just to see if they show up. I saw 6/6 sensors this way, but cannot respond to the connection challenge, so they stop connecting.
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 19, 2022 8:58:38 GMT -8
Next I tried keeping the RPi offline, and set Bluetooth to "Make Discoverable", launched scanBluetooth.py, and "Added a Device" from the Desktop. The desktop portion errored out the same as before, but scanBluetooth.py connected and registered the sensors. They are now showing up. I will assign them to an extender, test them, then update this thread.
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 19, 2022 9:04:01 GMT -8
I had actually saved the new sensor because I hadn't unpackaged it yet. I reconnected to the network and did the same routine; it worked while both wifi and ethernet were live. I still can't get any data from it though.
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 19, 2022 9:45:10 GMT -8
Using SG3Configure.py, I am able to rename the Soil Sensors, but I cannot assign them to either extender;
I go to [Cameras / Bluetooth] and left-click on any of the soil sensors.
If I rename it first and hit [Save Name], it works. If I hit the dropdown selector, that says [Not Assigned |v], and select either of my extenders, focus is removed from teh sensor that I had selected, and it still says: "bluetooth sensor:/Hex:Add/btSensor_Name/ Assigned To: None"
|
|
|
Post by SDL on Mar 20, 2022 6:36:00 GMT -8
Try shutting down SG3Configure and starting it up again.
BP
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 22, 2022 20:03:00 GMT -8
Hello, I shut down and restarted SG3Configure, but no change. Then I rebooted and tried again, but it still won't take the assignment using the GUI. When I go into phpMyAdmin, I am seeing them in the BluetoothSensors table. The BluetoothSensorData table is empty. Thank you, ~S
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 22, 2022 20:26:30 GMT -8
I can manually enter the Extender ID number into AssignedWirelessID. That sort of worked. I have empty data rows in the Dash App on the BT Temp / Moisture Tab, and the Status tab shows that they exist, but aren't reporting. I think I need the python portion pull the data in.
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 22, 2022 20:45:51 GMT -8
The change is showing in SG3Configure, but I still can't change it from there. I don't need to change it, but I was just testing to see if it would allow a change.
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 22, 2022 20:46:31 GMT -8
sudo bluetoothctl connect (MAC Address) Attempting to connect to (MAC Address) [CHG] Device (MAC Address) Connected: yes Connection successful
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 22, 2022 20:54:55 GMT -8
CLI pairing fails for authentcationError immediately.
|
|
|
Post by dertown on Mar 24, 2022 3:50:15 GMT -8
Hi BP I have followed those instructions and i have still having the same issue. The scanBluetooth.py does not fine the sensor. However the bluetoothctl scan no does find the sensor. pi@raspberrypi:~/SDL_Pi_SmartGarden3 $ bluetoothctl scan on
Discovery started
[CHG] Controller E4:5F:01:99:02:49 Discovering: yes
[NEW] Device C4:7C:8D:6E:04:90 Flower care
[NEW] Device 6D:A3:E9:33:BA:18 6D-A3-E9-33-B
|
|
0_0
Full Member
 
Posts: 114
Raspberry Pi: Yes
Other Device: PC, Arduino, ESP32
|
Post by 0_0 on Mar 24, 2022 5:49:09 GMT -8
Any "next steps" that I should try?
I've tried shutting down and restarting SG3Configure, rebooted the machine, found them using the Raspbian GUI's bluetooth scanner, and tried pairing them using the CLI, but to no avail. I have had no luck using scanBlutooth, testBluetooth, SG3Configure or testSG3System. At one point they all showed up in SG3's dash using Raspbian's GUI (see previous post), and using phpMyAdmin, I was able to assign them to one of the extenders, but there is no data coming from them.
Using CLI, I've been able to trust and connect to them, but I can't get them to pair; I get an AuthenticationError immediately.
  <
Checking bluetooth status: sudo systemctl status bluetooth service Unit service.service could not be found. ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2022-03-22 20:17:24 PDT; 1 day 10h ago Docs: man:bluetoothd(8) Main PID: 703 (bluetoothd) Status: "Running" Tasks: 1 (limit: 4915) CGroup: /system.slice/bluetooth.service └─703 /usr/lib/bluetooth/bluetoothd
Mar 22 20:17:25 SwitchDocLabs bluetoothd[703]: sap-server: Operation not permitted (1) Mar 22 20:17:26 SwitchDocLabs bluetoothd[703]: Endpoint registered: sender=:1.18 path=/org/bluez/hci0/A2DP/SBC/Source/1 Mar 22 20:17:26 SwitchDocLabs bluetoothd[703]: Endpoint registered: sender=:1.18 path=/org/bluez/hci0/A2DP/SBC/Source/2 Mar 22 20:17:26 SwitchDocLabs bluetoothd[703]: Failed to set privacy: Rejected (0x0b) Mar 22 21:45:10 SwitchDocLabs bluetoothd[703]: No cache for MAC1 Mar 22 22:53:03 SwitchDocLabs bluetoothd[703]: No cache for MAC2 Mar 22 22:53:52 SwitchDocLabs bluetoothd[703]: No cache for MAC3 Mar 22 22:54:05 SwitchDocLabs bluetoothd[703]: No cache for MAC4 Mar 22 23:05:14 SwitchDocLabs bluetoothd[703]: No cache for MAC5 Mar 22 23:05:26 SwitchDocLabs bluetoothd[703]: No cache for MAC6
|
|
|
Post by SDL on Mar 24, 2022 7:52:09 GMT -8
If you have them in your database, then somehow you got ScanBluetooth.py to put them there.
Do you have your SG3 Extender up and running and close enough to see the bluetooth sensors? Are you running SG3.py? It takes about 15 minutes for the bluetooth sensors to fill in.
PM me your SG3.JSON file.
BP
|
|