Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Markus
@Links2004
have you used Serial.setDebugOutput(true); ?
Þórhallur Sverrisson
@thorhs
Nope :) I'll try that now
Þórhallur Sverrisson
@thorhs
That did the trick, I see now that the reason for my 5 minute disconnects is REASON_ASSOC_EXPIRE
Markus
@Links2004
unfortunately espressif not release a documentation of the deeper meaning of all the "reasons".
may its linked to the key rotation of WPA/WPA2. can you configure the rotation time in your router?
Þórhallur Sverrisson
@thorhs
I am communicating with a softAP on another ESP, the only two devices on the network.
I tought it might be they key rotation, so I just tried to have no encryption, and get the same behaviour
state: 5 -> 2 (4a0) rm 0 pm close 7 0 0/301997886 wifi evt: 1
grrr….
state: 5 -> 2 (4a0)
rm 0
pm close 7 0 0/301997886
wifi evt: 1
This is sent on the serial with debug output enabled when I drop the connection, if that rings any bells
Markus
@Links2004
the state is changed from STATION_GOT_IP (5) to STATION_WRONG_PASSWORD (2)
Þórhallur Sverrisson
@thorhs
I think the state: part is located in libnet80211.a…. at least that is the only place I can grep ‘state:’ in
hmmm
interesting
seeing there is no password on the SSID
Screen Shot 2015-10-18 at 16.44.26.png
Markus
@Links2004
espressif sometime make strange thinks
Þórhallur Sverrisson
@thorhs
hehe, I guess I will just have to live with it having to reconnect every 5 minutes :(
I’m planing to use this for a ‘show’ controlling LEDs, so timeouts would be noticable
Markus
@Links2004
right now i not have a good idee how to fix it.
have you tried to change the modules?
Þórhallur Sverrisson
@thorhs
which modules?
ohh, you mean the station oand client?
Markus
@Links2004
yes
Þórhallur Sverrisson
@thorhs
Nope, I’ll try that, I have a few to choose from :)
Hmmm, perhaps I should enable the debug output on the softAP as well… that might give me some ideas
Markus
@Links2004
yes may helps.
a other workaround will be using a chip WiFi router ;)
Þórhallur Sverrisson
@thorhs
yeah, I swithced from my local WLAN to the softAP since my home WLAN was too jittery.. the softAP is working much better in that regards
Markus
@Links2004
I also setup a second Wifi for the IoT stuff to many broadcasts on the normal one.
Openwrt can setup Wifis in parallel.
Þórhallur Sverrisson
@thorhs
ohh, crap, I just realized I can’t use the softAP, it only handles 4 clients :(
hmmm… interesting, I only have airports at home… but one 4G WiFi router that I might hijack :)
I’ll try that
Markus
@Links2004
this can be extended but then you need to communicate by broadcasts/ multicast (socked limitation)
Þórhallur Sverrisson
@thorhs
I am using broadcasts today, so that would not be a problem
Þórhallur Sverrisson
@thorhs
Hmm, FYI, the debug output on the station just says station XXX leave, with rm 1, add 1, aid1, and the station join
I’m going to dig up the other wifi and give it a whirl
br
brb
Þórhallur Sverrisson
@thorhs
First test indicates the 5 minute issue is related to ESP softAP to ESP client
I have not run the same two ESPs through the huawei router for close to 10 minutes now without issues...
kathir51
@kathir51
@Links2004 if i want to build arduino ide from source what are essential tools required ? i have ant , tool.jar
kathir51
@kathir51
Can any one tell essential tool requird to build ARDUINO IDE from source .I have ant and tool.jar installed . Any other tools required such as wget , git
tzapu
@tzapu
git and some java runtime i think would be needed, and i think you just need to try it and fix errors when they show. that s how i did it anyway. it was relatively painless
Markus
@Links2004
@kathir51 the basics are written here: https://github.com/arduino/Arduino/wiki/Building-Arduino
why you want to build the IDE from src?
kathir51
@kathir51
@Links2004 That is only acadamic interest . I encountered a problem while compiling native c code using xtensa tool chain with make file the wifi is in idle condition only . unable to come from that . my basic code is uart_init(BIT_RATE_115200,BIT_RATE_115200);wifi_set_opmode( STATION_MODE );
char ssid[32] = "Benjamin";
char password[64] ="4522641400abc";
struct station_config stationConf;
stationConf.bssid_set = 0; //need not check MAC address of AP
os_memcpy(&stationConf.ssid, ssid, 32);
os_memcpy(&stationConf.password, password, 64);
wifi_station_set_config(&stationConf);
wifi_station_dhcpc_start();
kathir51
@kathir51
int status = wifi_station_get_connect_status(); i am getting always state =0; even for correct and wrong ssid and password I am unable solve what mistake in the code . I made conter verification from ARDUINO source code mine is same as their. compiling is success with make file I used SDK 1.4.0 Even i revert back to SDK 0.9.3 SAME
kathir51
@kathir51
@tzapu Thanks for your information @kathir51
@Links2004 That is only acadamic interest . I encountered a problem while compiling native c code using xtensa tool chain with make file the wifi is in idle condition only . unable to come from that . my basic code is uart_init(BIT_RATE_115200,BIT_RATE_115200);wifi_set_opmode( STATION_MODE );
char ssid[32] = "Benjamin";
char password[64] ="4522641400abc";
struct station_config stationConf;
stationConf.bssid_set = 0; //need not check MAC address of AP
os_memcpy(&stationConf.ssid, ssid, 32);
os_memcpy(&stationConf.password, password, 64);
wifi_station_set_config(&stationConf);
wifi_station_dhcpc_start();int status = wifi_station_get_connect_status(); i am getting always state =0; even for correct and wrong ssid and password I am unable solve what mistake in the code . I made conter verification from ARDUINO source code mine is same as their. compiling is success with make file I used SDK 1.4.0 Even i revert back to SDK 0.9.3 SAME