#Powered-Down Devices Won't Re-Connect

1 messages Β· Page 1 of 1 (latest)

mellow lotus
#

I am running two different devices on .io, one is a ESP32-S3 Rev TFT, the other a QT Py. I have had both woring on WiFi and interfaced to .io, reporting data, and graphing it. When I power down either of them, the Feeds do not see to start again, even though the devices seem (by LED flashes) to be sending data. What am I doing wrong?

#

Both report ONLINE.

tropic timber
#

Can you update to latest version, we have recently (last week) fixed such an issue...

mellow lotus
#

I am on v1.0.0-beta.71 on both.

#

I think this is latest.

tropic timber
#

Should be, hmmm

mellow lotus
#

When I reload the Feeds page, I get two messages that they are connected.

tropic timber
#

Maybe worth doing a full flash erase (the factory reset / nuke uf2 image) and then applying the latest update.

mellow lotus
#

But, the feeds are hours ago.

#

I just did that on the QT Py.

tropic timber
#

Can you see the serial monitor, does it mention a number of bytes and i2c decode error?

mellow lotus
#

Can you coach me on the "serial monitor"?

#

(And Thank You for responding.)

tropic timber
#

Sure, what operating system / computer type are you using (mac/windows/linux), and which code editor

mellow lotus
#

I am on Windows.

#

I have not been coding. Just using Wipper.

tropic timber
#

Ah got you. In that case, let's avoid that for a second, which sensors are connected to the qtpy, and which sensors are setup as components on wippersnapper (do you have all the sensors configured already)

mellow lotus
#

I am using SHT45, and they are both configured. Were working fine before the power cycle.

#

The RevTFT is connected to USB, and is right in front of me.

tropic timber
#

This site shows the serial monitor after you use the connect button and select the device.
You might need to reset the device, then once you hear the usb/disc connected noise you can try connecting the serial monitor website. https://webserial.io/

mellow lotus
#

Switching to Edge for that.

#

OK... seems to be connected to WebSerial.

#

I am connected, and getting PING!'s

tropic timber
#

Cool, so before that ping bit it does the connecting to wifi, then mqtt (adafruit IO) then does pin config, then does i2c config (the liekly bit with error message) then does Pings inbetween sensor reads.
Try resetting the board and connecting as quick as possible, if you see something about connecting or pin definitions then you did it quick enough. if all you see is pings then try again but connect more quickly.

mellow lotus
#

On it.

#

Did it. I don't see anything bad....

tropic timber
#

No, curious, try refreshing the IO page, are the components (SHT45) still there?

mellow lotus
tropic timber
#

If so then you'll have to try removing them and re-adding them. That should sync up the i2c configuration message

mellow lotus
#

Those numbers have not changed.

tropic timber
#

use the cog next to one of the sht45 data rows, then remove the component, and re-add an sht45. You can see the serial monitor at the same time get those messages to update i2c stuff.

mellow lotus
#

I will try that.

#

I removed the device. Then added the device.

#

Then did a I2C scan, and saw it.

tropic timber
#

I've got a qtpys2 with an sht41, I've deleted it, and created it again as sht45 (same driver). I'm on 30seconds polling, and seen 4 feed values published, I'll now reboot.

mellow lotus
#

I brought up the Devices page in Firefox and Edge, no difference.

tropic timber
#

So after a reboot my secrets.json needed filling in (I've seen that before where the device is showing an old copy after being flashed until power cycled).
Then it loaded as expected

mellow lotus
#

My Secrets is fine, because I show ONLINE at io.adafruit.com. Both wifi and account login thus good.

tropic timber
#

So do you see the i2c section of the configuration in the serial monitor now, after removing and re-adding the sensor to the device's wippersnapper page. (Reboot device and watch serial monitor again)

mellow lotus
#

(you rock for taking the time to do this, thanks again)

tropic timber
#

Okay that looks good. Then the last issue is the Send Every (interval time) for each sensor feed / metric. If you have it set for 15minutes for example (the default) then you wont see a new data value for the first 15minutes of being online after rebooting. This is not the same as if you add a new component (it does an initial reading). There is an open github issue related to this "initial reading"

#

Try adjusting the send-every time to 30seconds and then wait for a minute watching the serial monitor

mellow lotus
#

OK... you are right... it had reverted to 15 minutes. I changed it to 30 seconds, and it started working.

tropic timber
#

πŸ˜„ frustrating but success is better when well earned.
Fortunately it's on the todo list πŸ™‚

mellow lotus
#

I powered down the QT Py... this was on the Rev TFT..... let me go grab it.

#

powered up

tropic timber
#

🀞

mellow lotus
#

connection made, but it says my I2C connection is bad. That could be on me.

tropic timber
#

using the stemma QT port on QTPY?

mellow lotus
#

no... wired on breadboard.

Q: is Vin a battery input on the sensor?

#

I think I found my error.

tropic timber
#

the i2c port is only the one on the stemmaQT port. Otherwise you need to build wippersnapper yourself (not too hard). Easiest is to make an adapter cable or buy one https://www.adafruit.com/product/4209 [out of stock use digikey or local seller]
Vin should be whatever the StemmaQT cable is providing, or you can supply Vin up to the maximum rating of the breakout, and then 3V is the regulated supply from the Vin.

mellow lotus
#

Thanks... I think this answered my question. I did something wrong.... trying again.

tropic timber
#

Just to reiterate, the I2C on the QTPY has 2 ports, the pins labelled SDA/SCL, and the StemmaQT port. Only the latter works with wippersnapper.

mellow lotus
#

It came up!

tropic timber
#

Wunderbar!

mellow lotus
#

OK... I think I grok what you said... Sigh....

#

I need to steal the cable from the other one.... my cables are not here yet.

tropic timber
#

Ah yeah, lots of plug and playing πŸ˜‰
You can also get to grips with code + git and then make it work with the pins instead of StemmaQT port (Arduino i2c port is Wire1 instead of Wire).

mellow lotus
#

Yay.... QT Py, connected ....

#

... and delivering data. As usual, I had two problems at once. Engineering... sheesh.

tropic timber
#

Glad to hear both work "as expected", but not "as desired" or really expected πŸ˜‰ Well done for persevering! (Also I love the reverse tft + qtpy s2/s3's, both lovely things!)

#

Wow batteries! Fair play

mellow lotus
#

πŸ˜†

tropic timber
#

C-cells?

mellow lotus
#

I only look like a noob. Those are a pair of Type 123 batts. 6V total.

#

Thanks for teaching me about WebSerial.

tropic timber
#

oh fair play πŸ™‚ know more than I, I wondered if some camera thing or something πŸ™‚

#

That one is very handy, usually works best in Chrome related browsers.

mellow lotus
#

Yes. Edge worked.

I have a project in mind and need to see how the QTPy and SHT45 use power, for battery life.

tropic timber
#

Kill the LEDs (break the jumper on back of sensor board), also I think the feathers may be more designed for switching off Peripherals, like the display / i2c may have a separate power pin / control.

mellow lotus
#

Any way to do that while using Wipper?

tropic timber
#

You can also slow the cpu speed, and deep sleep on the esp32, but not yet on wippersnapper without getting your hands dirty.

mellow lotus
#

Heh.... that's my ultimate goal, serious low power consumption.

#

My cable should be in tomorrow or the day after, and I'll get both units up and running. If I have two different units up and running delivering data, and they both can survive power downs I will be very happy.

tropic timber
#

< Long term goal for you.

mellow lotus
#

Neato. Yes, Wipper now, code later.

Thank you so much!