-
Notifications
You must be signed in to change notification settings - Fork 638
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
V9261F not showing power values in 1.15.0 #2546
Comments
Regarding different naming, I see 1ac4a61 renaming 'AC RMS' to 'Expected current', 'Expected voltage' and etc. in the code and further updates should have retained it (unless it somehow got hidden in the UI or V9261F support is differently advertised) Behaviour with relay also seems consistent with the previous version? If there is a relay, power meter readings only go into the system when relay is ON espurna/code/espurna/config/sensors.h Line 45 in 6b3ce83
(and see sensor.cpp code between #if SENSOR_POWER_CHECK_STATUS ... #endif )
|
Sorry for the confusion, I get no readings even if the relay is on. I meant that I added the relay later, but did try official 1.15.0 builds with no relay and the behaviour was the same. Probably due to this change 1ac4a61 I can only calibrate the device by editing the sensor file manually and recompiling it on 1.14.1. Any idea why builds after August 16 would have no accessible web ui? I couldn't find a way to enable it via Telnet. (which is on by default on these builds.) To summarize, with V9261F: 1.14.1: Sensor readings work, no calibration ui is available. |
Reminds me of #2483; at least one possible fix is described in the comment - change serial mode. Xose used SoftwareSerial originally, and august builds still do. In recent builds softwareserial is optional (see No idea about the web, this might've been fixed since then. |
In most recent code - also note the change in default pins espurna/code/espurna/config/hardware.h Lines 1752 to 1770 in 6b3ce83
|
Thanks a lot for your help so far, I'm way over my head but I managed to get readings on August 19 source. I only added "SWSERIAL_8O1" from the snippet here: #2483 I still can't figure why "wemos-v9261f" builds don't have webui on newer commits, couldn't find the culprit. (so I can't check the newest stuff about changed pins and UART) "Wemos-d1mini" builds are fine. |
No downside, we just properly configure serial IO. New software based serial code is just way more strict than the old one. August builds also had an issue in sensors continiously crashing, so that is my best guess since Web Server does not start when device goes into safe mode. |
Would this crash log be of any help? I just tried the latest dev, and I also changed my connection go gpio3, instead of 2. Didn't help, always goes into safe mode.
|
Stack contents, no. Everything should be decoded using an .elf that was used to create the .bin file Let me check v9261f code again before retrying. |
@mcspr hi, could you please help me in compiling a new build for my device? I had it working in the past, now updated to i have a wemos d1 mini with tx connected with optoisolator and resistor to D4 on the wemos... what parameters do i have to add to the config file? I'm using gitpod to compile, eventually... thanks! |
I think this should still apply? btw it is https://github.com/xoseperez/espurna/releases for .bin, nightlies repo was not updated for a while |
hi, i tried 1.15.0-dev.gitb409dc27+github230330 (wemos v9261f variant), but again it does not read the data from the device... trying to compile using platformio, via gitpod, but don't know which parameters to add to change the v9261f tx pin to D4, where is connected and works if using previous 1.14.1 bin file |
https://github.com/xoseperez/espurna/wiki/Sensors#v9261f-based-power-sensor ESPurna build config uses Since .ini only has hw flag Lines 642 to 644 in 37d2837
We'd have to look at config/hardware.h. As you can see, default hardware UART TX & RX are used espurna/code/espurna/config/hardware.h Lines 1795 to 1817 in 37d2837
A single pin is used in case of V9261F, which is UART RX. Changing it from 3 to 4 should set the new build default. #define UART1_RX_PIN 4 // aka D4 Or, you can change runtime setting via terminal (WebUI debug, telnet, HTTP / MQTT api terminal opts) on existing device
After device reboots, it would use the new setting. This would override the default 3 set by the build flag, but uartRx0 would go back to 3 when device settings are erased (e.g. using factory.reset command or holding configured button0 for 10sec) |
Device
V9261F
Version
espurna-1.15.0-dev.git7095cfff+github20220816-wemos-v9261f
Bug description
I wanted to use pre-release builds as there is no calibration page like in 1.9.4 from http://tinkerman.cat/connected-power-meter/
But for some reason I get 0 values on all the statistics in pre-release builds.
Also builds after August 16 has no web server running for wemos-v9261f build. Couldn't find out why through the commits so I couldn't test the latest version. (esp01-v9261f build does have accessible web-ui though)
Steps to reproduce
Upgrade or directly use pre-release builds. Statistics like Power, Voltage or Current stays at zero, unlike in 1.14.1
Build tools used
Custom build with only added one relay to the code. But I only added the relay recently, issue was the same.
Any relevant log output (when available)
Decoded stack trace (when available)
No response
The text was updated successfully, but these errors were encountered: