Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 11 02:14
    andremalenfant opened #558
  • Nov 10 12:27
    tung256 opened #557
  • Nov 07 12:29
    uzi18 commented #504
  • Nov 06 02:11
    Albert245 commented #504
  • Nov 04 18:14
    uzi18 commented #504
  • Nov 04 17:57
    uzi18 commented #504
  • Nov 04 17:57
    uzi18 commented #504
  • Nov 04 17:29
    uzi18 commented #504
  • Nov 04 17:21
    Albert245 commented #504
  • Nov 04 17:17
    Albert245 commented #504
  • Nov 04 17:08
    Albert245 commented #504
  • Nov 04 14:07
    uzi18 commented #504
  • Nov 04 14:06
    uzi18 commented #504
  • Nov 04 04:00
    Albert245 commented #504
  • Nov 04 03:59
    Albert245 commented #504
  • Nov 03 20:33
    uzi18 commented #504
  • Nov 03 17:51
    Albert245 commented #504
  • Nov 03 17:11
    uzi18 commented #504
  • Nov 03 16:49
    Albert245 commented #504
  • Nov 03 16:47
    uzi18 commented #504
Bartłomiej Zimoń
@uzi18
@bobcroft @maxi15865 esp-link-lucjan-apmode.img.zip it is raw flash image compressed with zip, you can check how to flash it on my wiki
bobcroft
@bobcroft
@uzi18 Hi, thanks for the update. I had a look at your Wiki using a Polish to English translator, it is an interesting WiKi. I'll try the img method you describe but I recall that when I tried to unzip the img file, it said it was corrupted.
Ghost
@ghost~61b09d456da03739848c18bd
Hi all, Finally got mega2560+WiFi working with esp-link. Now just need a clear step by step help to setup the megaflash part in windows (7 or 10)for sketches upload. I tried to investigate but it is too complicate, only found bits of info and a lot of Linux which I don´t handle. I have seen a megaflash binary included in esp-link but no idea how to use it from windows. If possible from inside Arduino IDE. Thanks
hutje
@hutje
My esp8266 with ESP-link keeps saying mqtt is disconnected, but every setting is valid...
bobcroft
@bobcroft
@hutje have you got something in your code to send an mqtt message every 5 seconds or so? The broker will disconnect if it doesn't receive something from the device periodically. An Excellent piece of software to see what is happening with your MQTT devices is MQTT Explorer. you can see what is being sent / received on the MQTT broker. Als omake sure if you are using User / Password that you have the correct settings, Make sure your ports are correct as they are different if you are trying to use encrypted message. For a start keep it simple, no TLS, encrytion etc. Also make sure your WiFi is connected properly.
Fernando Garcia
@FernandoGarcia
Hi @tve ! Have you finished the code adaptation to work with PIO? I have tried the platformio branch but I have a crash loop. Best regards.
Fernando Garcia
@FernandoGarcia
This type of error to be more clear.
Fatal exception 28(LoadProhibitedCause): epc1=0x40241781, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000 Fatal exception 28(LoadProhibitedCause): epc1=0x402399ff, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000011, depc=0x00000000 ⸮
Bartłomiej Zimoń
@uzi18
@hutje first check on mqtt server side, maybe it not accept connection
@FernandoGarcia why you need pio version? it is not fullfeatured by the way, beside your exception
Fernando Garcia
@FernandoGarcia
Because I would like to try some changes from a few forks and it's a simple way to build the firmware.
Also the upload process is very simplified.
bobcroft
@bobcroft
@FernandoGarcia Have you tried the ESP8266 or ESP32 Error decoder to see where the error is occuring? both decoders work with PIO. Whilst you get your project working I would suggest you use the Arduino IDE. Nothing gainst PIO, I use it daily but sometimes it is easier to start with the IDE upon which the code was developed.
Bartłomiej Zimoń
@uzi18
@FernandoGarcia try to use pio run --target upload --target monitor
It will also decode exception, so you can pass it here
What changes you interesed?
Fernando Garcia
@FernandoGarcia
Hi! Thanks for all answers!
After erase all the flash I have PIO branch work correctly.
For now I have implemented the login for web interface from @dannybackx 's fork.
Best regards.
Fernando Garcia
@FernandoGarcia
Can I hard code some settings in config.c like .baud_rate = 38400? I can see some build flags in ini file but I can't find a list to all parameters.
If possible what's the right pattern for static IP? I can see a hexadecimal for netmask but looking in the table I can't find 0x00ffffff. In the table 255.255.255.0 belongs to 0xffffff00.
Bartłomiej Zimoń
@uzi18
@FernandoGarcia sorces schould be on my fork but not sure if all patches were pushed to my repo
Mnayak
@manoharnayak
Guys im in a bad fix, i hope one of you can help..
I needed a prototype which also had something to be able to flash an arduino mega using WIFI
so i used esp-link, and (like and idiot) soldered everything on a pcb, according to the instructions (rx tx pull down reset pins the whole thing)
now im able to see my mega serial in the esp-link web page, but i cant seem to flash it with avrdude

home/manou/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude -C/home/manou/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf -v -patmega2560 -carduino -Pnet:192.168.4.1:23 -b115200 -D -Uflash:w:/tmp/arduino_build_569993/Hotpress.ino.hex:i

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "/home/manou/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
     User configuration file is "/home/manou/.avrduderc"
     User configuration file does not exist or is not a regular file, skipping

     Using Port                    : net:192.168.4.1:23
     Using Programmer              : arduino
     Overriding Baud Rate          : 115200

ioctl("TIOCMGET"): Inappropriate ioctl for device
ioctl("TIOCMGET"): Inappropriate ioctl for device
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x48
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x6f
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x70
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x72
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x65
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x73
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x73
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x32

avrdude done. Thank you.

Mnayak
@manoharnayak
I can see that the mega resets and immediately i get the sync errors
any help would be SERIOUSLY appreciated... thanks a lot
Bartłomiej Zimoń
@uzi18
@manoharnayak be sure you have good bootloader burned into mega cpu
@FernandoGarcia you can try
drbytes
@drbytes
Hello. I'm trying to figure out if ESPLINK works properly on a nodemcu ? I was able to flash version v3.0.14-g963ffbb to it and have it join my wifi. However, whatever I try, I cannot get it to read my UART device which is a JBD battery management system (following the guide for this posted here : https://diysolarforum.com/threads/jbd-bms-wi-fi-module.17252/
I can telnet to it, I can use HWGroup Virtual Serial Port to establish a connection to the device but no actual data is exchanged between de nodemcu and the jbd bms.
I've connected the RX/TX marked ports of the nodemcu to the Tx/Rx ports of the bms (where rx->tx and tx->rx)
Does the nodemcu use other pins perhaps ?
The UART pins are set to normal
Hery255
@Hery255
Hi, somebody knows how to use ODD parity for serial?
Bartłomiej Zimoń
@uzi18
@drbytes try to connect rx-rx tx-tx

Ok my bad, After that, go to ucConsole and change the baud rate to 9600

Lastly, select Debug log on the left and select "off"

So go to console subpage od esp-link
drbytes
@drbytes
Thx..
I now have my hands on a ESP32-WROOM-32 . Is that compatible ?
I tried flashing the esplink 1.7 to it and it eats all the bits but in the end it doesn't seem to work (ie show a hotspot to start coonfiguring)
Bartłomiej Zimoń
@uzi18
No esp32 is still not supported
aaronjrivera
@aaronjrivera
I'm using a generic ESP8266 ESP-01S as a serial bridge. It works fairly flawlessly in either STA or AP mode and I can communicate well with my target device. The target device however has a terminal mode for troubleshooting which I can enter into by sending a break command 0x00. Every single byte seems to transmit flawlessly to the device except for 0x00 which is morphed into 0xFF 0xF3. Any ideas why this might be happening or what a workaround could be? Is this perhaps a type or error message?
Bartłomiej Zimoń
@uzi18
But how you send this 0x00
?
Bartłomiej Zimoń
@uzi18
@aaronjrivera please explain
asmeenk
@asmeenk
question about flashing esp-link, I am trying to write directly to the ESP flash chip via a chip clip. In the set up instructions it mentions to use the command line flash size arguments when serial flashing the device. Does that flash size get written into the bootloader file as its flashing? I have been trying to concatenate the files together and write the file through the chipclip but it doesnt seem to be working.
Bartłomiej Zimoń
@uzi18
@asmeenk we got complete flash dump of 32Mb spi flash. If you are interested
ahaupt15345
@ahaupt15345

esp-link and MQTT, callback to Atmega/Arduino

Dear Forum, I would like to ask for help with the following problem:
I have a well-functioning project for several years to control the individual heating circuits of an underfloor heating with the help of a Atmega328.He is assisted by a UART connected ESP8266 with esp-link v3.0.14, via which I transmit the current data as well as the parameterization of the control. I programmed the project in BASCOM. Unfortunately, I have no idea about C...
Now I would like to transmit the outside temperature from another 328/ESP-Modul via MQTT to the underfloor heating module. Unfortunatly I cannot read the EL-CLIENT packet and I cannot find a description of the necessary byte sequences to the esp-link to initiate the MQTT connection, I have difficulty in doing so. As an MQTT broker, Mosquitto runs on a RaspberryPi. I can start the connection, subscribe to a topic and also publish it, but when sending it to another MQTT client the payload is displayed too long (too many bytes) and when receiving the ESP-log shows the payload, but it obviously does not Work the function with the callback address. It doesn't matter about UART. I suspect that the connection to the broker is not set up correctly or the creation of the callback address is incorrect. Is there any tutorial on hex byte sequence for MQTT communication between Atmega and esp-link? Or can someone provide me with a hex dump of communication between Arduino and ESP for MQTT-related communication?
Thank you for the support!

bobcroft
@bobcroft
if you haven't already, you could try looking at the mqtt messages in MQTTexplorer to see exactly what is being sent. That should narrow down the search for the root cause of the problem to either the message encoding / decoding or broker issue. You can set up and publish messages from MQTTexplorer to test the subscribing device too.
ahaupt15345
@ahaupt15345
Hello bobcroft. Thanks for the hint! I will check it. But I'm afraid, i didn't understood the initialisation of the mqtt-connection by the connected atmega. First i send a sync. then i can see there is a command for "setup mqtt". For that i use obviously a wrong syntax, because i get no answer from esp. If i proceed with sub and pub i get wrong behaviour of esp's mqtt like described above. So i'm doubtful, that i can solve the problem at mqtt-side...