soft_ap & sta_client, must wrote short sheer enthusiasm

User avatar
rudi ;-)
Posts: 1730
Joined: Fri Nov 13, 2015 3:25 pm

soft_ap & sta_client, must wrote short sheer enthusiasm

Postby rudi ;-) » Mon Sep 26, 2016 11:20 pm

hi guys

just in time try in esp32 station and ap code for client and server.
amazing!! fast!! setup and connect
this is amazing!!
later more - just in time create sockets now

ets Jun 8 2016 00:22:57<\r><\n>
<\r><\n>
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)<\r><\n>
ets Jun 8 2016 00:22:57<\r><\n>
<\r><\n>
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)<\r><\n>
configsip: 0, SPIWP:0x00<\r><\n>
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00<\r><\n>
mode:DIO, clock div:2<\r><\n>
load:0x3ffc0000,len:0<\r><\n>
load:0x3ffc0000,len:920<\r><\n>
load:0x40078000,len:2624<\r><\n>
load:0x40098000,len:508<\r><\n>
entry 0x40098118<\r><\n>
<27>[0;32mI (76) heap_alloc_caps: Initializing heap allocator:<27>[0m<\r><\n>
<27>[0;32mI (76) heap_alloc_caps: Region 19: 3FFC0200 len 0001FE00 tag 0<27>[0m<\r><\n>
<27>[0;32mI (77) heap_alloc_caps: Region 25: 3FFE8000 len 00018000 tag 1<27>[0m<\r><\n>
<27>[0;32mI (87) cpu_start: Pro cpu up.<27>[0m<\r><\n>
<27>[0;32mI (92) cpu_start: Single core mode<27>[0m<\r><\n>
<27>[0;32mI (99) cpu_start: Pro cpu start user code<27>[0m<\r><\n>
rtc v112 Sep 22 2016 16:08:39<\r><\n>
XTAL 40M<\r><\n>
<27>[0;32mI (134) cpu_start: Starting scheduler on PRO CPU.<27>[0m<\r><\n>
misc_nvs_load g_misc_nvs=0x3ffc312c<\r><\n>
frc2_timer_task_hdl:3ffc3e88, prio:22, stack:2048<\r><\n>
tcpip_task_hdlxxx : 3ffc49fc, prio:18,stack:2048<\r><\n>
phy_version: 123, Sep 13 2016, 20:01:58, 0<\r><\n>
pp l<\r><\n>
pp_task_hdl : 3ffc8254, prio:23, stack:8192<\r><\n>

HERE WE GO

mode : softAP(XX:XX:XX:XX:XX:XX)<\r><\n>
dhcp server start:(ip: 192.168.4.1, mask: 255.255.255.0, gw: 192.168.4.1)<\r><\n>
n:1 1, o:1 0, ap:1 1, sta:255 255, prof:1<\r><\n>
add 1<\r><\n>
station: XX:XX:XX:XX:XX:XX join, AID = 1, n, 40U<\r><\n>
Hello World!<\r><\n>
Hello World!<\r><\n>
Hello World!<\r><\n>
station: XX:XX:XX:XX:XX:XX leave, AID = 1<\r><\n>
n:1 0, o:1 1, ap:1 1, sta:255 255, prof:1<\r><\n>
n:1 1, o:1 0, ap:1 1, sta:255 255, prof:1<\r><\n>
add 1<\r><\n>
station: XX:XX:XX:XX:XX:XX join, AID = 1, n, 40U<\r><\n>
Hello World!<\r><\n>
Hello World!<\r><\n>
Hello World!<\r><\n>

soft ap and client setup&connect amazing fast.
have tested all authenticate mode without problems! amazing!
here i use WPA2_PSK

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1730
Joined: Fri Nov 13, 2015 3:25 pm

Re: soft_ap & sta_client, must wrote short sheer enthusiasm

Postby rudi ;-) » Tue Sep 27, 2016 1:34 am

TCP Standalone HTTP Server done!

short show: https://www.youtube.com/watch?v=kXl6lVHTTBQ


ets Jun 8 2016 00:22:57<\r><\n>
<\r><\n>
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)<\r><\n>
ets Jun 8 2016 00:22:57<\r><\n>
<\r><\n>
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)<\r><\n>
configsip: 0, SPIWP:0x00<\r><\n>
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00<\r><\n>
mode:DIO, clock div:2<\r><\n>
load:0x3ffc0000,len:0<\r><\n>
load:0x3ffc0000,len:920<\r><\n>
load:0x40078000,len:2624<\r><\n>
load:0x40098000,len:508<\r><\n>
entry 0x40098118<\r><\n>
<27>[0;32mI (77) heap_alloc_caps: Initializing heap allocator:<27>[0m<\r><\n>
<27>[0;32mI (77) heap_alloc_caps: Region 19: 3FFC0AE0 len 0001F520 tag 0<27>[0m<\r><\n>
<27>[0;32mI (78) heap_alloc_caps: Region 25: 3FFE8000 len 00018000 tag 1<27>[0m<\r><\n>
<27>[0;32mI (88) cpu_start: Pro cpu up.<27>[0m<\r><\n>
<27>[0;32mI (93) cpu_start: Single core mode<27>[0m<\r><\n>
<27>[0;32mI (100) cpu_start: Pro cpu start user code<27>[0m<\r><\n>
rtc v112 Sep 22 2016 16:08:39<\r><\n>
XTAL 40M<\r><\n>
<27>[0;32mI (135) cpu_start: Starting scheduler on PRO CPU.<27>[0m<\r><\n>
misc_nvs_load g_misc_nvs=0x3ffc38a4<\r><\n>
frc2_timer_task_hdl:3ffc46b4, prio:22, stack:2048<\r><\n>
tcpip_task_hdlxxx : 3ffc5228, prio:18,stack:2048<\r><\n>
phy_version: 123, Sep 13 2016, 20:01:58, 0<\r><\n>
wifi_nvs_load, get_u8 fail, key=opmode index=0 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=country index=1 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=sta.authmode index=4 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=sta.chan index=7 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=auto.conn index=8 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=bssid.set index=9 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=sta.phym index=11 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=sta.phybw index=12 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=ap.chan index=19 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=ap.authmode index=20 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=ap.hidden index=21 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=ap.max.conn index=22 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=bcn.interval index=23 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=ap.phym index=24 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=ap.phybw index=25 not found<\r><\n>
wifi_nvs_load, get_u8 fail, key=ap.sndchan index=26 not found<\r><\n>
pp l<\r><\n>
pp_task_hdl : 3ffc8b34, prio:23, stack:8192<\r><\n>
mode : softAP(XX:XX:XX:XX:XX:XX)<\r><\n>
dhcp server start:(ip: 192.168.4.1, mask: 255.255.255.0, gw: 192.168.4.1)<\r><\n>
S > create socket: 0<\r><\n>
S > bind port: 80<\r><\n>
T > listen ok<\r><\n>
T > wait client<\r><\n>
n:1 1, o:1 0, ap:1 1, sta:255 255, prof:1<\r><\n>
add 1<\r><\n>
station: XX:XX:XX:XX:XX:XX join, AID = 1, n, 40U<\r><\n>
T > Client from 192.168.4.2 53719<\r><\n>
T > read data success 509!<\r><\n>
REQ root directory<\r><\n>
C > client disconnect!<\r><\n>
C > Happy ESP32 ESP-IDF STANDALONE TCP Server 2016!<\r><\n>
C > best wishes<\r><\n>
C > rudi ;-)<\r><\n>
T > wait client<\r><\n>
T > Client from 192.168.4.2 53720<\r><\n>
T > read data success 472!<\r><\n>
REQ picture rudi<\r><\n>
C > client disconnect!<\r><\n>
C > Happy ESP32 ESP-IDF STANDALONE TCP Server 2016!<\r><\n>
C > best wishes<\r><\n>
C > rudi ;-)<\r><\n>
T > wait client<\r><\n>
T > Client from 192.168.4.2 53721<\r><\n>
T > read data success 477!<\r><\n>
oh my god how fast!!
what have you done in esp32 ??
it is a rocket!

best wishes
rudi ;-)

clean up all fine.
but there was a change with zalloc in esp-idf! i think.

( no hurry but here for the moment )
https://github.com/ESP32DE/TCP-Standalone-HTTP-Server
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: Google [Bot] and 90 guests