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

GW25K-MT #36

Open
Asr-roque opened this issue Oct 15, 2021 · 1 comment
Open

GW25K-MT #36

Asr-roque opened this issue Oct 15, 2021 · 1 comment

Comments

@Asr-roque
Copy link

Hello!
I am trying to use this code using ESP32. I have a doubt related to the pin conection of a MAX485 converter.
On the file settings.h I do not found the "transmit enable" pin for configuration (only RX and TX).
The MAX485 converter has the RE / DE pins to define the communication direction.
Could someone help with that?
Thank you!

@Asr-roque
Copy link
Author

I just added this line on GoodWeCommunicator.cpp
goodweSerial->setTransmitEnablePin(settings->RS485EnableTx); // added recently because the use of some MAX485 converters with RE/DE pin
and this line on Settings.h
//rs485 transmit ENABLE pin (added because some RS485 converters need the RE/DE enable pin)
#define RS485_ENTX 4 //D4
and this line on GoodWeLogger.ino
settings->RS485EnableTx = RS485_ENTX; // RS485_ENTX added on settings.h - for RE/DE pins MAX485 converter

now I will try, If it works, I will inform here.
Thanks!

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

1 participant