These are chat archives for esp8266/Arduino

1st
Nov 2016
Alexey Andreyev
@a-andreyev
Nov 01 2016 10:29
Hello! I'm facing udp packets receiving problem in SoftAP mode. I'm switching AP and STA modes with the external two-state button, and it looks like it is possible to receive a udp packet in AP mode only when previously connected to STA. No incoming packets after reboot in AP mode. Is receiving packets in AP mode generally possible?
Me No Dev
@me-no-dev
Nov 01 2016 11:08
yes
else captive portals would not work
are you waiting for multicast udp?
Alexey Andreyev
@a-andreyev
Nov 01 2016 11:17
Thank you! Just regular udp from the same local network. Will try to provide minimal example later
Holger Lembke
@holgerlembke
Nov 01 2016 11:42
Any idea what this causes?
Exception (29):
epc1=0x4000e1b2 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: sys 
sp: 3ffffd70 end: 3fffffb0 offset: 01a0
Holger Lembke
@holgerlembke
Nov 01 2016 12:18
serialtcp might be working, but is slow as hell....
Pablo2048
@Pablo2048
Nov 01 2016 12:50
@holgerlembke after client.connect try to use client.setNoDelay(true); - maybe this speeds things up :-)
Holger Lembke
@holgerlembke
Nov 01 2016 13:01
@Pablo2048 thanks, but not that much change. I try to understand why and when print class uses write(char) and write(*char,len).
Pablo2048
@Pablo2048
Nov 01 2016 13:04
@holgerlembke ok, then try to use github ESP core (not 2.3.0 stable one) - in my case most time was spent in client.write (in 2.3.0 stable it was about .2 sec @ each packet sent, in github version it is about 250us)...
Alexey Andreyev
@a-andreyev
Nov 01 2016 13:43
sorry to bother, no problems with udp via minimal example, so should look deeply in my full sketch
Holger Lembke
@holgerlembke
Nov 01 2016 19:16
my little serialtcp-debuggerthing seems not to want to connect again, if connection fails....
  if (_ip!="") {
    if (!_client.connect(_ip.c_str(),_port)) {
      Serial.println("Debug cant open ");
      if (! _reconnect) {
          _ip="";
      }
      return;
    }
  }
is what I do to open the connection before every send. _reconnect is true, so ist should reconnect if it fails to connect.... but it does not.
I never see the debug message...
Clemens Kirchgatterer
@everslick
Nov 01 2016 19:18
top  1.11.2016 20:18:17 up 00:03:01
Mod: 15 total, 14 active, 1 inactive
CPU: 38% 20466 loops/s @ 160MHz
Mem: 52% 17984 bytes free heap, 2080 bytes free stack
Net: 0% 0 bytes/s, SSID=THF, RSSI=28%

Filesystem      Size       Used      Avail   Use%   Mounted on
spiffs      471.36KB     2.21KB   469.15KB     0%   /
==
[19:15:47] RTC:  clock set to 1.11.2016 19:15:47
[19:15:49] TLNT: client [0] connected from 10.0.0.150:59670
[19:16:37] UPD:  HTTP error: connection refused
[19:16:38] CONS: starting shell (CTRL-D to exit) ...
[19:17:12] TLNT: client [1] connected from 10.0.0.150:59712
top on the EPS8266 :-D
Me No Dev
@me-no-dev
Nov 01 2016 20:17
hahahaha
have "kill"?