These are chat archives for esp8266/Arduino

19th
Jul 2016
Me No Dev
@me-no-dev
Jul 19 2016 04:48
@forkineye interesting. I did not expect there to be space between the bytes
Clemens Kirchgatterer
@everslick
Jul 19 2016 05:20
@PyBerger i'd go for code inspection. difficult to track down bugs are often (in my experience even most of the times) memory corruption bugs someplace else. have a look at buffers, thet could overrun, or dangling pointers.
keep in mind, that you do not have memory protection, so these kinds of bugs often show them with some delay
PyB
@PyBerger
Jul 19 2016 07:24
@everslick I have already done several code reviews with no luck. With gdb do you which commands I can use to see the memory mapping and understand what is mapped just before or after the event_callback arg...
Clemens Kirchgatterer
@everslick
Jul 19 2016 07:38
tried setting a watchpoint?
PyB
@PyBerger
Jul 19 2016 08:52
Can we do this with gdb stuff.
Gdb stub sorry... I thought we would only get control when an exception happens to do back traces. ..
Clemens Kirchgatterer
@everslick
Jul 19 2016 12:04
hmm, never got gdb-stub working myself. it does not fit into .text with my sketch, so this was only a wild guess.
Shelby Merrick
@forkineye
Jul 19 2016 14:08
Question.. I'm trying to send a break to the UART immediately after a packet is sent, but I would like to do it via an interrupt. If use the TX FIFO Empty interrupt, am I guaranteed that everything has been transmitted? Or is a there a TX complete interrupt somewhere I'm missing? I'm referring to the ESP8266 Uart User Guide v0.2, is there a better reference I should be using?
Me No Dev
@me-no-dev
Jul 19 2016 14:09
since we already have interrupt handler for uart that deals with incomming buffer, you will have to roll out a full solution
txempty should do what you expect
i think there was a reg key to set the empty level, check that out
Shelby Merrick
@forkineye
Jul 19 2016 14:13
Yeah, there's a threshold I can use. Will try that out.
This is the non-interrupt driven one I have now:
CLEAR_PERI_REG_MASK(UART_CONF0(UART), UART_TXD_BRK);
delayMicroseconds(10);
startTime = micros();
Serial1.write(pbuff, GECE_PSIZE);
SET_PERI_REG_MASK(UART_CONF0(UART), UART_TXD_BRK);
Arrrgghhh.. if the blasted thing would just configure as 8N0 it'd be so much easier!
Mario Mikočević
@mozgy
Jul 19 2016 14:30
offtopic: any Eagle experts here ?
on all smashed objects I've lost silk .. interesting bug
Sergey Anisimov
@anisimovsergey
Jul 19 2016 20:19

Hi All,
I noticed that some code examples do call delay after softAP(...) before getting the IP address. like this

  WiFi.softAP(deviceName.c_str());
  delay(500);
  dnsServer->setErrorReplyCode(DNSReplyCode::NoError);
  dnsServer->start(53, "*", WiFi.softAPIP());

is it really necessary ?

Sergey Anisimov
@anisimovsergey
Jul 19 2016 21:12

sorry for bugging you guys but has anyone tried this type of code?

  WiFi.onStationModeDHCPTimeout([](void) {
    logger::message("DHCP timeout");
  });

linker gives me an error for this event only ' undefined reference to `ESP8266WiFiGenericClass::onStationModeDHCPTimeout(std::function<void ()>)'
other events are fine.

Me No Dev
@me-no-dev
Jul 19 2016 22:03
interesting... should have worked