Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reboot after x hours v1.10 #51

Closed
Seinuh opened this issue Nov 11, 2023 · 55 comments
Closed

Reboot after x hours v1.10 #51

Seinuh opened this issue Nov 11, 2023 · 55 comments

Comments

@Seinuh
Copy link

Seinuh commented Nov 11, 2023

it seems that in version v1.10 the reboot after x hours function does not work. it might be useful to publish uptime in a topic for checking.

@redakker
Copy link
Owner

Sorry to hear, I'll check that.

@redakker
Copy link
Owner

@Seinuh
Till then you can check when was the last {"status":"on" MQTT message. On boot, the device sends this message as default. So you can find out the period of reboots.

@Seinuh
Copy link
Author

Seinuh commented Nov 11, 2023

status message disappears over time... when I manually reboot it it publishes it as {"status: "",ip: 192.168.XX"} "on" is missing here

@Seinuh
Copy link
Author

Seinuh commented Nov 11, 2023

status mqqt message is only published when mqtt explorer is open during a reboot.

@redakker
Copy link
Owner

Okay, I found a problem here. Probably you set this value to "" on an admin page.
The default is on, but if you ever changed this, íou cannot remove with empty string.

if (this -> database -> isPropertyExists(DB_DEVICE_STATUS_OFF)) { this -> statusOff = this -> database -> getValueAsString(String(DB_DEVICE_STATUS_OFF), false); } else { this -> statusOff = MQTT_STATUS_OFF_DEFAULT_VALUE; }

I should check if the value exists and non-empty.

Please set Device status string (on) / Device status string (off) on an admin page (advanced should be open)
I'll continue checking the reboot time

@redakker
Copy link
Owner

status mqqt message is only published when mqtt explorer is open during a reboot.

It is published, but since that message is not retained, then later you won't receive that.

@Seinuh
Copy link
Author

Seinuh commented Nov 11, 2023

Okay, I found a problem here. Probably you set this value to "" on an admin page. The default is on, but if you ever changed this, íou cannot remove with empty string.

if (this -> database -> isPropertyExists(DB_DEVICE_STATUS_OFF)) { this -> statusOff = this -> database -> getValueAsString(String(DB_DEVICE_STATUS_OFF), false); } else { this -> statusOff = MQTT_STATUS_OFF_DEFAULT_VALUE; }

I should check if the value exists and non-empty.

Please set Device status string (on) / Device status string (off) on an admin page (advanced should be open) I'll continue checking the reboot time

I had not changed anything about this, just set on to online and off to offline as a test. Now it is well published "online"

@Seinuh
Copy link
Author

Seinuh commented Nov 11, 2023

I have set reboot after 2 hours. I'll leave mqqt explorer open for the next 2 hours so I can check if it reboots after 2 hours

@Seinuh
Copy link
Author

Seinuh commented Nov 11, 2023

Based on mqqt topic status, this issue can be closed. after 2 hours a new status appeared. I now have a complete fresh installation running based on v1.10

@Seinuh Seinuh closed this as completed Nov 11, 2023
@Seinuh
Copy link
Author

Seinuh commented Nov 11, 2023

v1.10 does not crash based on not restarting

@redakker
Copy link
Owner

@Seinuh Cool! Thank for testing.
I've created another ticket for the found problem.
And fixed the last will issue (not released yet)

@Seinuh
Copy link
Author

Seinuh commented Nov 11, 2023

@Seinuh Cool! Thank for testing. I've created another ticket for the found problem. And fixed the last will issue (not released yet)

I also experience spontaneous not_present even though they are really present. v.1.10 is still very unstable unfortunately

@redakker
Copy link
Owner

I would like to updte the libraries. I hope it helps

@Seinuh
Copy link
Author

Seinuh commented Nov 11, 2023

I would like to updte the libraries. I hope it helps

I now have v1.09 and v1.10 running side by side to compare

V1.1.09 via mqtt

V1.10 via Webhook

Both reboot 2 hours

@Seinuh
Copy link
Author

Seinuh commented Nov 12, 2023

v1.10 freezes over time and can no longer be reached via IP. Also inexplicable device drops

@redakker
Copy link
Owner

@Seinuh
I've uploaded a binary to the dev_binary folder which contains the latest changes.
Its name is blecker_v1.11-131.bin
Please try it, it has been running fluently on my device since yesterday.

@Seinuh
Copy link
Author

Seinuh commented Nov 13, 2023

Up and running.. thanks for your support

@Seinuh
Copy link
Author

Seinuh commented Nov 14, 2023

@redakker I have been testing via webhook for almost a day now. he published 2 messages every hour. After a few hours a spontaneous not_present was displayed, which was only set to present again at the hour mark. after that, only 1 message was published every hour. publishing has now also stopped and the Esp32 is no longer accessible via IP.

@redakker
Copy link
Owner

@redakker I have been testing via webhook for almost a day now. he published 2 messages every hour. After a few hours a spontaneous not_present was displayed, which was only set to present again at the hour mark. after that, only 1 message was published every hour. publishing has now also stopped and the Esp32 is no longer accessible via IP.

Is that issue with the latest firmaware? 1.11?

@Seinuh
Copy link
Author

Seinuh commented Nov 14, 2023

@redakker yes v1.11 unfortunately..

@redakker
Copy link
Owner

@redakker yes v1.11 unfortunately..

Okay, I think I know what is going on here.
One more question:
When you use Webhook, is the MQTT configured and working or not?

@Seinuh
Copy link
Author

Seinuh commented Nov 14, 2023

@redakker yes v1.11 unfortunately..

Okay, I think I know what is going on here. One more question: When you use Webhook, is the MQTT configured and working or not?

mqtt now also activated and working

@Seinuh
Copy link
Author

Seinuh commented Nov 14, 2023

@redakker from 10:00 a "ping" runs on both webhook and mqtt

@Seinuh
Copy link
Author

Seinuh commented Nov 14, 2023

@redakker from 10:00 a "ping" runs on both webhook and mqtt

after 1 hour mqtt published 1 message. webhook 2

@Seinuh
Copy link
Author

Seinuh commented Nov 14, 2023

@redakker 11.21 everything on mqtt and on webhook is set to not_present.. while my backup esp32 with v1.09 keeps the same devives as present

@redakker
Copy link
Owner

Interesting. 1.11 should send a status MQTT message every 30 seconds. Are you receiving that?

@redakker
Copy link
Owner

Interesting, because i have not touched the Bluetooth part of that

@Seinuh
Copy link
Author

Seinuh commented Nov 14, 2023

Interesting. 1.11 should send a status MQTT message every 30 seconds. Are you receiving that?

Yes it does

@Seinuh
Copy link
Author

Seinuh commented Nov 14, 2023

Interesting, because i have not touched the Bluetooth part of that

It drops mqtt as webhook at the same time

@Seinuh
Copy link
Author

Seinuh commented Nov 14, 2023

@redakker 12:00 devices were all reset to present, both mqtt and webhook at the same time

@redakker
Copy link
Owner

@Seinuh please set the reboot hours to 0 on device with firmware 1.11

@Seinuh
Copy link
Author

Seinuh commented Nov 14, 2023

@Seinuh please set the reboot hours to 0 on device with firmware 1.11

All set 12:30

@Seinuh
Copy link
Author

Seinuh commented Nov 14, 2023

@redakker Unfortunately, even after disabling auto reboot, he loses the devices via both mqtt and webhook

@redakker
Copy link
Owner

Interesting, for me it has running for almost 2 days now.

@Seinuh
Copy link
Author

Seinuh commented Nov 14, 2023

Interesting, for me it has running for almost 2 days now.

I now have a fresh installation running based on v1.11

@redakker
Copy link
Owner

I've changed the time config for bluetooth, try the new binary
https://github.com/redakker/blecker/blob/main/dev_binary/blecker_v1.11-133.bin

@Seinuh
Copy link
Author

Seinuh commented Nov 14, 2023

I've changed the time config for bluetooth, try the new binary https://github.com/redakker/blecker/blob/main/dev_binary/blecker_v1.11-133.bin

Up and running 🤞

@Seinuh
Copy link
Author

Seinuh commented Nov 15, 2023

@redakker unfortunately still unstable, I have now done a fresh installation on another esp32, these same problems. only v1.9 remains stable

@redakker
Copy link
Owner

@redakker unfortunately still unstable, I have now done a fresh installation on another esp32, these same problems. only v1.9 remains stable

I don't understand why? Do you have a stable power source for that? Is the Wifi is okay?

@Seinuh
Copy link
Author

Seinuh commented Nov 15, 2023

@redakker unfortunately still unstable, I have now done a fresh installation on another esp32, these same problems. only v1.9 remains stable

I don't understand why? Do you have a stable power source for that? Is the Wifi is okay?

stable 5v and WiFi 100% to rule things out now another Bluetooth tracker installed on the same power supply and esp32

@Seinuh
Copy link
Author

Seinuh commented Nov 15, 2023

@redakker maybe I have found something... I have fixed the esp32 to an access point so that it cannot jump

@Seinuh
Copy link
Author

Seinuh commented Nov 15, 2023

@redakker esp32 attached to an access point other power supply and tightly next to an esp32 v1.9 unfortunately v1.11 sets everything back to not_present and picks up the correct value after a reboot. Version v1.9 keeps this neatly. If no one else is experiencing this problem, something must be going wrong here somewhere.

@redakker
Copy link
Owner

I continue developing this version and let's see

@Seinuh
Copy link
Author

Seinuh commented Nov 15, 2023

I continue developing this version and let's see

Please let me know when I can test something again. Hopefully you get it stable and look forward to http and https support for webhooks. This will be a nice combination with Homey, the platform I use.

@redakker
Copy link
Owner

redakker commented Nov 16, 2023

@Seinuh
I implemented the ticket #55 where every commit start a Github action, and build the latest binary from the master branch.
So every time when I commit something (I try to commit stable solutions always), you can try it.
Later I create a documentation for that, but for now:

You can update your board with that.
Be aware, it can be unstable.
And many thanks for beta testing!

@Seinuh
Copy link
Author

Seinuh commented Nov 16, 2023

@Seinuh I implemented the ticket #55 where every commit start a Github action, and build the latest binary from the master branch. So every time when I commit something (I try to commit stable solutions always), you can try it. Later I create a documentation for that, but for now:

You can update your board with that. Be aware, it can be unstable. And many thanks for beta testing!

V1.11.144 up and running 👍 I think my new Mosquitto broker provides more stability here 🤞

@Seinuh
Copy link
Author

Seinuh commented Nov 16, 2023

@redakker Unfortunately, v1.11.144 also stops here, what I notice is that the 3 second status message is also no longer posted... a restart is needed to start things up again. My broker runs fine with other mqtt devices so my broker seems to be fine.

@redakker
Copy link
Owner

@redakker Unfortunately, v1.11.144 also stops here, what I notice is that the 3 second status message is also no longer posted... a restart is needed to start things up again. My broker runs fine with other mqtt devices so my broker seems to be fine.

There should be a status message ~30 seconds

image

@Seinuh
Copy link
Author

Seinuh commented Nov 16, 2023

@redakker Unfortunately, v1.11.144 also stops here, what I notice is that the 3 second status message is also no longer posted... a restart is needed to start things up again. My broker runs fine with other mqtt devices so my broker seems to be fine.

There should be a status message ~30 seconds

image

That's right, 30 seconds instead of 3... I'm running mqtt explorer. To check

@redakker
Copy link
Owner

I have messages at the right time
image

Which board do you have?

@Seinuh
Copy link
Author

Seinuh commented Nov 16, 2023

I have messages at the right time image

Which board do you have?

32vroom32d devkit v4

I get exactly the same messages, I now have reboot set to 4 hours, when it freezes again I will check whether the status message is still published

@redakker
Copy link
Owner

Would be great to have some logs.
Run the device from your PC and then you can check the logs.
Click here: https://redakker.github.io/blecker/
And click on the connect button.
Choose the Logs & Console
You should see the device is booting (maybe after reset) and then messages from BLEcker software on the device.

@Seinuh
Copy link
Author

Seinuh commented Nov 16, 2023

Would be great to have some logs. Run the device from your PC and then you can check the logs. Click here: https://redakker.github.io/blecker/ And click on the connect button. Choose the Logs & Console You should see the device is booting (maybe after reset) and then messages from BLEcker software on the device.

I'll do that..

@Seinuh
Copy link
Author

Seinuh commented Nov 17, 2023

Would be great to have some logs. Run the device from your PC and then you can check the logs. Click here: https://redakker.github.io/blecker/ And click on the connect button. Choose the Logs & Console You should see the device is booting (maybe after reset) and then messages from BLEcker software on the device.

I'll do that..

@redakker after adjusting the restart timer after 4 hours. currently stable 13 hours... fingers crossed

@redakker
Copy link
Owner

@Seinuh Probably I found the stop issue.
Check this: #58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants