-
Notifications
You must be signed in to change notification settings - Fork 726
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
[Solved] How I can get the IP address of the esp-link over SLIP? #418
Comments
Hello, good news!!! The IP found by the El-client, The problem seems to be the ESP-01, which has 8Mbits of EEPROM. This log below was obtained with NodeMCU Lolin V3 with 32Mbtis of EEPROM. I suspected the behavior of the ESP-01, and I suspected also the program ESPFlashDownloadTool_v3.6.4.exe whenever I try to use it the LED of the NodeMCU flashes, even if it appears "Finish". With the program ESP8266Flasher.exe, the NodeMCU did not blink anymore, the boot was perfect. ESP8266Flasher.exe (About):
Result of NodeMCU + esp-link v3.2.47 + El-Client (and ESP8266Flasher.exe):
El-Client source: https://github.com/jeelabs/el-client/tree/dd51416303b541e4e3d77d24cf47978824f4921d
|
Interesting script. I would LOVE to be able to MQTT publish wifi, IP, and MAC info to a database when a station boots. I too have problems with mDNS. Glad I stumbled upon your code. When I try to compile it on Arduino for an ESP-01S I get: 'class ELClientCmd' has no member named 'GetWifiInfo'. I am running esp-link 3.0.14 and el-client dated 14-dec-2016 (no version). |
Hello, the El-Client is a library, it is available in the link above, it seems to be the same developers of esp-link, to compile, it is necessary to put the library in the Arduino folder, just like any other library, or in the user folder , usually documents, to prevent it from being deleted in an Arduino IDE update.
|
Installing an Arduino Library: |
(Note, it may be necessary to restart esp8266 after an Arduino program recompile) |
https://github.com/jeelabs/esp-link/releases I used the "Upgrade Firmware" page of the esp-link to upgrade from "esp-link-v3.0.14" to "esp-link-v3.2.47" It ran on ESP-01 with modified memory (from 25Q80 to 25Q64, need electronic welding process) and also with NodeMCU Lolin V3 (ESP-12). With ESP-01 and 25Q80 memory did not work well. |
Thanks. I have realized that the el-client you are using is a forked version. After installing that in my Arduino library I could compile. Had to modify your code slightly as most of my Arduinos have a watchdog timer, and once you use it you always have to use it. That being said, I get IP Address: 0.0.0.0 and all the others are zeros too. Not sure what you mean by 25Q80 / 25Q64 or welding process. Are you referring to a setting when flashing the ESP-01S ?? |
For:
Please see if this helps: About memory replacement, I did this because my esp-01 were unstable, flashing error, and the esp-link was very unstable too. Only by flashing directly to the Arduino IDE did things become more stable, but not totally. So I remembered in another module that I already had to change the memory, the HLK-RM04. In fact, it was from this HLK-RM04 that I got the 25Q64 (which I bought years ago) and put it on the ESP-01, that's how I discovered that the esp-01 problem must be memory, little memory space, or maybe fake memory. Errors like this were occurring: |
Udp sample code combined with get-info:
|
I have everything working! I did not weld (solder) any new memory chip on my ESP-01S, just a standard stock module I bought on eBay a few months ago. One thing different... flash addresses that I used for the ESP-01S which is a 8Mbit module are: 0x00000 boot_v1.7.bin This is recommended on the page https://github.com/jeelabs/esp-link/blob/master/FLASHING.md and I see you are using different addresses. All my other settings are identical to yours. I used the ESP8266 Download Tool 3.6.5 and flashed the chip with an FTDI232 module. I was unable to firmware upgrade from "esp-link-v3.0.14" to "esp-link-v3.2.47" over the air. Thanks for your excellent help in solving this. I feel a bit uneasy using esp-link Alpha software, and a forked version of el-client, but the benefits may outweigh that. I'll test this software setup in some non-critical things and see if it can run for a month without error. I hope anyone in the future can refer to our conversations as it will really help them out. Also, Thorsten von Eicken (jee-labs guru) and Xose Perez (Espurna) are toying with the idea of esp-link version 4 as a joint project. This would be fantastic as Xose's code has far superior networking capability and it also sends out JSON every few minutes containing things like MAC address, ip, date/time and a lot more. This to me is one of the biggest upcoming things for 2018/early 2019. |
Very good, I'll try, thank you! I do not know about the progress of these projects, esp-link and el-client, I think developers are more concerned about other things. Has a chat that has activity yet:
|
I tried the addresses that you told me (for esp-01 and 25Q80), it looks like it got more stable, but it still did not work correctly the firmware upgrade part, anyway, I appreciate it. |
After my testing in the next month I will keep you posted if I learn anything new. Using the ESP8266 tool is sometimes crazy getting communications established. I frequently get comm errors and have to power off/on the FTDI module and try again. Also, I always erase any unknown chip before programming it. The conversations on esp-link v 4 are at: Interesting to see when a release candidate will be ready. |
I've been running about 25 esp-link/el-client stations (ESP-01s and Arduino) on my network for 5 months using snippets of your code above. Rarely has any station failed or locked up. Once in a while a station will boot with all 0.0.0.0 for the IP address, probably a timing issue. |
@tve should be added to ELClient, if it is supported by 3.2.x firmware |
I have followed this post, and am able to compile and upload the posted code, but am getting the |
First find in issues my build for 3.2 and use latest el-client library. |
@brandon-feder exactly This copy of EL-Client: https://github.com/dannybackx/el-client |
Hello,
I tried the El-Client software to do a UDP transmission to tell the client their IP, like as the arduino system, but I do not know how I can get the IP address of the esp-link over SLIP.
The broadcast worked, but I can not get the ID hostname or IP of the esp-link.
I found a sample code (maybe not official) that does not work, the routines return 0 at all.
Is it possible for a UDP to post its IP address and ID (to 255.255.255.255) after the uC sends a command through SLIP?
I tried to make mDNS Android APP, but I have no success, apparently older systems with Android does not support mDNS.
The text was updated successfully, but these errors were encountered: