-->
Page 1 of 1

esp-12 dev board in station mode losing connection to AP

PostPosted: Tue Apr 14, 2015 6:15 pm
by arri
This looks like likely an AP issue independent of the esp8266... My dev board in station mode will stay connected to an Airport Express and a separately a UniFi AP indefinitely. When connected to a SonicWall AP it can't seem to hold on for more than an hour, and often times much less than that. Unfortunately, I don't have access to the problematic AP so I can't do anything with it.

I have tried reconnecting to the AP every five minutes or so, but that doesn't seem to work as it seems to think it's successfully connected even though it stops sending data to sparkfun. I've also tried client.stop(); to force disconnect so the reconnect is "fresh" to no avail.

Again, all of my trials work as expected on the test AP's, but not on the SonicWall.

Yanking the power to reboot the device, no matter how breifly, is all it takes to get back online to the SonicWall for another 20-50 minutes. I'm going to try administering an abort(); call every ten minutes and see if that works.

Any other ideas how to trouble shoot?

arri

Re: esp-12 dev board in station mode losing connection to AP

PostPosted: Wed Apr 15, 2015 3:33 am
by uhrheber
What's the DHCP lease time on the problematic AP?

Re: esp-12 dev board in station mode losing connection to AP

PostPosted: Fri Apr 17, 2015 2:40 pm
by arri
DHCP seems to be coming from an IIS7 server at 192.168.1.10 the lease time appears to be pretty long at about eight days. There are only about thirty active devices on the subnet that I have scanned and don't really think they have enough more devices coming and going in eight days to bump against the 254 leases in their subnet.

Code: Select all$ ipconfig getpacket en0
op = BOOTREPLY
htype = 1
flags = 0
hlen = 6
hops = 0
xid = 2202927617
secs = 0
ciaddr = 0.0.0.0
yiaddr = 192.168.1.123
siaddr = 0.0.0.0
giaddr = 0.0.0.0
chaddr = xx:xx:xx:xx:xx:xx
sname =
file =
options:
Options count is 10
dhcp_message_type (uint8): ACK 0x5
renewal_t1_time_value (uint32): 0x54600
rebinding_t2_time_value (uint32): 0x93a80
lease_time (uint32): 0xa8c00
server_identifier (ip): 192.168.1.10
subnet_mask (ip): 255.255.255.0
router (ip_mult): {192.168.1.1}
domain_name_server (ip_mult): {192.168.1.10, 192.168.1.8}
domain_name (string):
end (none):