TCP-IP / RS485 ESP8266 converter

Simple TCPIP / RS485 converter.
The device allows you to create a remote port rs232 / rs485 in linux and windows systems and allows communication with devices via lan / internet. The project is based on UARTtransparentbridge code, but MAX485 support has been added to it. ESP8266 programmed in ArduinoIDE, source code and "schematic" attached.
On linux, after booting the device, just use 'socat':
Code: Text
When this command is issued, a virtual UART will be created in / dev / espS0.
Tested on the ORNO OR-WE-504 indicator.

Comments
Is it something like esp-link? https://hackaday.io/page/1304-virtual-serial-port-tunnel-to-use-with-esp-link because esp-link has a lot of options, only the RS485 support is probably not implemented... [Read more]
Yes, it will be the same as ESPlink, in 1200,2400,9600 it works fine but requires changes in the code - serial.begin () I have nothing else with rs485 except this orno indicator, I polled the counter all... [Read more]
Does this converter work at 3.3v with esp? It shouldn't because they're at 5v. [Read more]
it should work, but at much shorter distances [Read more]
It is enough to replace it with the MAX3485 and everything in accordance with the art and ranges ;) [Read more]
On what basis do you calculate the time needed to control the RE / DE signal? Doesn't cut anything with longer thongs? [Read more]
Not supporting RS485 (DE signal) is not a problem: https://obrazki.elektroda.pl/5164797400_1511769306_thumb.jpg Proven - works, also in many production devices. Added after 1 [minutes]: ... [Read more]
on the first post, re_de is controlled from the ESP pin, so the diagram you pasted later does not make sense. By the way, I use a similar one myself in my projects. I am asking this because in arduino... [Read more]
And how to select elements when UART works at the 3V3 level? MAX485 to MAX3485, what about the rest? [Read more]
what about the rest? stays the same ... [Read more]
I meant the transistor and resistors because the entire power supply will change from 5V to 3V3. If nothing needs to be changed that's great, but I preferred to ask. Thanks, I'll be testing soon... [Read more]
There is an esp-link latka with rs485 support, you have to look at repo / issue [Read more]
Gentlemen, everything works great, but ... but there is a small problem ... If, for example, I reset the router, ESP loses the connection and can not reconnect - just do ESP reset and everything is OK... [Read more]
Are you talking about the software from 1 post? [Read more]
Yes. [Read more]
I made a fix, after breaking the wifi connection, the program waits for reconnection and resumes work. [Read more]
Hello, I also use this converter. I get an error compiling this new version es-rs485: 19: error:'earchwifi 'was not declared in this scope How can I fix it? [Read more]
I think I broke something and I didn't attach this file, but the one from this attachment compiles without error. Another thing is that ESP itself will reconnect to the network and will work, but... [Read more]
Already ok. New version of arduin ide helped. Thanks [Read more]