-
Notifications
You must be signed in to change notification settings - Fork 270
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
Cannot configure latest espsoftwareserial to work with V9261F device #224
Comments
Why are you driving the lines in inverted logic? |
because this is how it is physically connected |
https://github.com/iotfridgesaver/WiFiPowerSensor/blob/master/PowerMeter.pdf |
I checked the input current. Seems okay. Your drawing shows you are using an esp01. The RX pin is IO3. You said you are using io4 |
Its not my drawing. And i am using ESP-12E |
and yes i am using GPIO04 |
Helps if we have the basics :) |
v9261f sensor connected thru the optocoupler |
http://www.vangotech.com/uploadpic/151321699962.pdf |
if it really helps i can redraw the schematics according to my wiring diagram. I am using ESP-12E GPIO04 pin to read data from V9261F sensor thru optocoupler in inverted configuration. |
@Demonic098 Thanks for providing your hardware diagrams. There may be an issue with the altered pullup states since the three year old release you were using until now. Please carefully inspect the README, to setup you build environment correctly, and try out the latest EspSoftwareSerial release 6.14.0 that is part of ESP8266 Arduino Core's master branch.
|
@dok-net ok i'll do that but i don't think internal pullup resistor has any impact on anything since optocoupler on active high connects pin directly to ground. |
what other setting should i use |
I am wondering how the old EspSoftwareSerial, which only supported 8N1, was ever able to communicate with the device that is documented as using 8O1. But yes, you should select the parity that your device requires, which is supposed to be odd, at 8 data bits and one stop bit. |
@Demonic098 Have you been able to implement the suggestions, can you report any latest findings? |
Sorry for late reply. Was busy lately.
skip and data is a raw data from sensor and if CRC is correct then data decoded and printed as well. |
Strange thing. By default Arduino board manager install ESP8266 Arduino Core v3.0.2 with EspSoftwareSerial 6.12.7 so I have to manualy update to latest. |
Yes latest version with |
Older commit (git checkout f4f8fcf ) works without problem with V9261F device
older working serial init:
But newer version doesn't work no matter how to configure :
I also tried 8O2, 8N1, 8N2, 8E1, 8E2
but according to V9261F manual
The text was updated successfully, but these errors were encountered: