|
Post by riffelrw on Jul 8, 2022 9:03:55 GMT -8
I'm trying to configure my 2nd extender on a system that has been running well for several months. The software on the new extender is current (V61) and the testSG3System.py finds the new extender, and blinks the USB based light so I know the MQTT communication is working. However when I run the configuration utility from the Pi (that is already working with the original extender) it scans the IP addresses but only finds the existing extender. When the scanner passes by the IP address of the new extender, the neopixel also lights up white, so it does see some communication. I can also ping the new extender and it replies at the correct IP address. I powered down the first extender and scanned but it makes no difference - the scan finds nothing. Are there any other diagnostics that I can use to figure out why the 2nd extender is not allowing itself to be configured in the database? Attached are the printouts from both the configuration utility and the system test.   Attachments:

|
|
|
Post by SDL on Jul 10, 2022 8:53:56 GMT -8
|
|
|
Post by riffelrw on Jul 10, 2022 10:53:45 GMT -8
I ran both the scanandfix as well as the MQTT capture. The scan and fix only finds the one active: [email protected]:~/SDL_Pi_SmartGarden3 $ sudo python3 scanAndFixExtenders.py
before running, stop SG3.py if it is running (hit return when ready)
SGS.JSON File exists
JSONData from File= {'key': 'value', 'ProgramName': 'SmartGarden3', 'ConfigVersion': '001', 'SWDEBUG': True, 'enable_MySQL_Logging': True, 'English_Metric': False, 'MySQL_Password': 'password', 'mailUser': '[email protected]', 'mailPassword': 'Getout66', 'notifyAddress': '[email protected]', 'fromAddress': '[email protected]', 'enableText': True, 'textnotifyAddress': '[email protected]', 'INTERVAL_CAM_PICS__SECONDS': '60', 'REST_Enable': False, 'Camera_Night_Enable': False, 'MQTT_Enable': False, 'MQTT_Server_URL': '', 'MQTT_Port_Number': '1883', 'MQTT_Send_Seconds': '500', 'manual_water': True, 'Send_Status_Email': False, 'Status_Send_Email_Minutes': '300', 'Send_Status_Text': False, 'Status_Send_Text_Minutes': '300', 'Tank_Pump_Level_Full': '500', 'Tank_Pump_Level_Empty': '900', 'Infrared_High_Auto_Gain': False, 'Infrared_Low_Auto_Gain': False, 'Infrared_Low_Temp': '17.0', 'Infrared_High_Temp': '22.0', 'WirelessDeviceJSON': [{'return_value': 0, 'id': '8F2D', 'name': '', 'ipaddress': '192.168.64.18', 'hardware': 'esp32', 'hydroponicsmode': 'false', 'return_string': '8F2D,1,1,1,1,0,1,1,0,0,060', 'connected': True, 'hydroponics_temperature': 'false', 'hydroponics_tds': 'false', 'hydroponics_ph': 'false', 'hydroponics_turbidity': 'false', 'hydroponics_level': 'false'}]}
mailuser: [email protected]
mailPassword: <removed> Wireless Device ID 8F2D Active
All devices found
Scan and Fix Extenders Complete
Restart SG3.pyLooking at the MQTT, it prints the system sending a publish request to "SGS/529D/Valves" but there is no answer. I'm not sure where the 529D mac address is coming from? It does send and receive pings from the extender that is running, with valves (SGS/8F2D) as well as a SUBSCRIBE command with an acknowledgement (I assume because it's in the database). Looking at my UI controller (which assigns IP addresses based on MAC address), it does see both extenders: 1) the one working with a mac address ending in 8f:2c at 192.168.61.18 (which I assume is the 8F2D that MQTT is talking to although I didn't know there were 2 mac addresses per extender - i'm guessing one for BT, one for IP?) 2) the one that won't register with a mac address ending in 27:04 at 192.168.64.17. Could that be the one the MQTT is trying to talk to, listing a publish request to 52:9D? I dont see anything close to that in my overall UI controller list if there are 2 consecutive MAC addresses as appears to be the case with the functioning extender (8F2C talking to network, 8F2D talking to sensors). See below:   I can try and manually add the second extender into the database although I'm not sure where, and I have no sensors associated with it. I ran a scan again from the configuration utility just to see if something changes but no - still only sees the original one. Any ideas on next steps?
|
|
|
Post by SDL on Jul 10, 2022 14:46:17 GMT -8
Hmm.
Let me see the other JSON file. I'm wondering if there is some bad data in that. This one looked OK.
BTW, your email passwords is in the JSON above too. Might want to change that.
If you could, reboot your extender that is not connecting and do a video on the boot up sequence on the screen. Let's see what it is saying
BP
|
|
|
Post by riffelrw on Jul 11, 2022 5:08:12 GMT -8
Not sure when you mention "the other JSON" file - this is the one on the Pi that I was using to control both of these. At least it was the printout coming from the test utility. However, here are the two JSON files in the directory (the New Document is the SGS JSON with the PWD removed). The email password in the prior post was removed from the file, hence the <removed>, but I appreciate the reminder - have seen that elsewhere so i caught it when i first typed it. I have the moving but can't get it below 10mb, which won't upload above 3mb. is there a dropbox or is there another way i can send it? I pulled different images from the display and attached them as they transition, they are in numerical order from boot-up. But let me know if there is a better way. The display is mounted on a 3d printed mount that I'm making to hold a solarmax, the extender and relay, and an adafruit feather that monitors the solarmax, and does data logging.
|
|
|
Post by SDL on Jul 11, 2022 14:51:58 GMT -8
Thank you!
First of all, your JSON has no values set to turn on or off. Nothing should happen.
Secondly, the device above is kind of odd. 2F5 rather than 4 digits.
Could you do this on your Pi?
ping 192.168.64.17
then hit "ctrl-c"
Now type:
arp 192.168.65.17
and post the results.
BP
|
|
|
Post by riffelrw on Jul 12, 2022 5:47:27 GMT -8
I assume on the ARP you meant the 64.17 address.... Here is what came back: [email protected]:/home $ ping 192.168.64.17 PING 192.168.64.17 (192.168.64.17) 56(84) bytes of data. 64 bytes from 192.168.64.17: icmp_seq=1 ttl=255 time=54.2 ms 64 bytes from 192.168.64.17: icmp_seq=2 ttl=255 time=66.3 ms 64 bytes from 192.168.64.17: icmp_seq=3 ttl=255 time=96.6 ms ^C --- 192.168.64.17 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 5ms rtt min/avg/max/mdev = 54.178/72.345/96.566/17.828 ms [email protected]:/home $ arp 192.168.64.17 Address HWtype HWaddress Flags Mask Iface esp32-arduino.lan ether 0c:dc:7e:88:2f:04 C eth0 [email protected]:/home $ I assume the 3 digits on the LCD is simply a formatting issue trying to show the "04" and there is no leading zero specified in the print format, although I didn't look at the code.
|
|
|
Post by SDL on Jul 12, 2022 12:45:54 GMT -8
Looking at the last 4 digits for the 64.17 address the extender address should be "2f:04" or 2F04 not 2F5.
I would do a hard reset on the extender board and reprovision it. Something is hosed with the extender address.
Do a factory reset on the board by holding the "Aux Button" down for 15 seconds while hitting the reset button.
BP
|
|
|
Post by riffelrw on Jul 12, 2022 17:11:04 GMT -8
Tried to the the reset - held both down for 15 seconds but it came back in the same statewith the 2F5 and couldnt be found by the configuration program on the pi. I tried another reset attempt but it came up in access point mode. I reset the wireless and tried again but same response.
I held both buttons down for 15 seconds but nothing happened until I released them (after something like an additional 5 seconds). Is this the proper process?
|
|
|
Post by SDL on Jul 12, 2022 17:19:39 GMT -8
Hold Aux down. Press reset. Release aux after 10 seconds. Sorry for not being clear! This will clear the WiFi provisioning too.
BP
|
|
|
Post by riffelrw on Jul 13, 2022 4:21:52 GMT -8
Just did 4 configurations but none made a difference - still showing 2F5 as device:
1) Press Aux, wait 10 sec, press reset, wait 2-3 seconds, release Aux then release Reset 2) Press Aux, wait 2-3 seconds, press reset, wait 2-3 , release Aux then release Reset 3) Press Aux, wait 15 seconds, press reset, wait 10 , release Aux then release Reset 4) Press Aux and reset at once, wait 10 , release Aux then release Reset
Is it possible to get another board to compare against? I'm willing to pay for it if the problem is on my side somewhere (pi, router etc). or return this one for a new one? I'm ok to keep trying but i do want to get something resolved fairly soon. Thanks!
|
|
|
Post by SDL on Jul 14, 2022 10:12:12 GMT -8
Tell you what. I'd like to get that board back.
Send it to:
SwitchDoc Labs RMA#071422-01 Attn: BP 909 S Shelley Lake Lane Spokane Valley, WA 99037
PM me your shipping address and we will cross ship you a new one.
BP
|
|
|
Post by SDL on Jul 21, 2022 9:32:28 GMT -8
Thanks of sending the board back. I got it yesterday and tested it today. It is what I expected. There is a bug that drops a leading zero! I'll fix it inversion 62. Shouldn't affect your new board!
BP
|
|
|
Post by riffelrw on Jul 24, 2022 17:07:37 GMT -8
Thanks, I also got the replacement board yesterday, and it is seen by the configuration program - looks like we both ended up solved. Thanks for walking through all the cycles of debug.
Rich
|
|
|
Post by SDL on Jul 26, 2022 10:06:50 GMT -8
Rich,
I'm really glad to hear that. Your board works now too with 062.
BP
|
|