These are chat archives for esp8266/Arduino

29th
Jun 2016
Clemens Kirchgatterer
@everslick
Jun 29 2016 08:48
can I assume GPIO2 to be unused by default or is the core sending something over that TX1 ?
Me No Dev
@me-no-dev
Jun 29 2016 08:49
it's always Serial TX on boot
so while the bootloader is running, it's sending the same data as on serial 0
Clemens Kirchgatterer
@everslick
Jun 29 2016 09:11
ok, thats killing my RTC that is connected there :-(
Me No Dev
@me-no-dev
Jun 29 2016 09:12
are you using it for SCL?
Clemens Kirchgatterer
@everslick
Jun 29 2016 09:12
lemme check
no, it's SDA
Me No Dev
@me-no-dev
Jun 29 2016 09:14
should not be an issue then...
Clemens Kirchgatterer
@everslick
Jun 29 2016 09:14
SCL is GPIO4
Me No Dev
@me-no-dev
Jun 29 2016 09:14
what is the RTC?
Clemens Kirchgatterer
@everslick
Jun 29 2016 09:14
DS3231
Me No Dev
@me-no-dev
Jun 29 2016 09:14
always worked fine for me
are you sure that is what is killing your RTC?
maybe power?
Clemens Kirchgatterer
@everslick
Jun 29 2016 09:16
not quite, it used to work on GPIO5 and GPIO14
then i moved it to GPIO4 and 2 and now it does not respond anymore
formerly i tried to share the clock with a SPI device, but that did not work
so i rearranged them
Clemens Kirchgatterer
@everslick
Jun 29 2016 09:21
should i try sharing SDA with MOSI ?
Clemens Kirchgatterer
@everslick
Jun 29 2016 09:29
somebody on stackexchange suggested to wire CLK to SDA and MOSI to SCK, because that would avoid bitcombinations on i2c that could be misinterpreted
that would even spare me a full GPIO pin
Me No Dev
@me-no-dev
Jun 29 2016 09:30
have not thought about it that way..
can't come up with answer without some serious thinking. Surely takes less to give it a go :P
Clemens Kirchgatterer
@everslick
Jun 29 2016 10:09
hehe - indeed. but first comes lunch! :-P
Martin Ayotte
@martinayotte
Jun 29 2016 12:58
@everslick , I'm using Wire on GPIO0/GPIO2 without any issue for more than a year.
Clemens Kirchgatterer
@everslick
Jun 29 2016 13:13
hmm, i have my own bitbanging code. maybe Wire does something to switch of serial?
Martin Ayotte
@martinayotte
Jun 29 2016 13:19
it is doing pinMode(GPIOx, INPUT_PULLUP) right at the beginning.
Clemens Kirchgatterer
@everslick
Jun 29 2016 14:39
yeah, but it does not switch off any debugging output in the core neither.
@martinayotte do you have SDA or CLK on GPIO2 ?
Martin Ayotte
@martinayotte
Jun 29 2016 14:43
According to my sketch and wiring, I'm doing Wire.begin(0, 2), so it is wired as SDA=GPIO0 and SCL=GPIO2.
Both with external pullups.
About debug output, I'm pretty sure it is turned off by the pinMode()
Clemens Kirchgatterer
@everslick
Jun 29 2016 14:49
that could be
do you have a button on GPIO0 as well?
Clemens Kirchgatterer
@everslick
Jun 29 2016 15:09
testing with 2 and 4...
Martin Ayotte
@martinayotte
Jun 29 2016 15:29
But the button on GPIO0 isn't pressed for normal use, and almost never since I'm using OTA since months.
Clemens Kirchgatterer
@everslick
Jun 29 2016 15:43
ic. i use the GPIO0 for factory reset and debugging, so when i press it short i see a dump of debug messages, if i hold it for 5 seconds, the device factory resets (clears eprom).
so i wonder, if this will conflict with I2C
Clemens Kirchgatterer
@everslick
Jun 29 2016 16:02
argl. it works.
even with shared SPI bus
and i don't have any idea why it did not before.
Martin Ayotte
@martinayotte
Jun 29 2016 16:21
Great !
Clemens Kirchgatterer
@everslick
Jun 29 2016 16:28
thx, for your help though! always appriciated!
Shelby Merrick
@forkineye
Jun 29 2016 19:01
I'm having issues finding mDNS entries for my ESP8266. I'm using https://chrome.google.com/webstore/detail/mdns-browser/kipighjpklofchgbdgclfaoccdlghidp and can't get anything to show up after I've added a service.
for instance:
/* Setup DNS-SD */
    if (MDNS.begin("esp8266")) {
        MDNS.addService("e131", "udp", E131_DEFAULT_PORT);
        MDNS.addService("http", "tcp", HTTP_PORT);
    } else {
        LOG_PORT.println(F("** Error setting up MDNS responder **"));
    }
it sets up just fine, and i can make mDNS queries for other devices from it, but I can't see my own services
Shelby Merrick
@forkineye
Jun 29 2016 19:08
I can use MDNS.queryService and see other devices / services on my network, but can't get my esp's to show up at all
Me No Dev
@me-no-dev
Jun 29 2016 19:09
interesting... I see the arduino service, but not the web
Shelby Merrick
@forkineye
Jun 29 2016 19:10
what sketch you using?
or is that the updater service?
Me No Dev
@me-no-dev
Jun 29 2016 19:15
how does sketch matter :)
I haave web server, added a service
Shelby Merrick
@forkineye
Jun 29 2016 19:16
so i can see how you added it? lol
Me No Dev
@me-no-dev
Jun 29 2016 19:16
MDNS.addService("http","tcp",80);
Shelby Merrick
@forkineye
Jun 29 2016 19:17
where did the Arduino service come from then? you have the OTA updater running in sketch too?
Me No Dev
@me-no-dev
Jun 29 2016 19:17
ArduinoOTA.setHostname("async-esp");
  ArduinoOTA.begin();
  MDNS.addService("http","tcp",80);
there :D
Shelby Merrick
@forkineye
Jun 29 2016 19:17
will give that a shot, thanks!
Martin Ayotte
@martinayotte
Jun 29 2016 19:17
I've helped someone on the forum who didn't saw his telnet service, the setHostname() was important.
Me No Dev
@me-no-dev
Jun 29 2016 19:18
I still do not see the web server though
Martin Ayotte
@martinayotte
Jun 29 2016 19:22
In fact, it was WiFi.hostname(), and personally, I was using wifi_station_set_hostname()
Me No Dev
@me-no-dev
Jun 29 2016 19:40
MDNS working fine on my end
Shelby Merrick
@forkineye
Jun 29 2016 19:41
your web server finally show up?
Me No Dev
@me-no-dev
Jun 29 2016 19:41
yup
it was before
my console tool was dumb
Shelby Merrick
@forkineye
Jun 29 2016 19:43
arrgggg.. looks like its this dumb browser now. shows up with avahi-browse -a