Closed beireken closed 8 years ago
strange...some noise via serial? I have esp connected only to sdm without any uart and it works without problems from 08-08-2016 (send values to thingspeak every minute and provides simple webserver with json) Powered from UPS & 12V power supply via old POE line terminated by popular 12V to 5V stepdown module.
about code block - not necessary, this only print (to uart) command ESCAPE, which in true terminal programs move cursor to "HOME" (left top) position.
Try debug via for eg OLED display and remove serial connection
I don't think it's a power issue. I tried powering from a power bank. Same issue. I think i'll indeed buy a oled shield to debug...
In the example you do not have a delay between reading registers. If i do this without delay(50), i get false readings. It work with you without delay? Maybe because the sdm120 has lower baud rate default?
Also, just to try and understand, why are you using softwareserial? Cant we use the hardware serial line and use "normal" serial library?
I do not think about power issue but about some peaks on uart - You have issue when wemos is connected to pc via uart line?
Example works for me as is without any problem.
Why software serial? because I need hardware serial for other things... but You can try to change software serial to hardware in Your local copy of repo.
Ok.. i think i got this sorted.. I got a usb to uart lying around and used this to connect to the wemos while my PC was turned off.
Seems all along it was a wifi problem... Still don't know why though... I connected to a different ssid and now it works great!
No need to change to hardware serial. Was just out of interest! Thx for the help.
This issue has me baffled for the passed days. I'm using the sketch below to read from a sdm630 (or 120C with lesser registers read).
With this sketch as soon i sleep of shutdown my main desktop the esp8266 stops reading from the meter and just halts. I have NO idea whatsoever would be the relation to my desktop pc. The esp (wemos D1 mini) is powered by a raspberry official supply. I can disconnect the ethernet of my desktop and still the wemos keeps running fine. But as soon as i sleep it or shutdown the problem happens.
If i insert the power supply in a different outlet in the house it's still the same problem. Any idea why this is happening? I have a different wemos reading from a different device type, which runs fine!
The problem is as soon as i shutdown my desktop i can not read the serial monitor any more, so i'm not sure how to debug this....
Also, can you tell me what this section of code does??
Any help is highly welcome! :)