Elektroda.com
Elektroda.com
X

Search our partners

Find the latest content on electronic components. Datasheets.com
Elektroda.com

TCP-IP / RS485 ESP8266 converter

dktr 23376 47
This content has been translated flag-pl » flag-en View the original version here.
  • #32
    george2002

    Level 21  
    dktr wrote:
    Compile it under Arduino 1.6.7


    This is a problem in Windows XP, I worked on the topic, just type in google Windows xp arduino esp8266 bits

    Info e.g. Here
  • #33
    po_48
    Level 8  
    thanks helped
    now i have a problem with the file
    es-rs485_v2.ino
    Arduino: 1.6.7 (Windows XP), Tile: "Generic ESP8266 Module, 80 MHz, ck, 26 MHz, 40MHz, QIO, 8M (7M SPIFFS), 2, v2 Lower Memory, Serial, None, Only Sketch, 115200"

    Project options changed, reload all
    D: \ a \ ESP \ es-rs485_v2 \ es-rs485_v2 \ es-rs485_v2.ino: In function 'void setup ()':

    es-rs485_v2: 19: error:'earchwifi 'was not declared in this scope

    searchwifi ();

    ^

    exit status 1
    'nazwawifi' was not declared in this scope

    in the file
    WiFiUartTransparentBridge.ino
    compilation runs smoothly
  • #34
    dktr
    Level 22  
    You mixed up something in the code. I downloaded pik again and it compiles without any problems.

    The sketch uses 238,477 bytes (54%) of program memory. The maximum is 434,160 bytes.
    Global variables use 32,532 bytes of (39%) dynamic memory, leaving 49,388 bytes for local variables. The maximum is 81,920 bytes.
  • #35
    po_48
    Level 8  
    I downloaded all the es-rs485_v2.ino files
    what are they in the subject and I have the same in all of them
    unless the arduino-1.6.7 version does not suit him
  • #36
    Janusz_kk
    Level 34  
    po_48 wrote:
    bits / os_defines.h: No such file or directory

    You're missing this file.
  • #38
    po_48
    Level 8  
    why I have these errors
    Arduino: 1.8.5 (Windows XP), Tile: "Generic ESP8266 Module, 80 MHz, ck, 26 MHz, 40MHz, QIO, 1M (64K SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 9600"

    Project options changed, reload all
    Archiving built core (caching) in C: \ DOCUME ~ 1 \ admin \ SET ~ 1 \ Temp \ arduino_cache_730353 \ core \ core_esp8266_esp8266_generic_CpuFrequency_80, ResetMethod_ck, CrystalFreq_26, FlashFreq_40, FlashMode_qio, FlashSize_1M64, LED_2, LwIPVariant_v2mss536, Debug_Disabled, DebugLevel_None ____, FlashErase_none, UploadSpeed_9600_6ab5e78c2376f2c1663435181e2f3eb0 .and
    The sketch uses 250,248 bytes (26%) of program memory. The maximum is 958,448 bytes.
    Global variables use 32,656 bytes (39%) of dynamic memory, leaving 49,264 bytes for local variables. The maximum is 81,920 bytes.
    warning: espcomm_sync failed
    error: espcomm_open failed
    error: espcomm_upload_mem failed
    error: espcomm_upload_mem failed
  • #39
    dktr
    Level 22  
    COM port visible in the system? selected this port in ArduinoIDE? If the port is present, is there any activity when trying to program? (led RX / TX)? The 3.3V from this programmer on some boards has too low current efficiency, what do you power it with?
  • #40
    po_48
    Level 8  
    port visible LEDs are flashing
    3.3v power supply given separately

    Added after 4 [minutes]:

    in ESPlorer, communication is two-way and in ArduinoIDE as if only one stone

    Added after 23 [minutes]:

    in ArduinoIDE I am sending in the serial port monitor I am sending node.info () and I do not receive a response
    reaction to physical reset
    NodeMCU 0.9.6 build 20150406 powered by Lua 5.1.4
    lua: cannot open init.lua
  • #41
    dktr
    Level 22  
    It looks like you would not connect GPIO0 to ground before programming and ESP is still lua and not soft from the thread.
  • #42
    po_48
    Level 8  
    it seemed to me that the gpi00 short circuit is used for flashing

    Added after 14 [minutes]:

    and this is where the dog was buried, but these are the mistakes of someone who starts playing with andruino, thanks for the help
  • #43
    SpiderPL
    Level 2  
    uzi18 wrote:
    george2002 wrote:
    Is it something like esp-link? https://hackaday.io/page/1304-virtual-serial-port-tunnel-to-use-with-esp-link " target="_blank" rel="noopener nofollow ugc" data-caption="" title="http:// https://hackaday.io/page/1304-virtual-serial-port-tunnel-to-use-with-esp-link " class="postlink "> 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 from what I read quickly :)
    How about stability? and it works at what speeds and whether they can be changed easily or the code needs to be uploaded to esp8266 to make it different :) ?


    There is an esp-link latka with rs485 support, you have to look at repo / issue

    Unfortunately, I did not manage to make this version work ...
    However, it worked from https://github.com/pvvx/esp8266web
  • #44
    scaevola
    Level 10  
    I know I'm digging up an old thread, but I'm looking for information to control.
    I am trying to make a link from the pro-vent recuperator to domoticz on the basis of your program, but somehow it does not work for me. First of all, I don't know how to master the device addressing.
    Is your link transparent to the device? This would mean that I have to give an address on domoticzu. How is the end of the bus terminated?
    Second, when I tried to connect to the driver in parallel, the driver kept crashing errors. I have a manual for a recuperator and the addresses are described there - but I must admit that I do not understand rs485 too much.
    I use a converter like yours.
  • #45
    levy^
    Level 16  
    You must bear in mind that RS485 is a topology / type of network when it comes to equipment, and what you put on it, e.g. modbus, is a completely different pair of wellies.
  • #46
    scaevola
    Level 10  
    Yes, I know that rs485 is a hardware protocol and modbus is software.
  • #47
    levy^
    Level 16  
    write to PW then maybe I can help, let's not clutter this thread, just describe exactly what equipment you have
  • #48
    ACCel
    Level 22  
    Using a different adapter (in the picture) you can use any software that supports the TTL serial port.
    TCP-IP / RS485 ESP8266 converter
    I used ESP-Easy.
    The author of the thread wrote the software itself, but I preferred to use the ready one with the web panel and other features.
    But I did not find an ESP software that would support the DE pin used for RS485 transmission signaling (because it is half-duplex).
    Therefore, you need to buy an adapter that is not the usual MAX3485, and additionally converts serial full-duplex transmission to half-duplex.

    You can also connect any additional sensors to esp-easy as you need.

    levy^ wrote:
    modbus is a completely different pair of wellies

    https://www.elektroda.pl/rtvforum/viewtopic.php?p=19386913#19386913

    Here is perhaps the easiest way to program modbus in python.