These are chat archives for esp8266/Arduino

13th
Nov 2015
brutzler
@brutzler
Nov 13 2015 00:50
Hi, did something without knowing about the results: Made the download from here: https://github.com/arduino/Arduino/pull/4107#issuecomment-155714779 . unzipped the files into temp directory and started the arduino.exe. After this I lost all preferences of my "normal" Arduino 1.6.5. Even the directory with the staging (...appdata\roaming\arduino15) is nearly empty.
brutzler
@brutzler
Nov 13 2015 00:55
What a f... Deleting files without asking....
kathir1951
@kathir1951
Nov 13 2015 00:59
Hi everyone .Is it possible to load third file in addition to 2 bin files with upload button by changing perform text.I want to upload webpage.espfs using upload button
kathir1951
@kathir1951
Nov 13 2015 01:42
Is it possible to run external make file using Arduino IDE
frippe75
@frippe75
Nov 13 2015 08:53
Example BasicOTA compiles fine without the #include <WiFiUdp.h>
Might be coming from the old DNSSD_Arduino_OTA-sketch.
Me No Dev
@me-no-dev
Nov 13 2015 12:16
@brutzler you should not have posted your problem in the officiall Arduino pull request man :) It has nothing to do with the pull request itself
what was your appdata full with that you lost?
brutzler
@brutzler
Nov 13 2015 12:24
Sorry. still guessing and searching, what is where......
What I lost: The whole esp8266 installation. Some modified libs, the stuff and changes, we discussed last time,....
And main problem is, that I do not get compiled my project any more. http://www.esp8266.com/viewtopic.php?f=26&t=6543
Will have to spend some of my spare time this afternoon, to clear this. Yes I make backups, but not every day...
Me No Dev
@me-no-dev
Nov 13 2015 12:58
did you by any chance had your old IDE open at the same time that you installed and opened the new one?
brutzler
@brutzler
Nov 13 2015 13:04
Hmmm... I can not say, that it was definitely closed. What is the background of your question/speculation?
Me No Dev
@me-no-dev
Nov 13 2015 13:06
when the IDE opens, it get's handles to the settings, so the second one opened could not get a handle to the settings file
if you close the first one, before the second one, ther is a chance that you will end up with broken settings
and I imagine things like the esp json location are stored there
I had it happen to me while working on the OTA update
I would also ask you to note in the official pull cnversation that the problem is unrelated
maybe open another issue in that repo, but let them know that out OTA code has nothing to do with what happened to you
Me No Dev
@me-no-dev
Nov 13 2015 13:11
it will be sad it they delay the OTA merge because of something unrelated
also, since you modify the esp core, you should maybe fork the repo and pull your fork to the IDE hardware folder as noted in the repo README.md and be able to keep your changes even if you lose the files
brutzler
@brutzler
Nov 13 2015 13:36
OK, deleted the post.
Did complete reinstall of Arduino-IDE and ESP-package. Import of all needed libs. -> Project is compiling again. (Beside the warning of the time_t mktime...)
Is there already an actual boards.txt with ota für ESP-12E? Otherwise, I will have to modify this again for my own.
brutzler
@brutzler
Nov 13 2015 14:08

BUT I do not get the OTA running. I am pretty sure, I did all like before the crash. But I get always this error with the DNS_SD_Arduino_OTA-sketch

Traceback (most recent call last):
File "C:\Users\brutzler\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-1160-gef26c5f/tools/espota.py", line 195, in <module>
sys.exit(main(sys.argv))
File "C:\Users\brutzler\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-1160-gef26c5f/tools/espota.py", line 190, in main
return serve(options.esp_ip, options.esp_port, options.image, command)
File "C:\Users\brutzler\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-1160-gef26c5f/tools/espota.py", line 50, in serve
sent = sock2.sendto(message, remote_address)
socket.gaierror: [Errno 11004] getaddrinfo failed

No more ideas atm
frippe75
@frippe75
Nov 13 2015 14:39
can you do a nslookup of the host you are trying to reach?
disregard...
brutzler
@brutzler
Nov 13 2015 14:42
Yes, and I see it in the network ports.. But from nslookup, i get the info back from my DNS-server (Router)
frippe75
@frippe75
Nov 13 2015 14:43
11004 = Valid name, no data record of requested type.
brutzler
@brutzler
Nov 13 2015 14:43
and what does this mean?
frippe75
@frippe75
Nov 13 2015 14:44
do you get an A record back?
brutzler
@brutzler
Nov 13 2015 14:44
??? sorry do not know what you mean..
frippe75
@frippe75
Nov 13 2015 14:45
try # dig <hostname>
brutzler
@brutzler
Nov 13 2015 14:47
hmm.. working on windows.
Elia Bieri
@eliabieri
Nov 13 2015 15:21
has anyone managed to get a nrf24l01 working?
Me No Dev
@me-no-dev
Nov 13 2015 15:47
@eliabieri you have a trivial AVR to ESP problem
where you see #include <evr/progmem.h>
replace with:
#ifdef ESP8266
#include <progmem.h>
#else
#include <avr/progmem.h>
#endif
but, you want to run a 2.4GHz wireless right next to the 2.4GHz WiFi, so I do not promise you will like the results
especially if the 24l01 is one of the PA+LNA models
Elia Bieri
@eliabieri
Nov 13 2015 16:02
thanks, I changed it. I will make a PR to the RF24 library
these errors stayed
they define PSTR and then include progmem.h
therefore you get PSTR redefined error
not sure what is the rationale for this #if 1 ...#endif block
this is the fork from TMRh20, nobody uses the original one anymore
Me No Dev
@me-no-dev
Nov 13 2015 16:29
so have you added a config for the esp?
Elia Bieri
@eliabieri
Nov 13 2015 16:32
my RF24_config.h now looks like this: http://pastebin.com/Sats7qkg
Me No Dev
@me-no-dev
Nov 13 2015 16:35
you need to put it above
// Progmem is Arduino-specific
// Arduino DUE is arm and does not include avr/pgmspace
#if defined (ARDUINO_ARCH_ESP8266)

  #include <progmem.h>
  #define PRIPSTR "%s"
Elia Bieri
@eliabieri
Nov 13 2015 16:43
I`m sorry for my stupidity.
// Progmem is Arduino-specific
// Arduino DUE is arm and does not include avr/pgmspace
#if defined (ARDUINO_ARCH_ESP8266)

  #define PSTR(x) (x)
  #define printf Serial.printf
  #define sprintf(...) os_sprintf( __VA_ARGS__ )
  #define printf_P printf
  #define strlen_P strlen  
  #define PROGMEM
  #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
  #define pgm_read_word(p) (*(p))
  #include <progmem.h>
  #define PRIPSTR "%s"

#elif defined(ARDUINO) && ! defined(__arm__) && !defined (__ARDUINO_X86__)
  #include <avr/pgmspace.h>
  #define PRIPSTR "%S"
#else
  #if ! defined(ARDUINO) // This doesn't work on Arduino DUE
  typedef char const char;
  #else // Fill in pgm_read_byte that is used, but missing from DUE
  #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
  #endif


  typedef uint16_t prog_uint16_t;
  #define PSTR(x) (x)
  #define printf_P printf
  #define strlen_P strlen
  #define PROGMEM
  #define pgm_read_word(p) (*(p))

  #define PRIPSTR "%s"

#endif

#endif
Me No Dev
@me-no-dev
Nov 13 2015 16:44
:) you left the wrong things there mate
  #define PSTR(x) (x)
  #define printf Serial.printf
  #define sprintf(...) os_sprintf( __VA_ARGS__ )
  #define printf_P printf
  #define strlen_P strlen  
  #define PROGMEM
  #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
  #define pgm_read_word(p) (*(p))
those need to go away
those are decared in <progmem.h>
Elia Bieri
@eliabieri
Nov 13 2015 16:45
Ah now I get it, I should learn C