andresarmento / modbus-arduino

A library that allows your Arduino to communicate via Modbus protocol, acting as a slave (master in development). Supports serial (RS-232, RS-485) and IP via Ethernet (Modbus IP).
BSD 3-Clause "New" or "Revised" License
457 stars 270 forks source link

AT command mode not working #6

Open Danixsadati opened 8 years ago

Danixsadati commented 8 years ago

hello i program the esp8266 at command mode lamp.ino on mega2560 and connect it with OPC but its always get Bad data and not responding..:( what is the problem here? (i use esp-01 black versian and i dont flash it.)

Alexbox364 commented 8 years ago

Hello, I have the same issue than you. I haven't found the solution yet to have it work. I use the same ESP8266 version than yours. I will try another version. and see what happens...

Alexbox364 commented 8 years ago

By the way, many thanks to the author for this great work !! I tested the ESP8266 on nodeMCU & the ethernet versions & they work like a charm!

Danixsadati commented 8 years ago

hello you say that using the esp8266 mcu?and program it?

Alexbox364 commented 8 years ago

Hello. Among all the versions available for Modbus TCP/IP, I tried those :

Danixsadati commented 8 years ago

hello yes i jsut can say thank you to Mr.samento for this great library....i tried AT-command mode on arduino mega to such as@Alexbox364 too!but cant find that..:(

Alexbox364 commented 8 years ago

Hi, I finally got the library to work with the ESP8266 with AT command firmware. Here is what I did :

I took me a while to have it work but now I have thanks to Andreas a nice Wifi TCP modbus slave! My slave is just a bit slow to receive data (aprox. 2 secs) compared to the Ethenet versions (almost instantaneous).

Alexbox364 commented 8 years ago

By the way my hardware is Arduino nano rev 3 + ESP-7 (with antenna) + LM1117MP-3.3 to stepdown voltage from 5V to 3.3V to power up the ESP8266. I haven't made anything special to step-up voltage on Serial interface etween arduino and ESP8266.

Danixsadati commented 8 years ago

@Alexbox364 hello too! have you ever test this code on project?the esp is unstable and reset many times!!why?????i cant use it in my projects.i have esp8266 esp-07 with antena and lm1117 3.3 and relay...but it resets and when i turn the relay on i get bad data in opc...could you please help me?