Chat freely about anything...

User avatar
By Baoshi
#6457
Athena wrote:@Baoshi ,could you show me some error logs ? And your account of Espressif BBS has been actived ;)


Many thanks Athena.

The following is the dump from UART0. I also attach my testing code, basically same as the rtos sdk sample without the client part.

Code: Select all[00]
 ets Jan  8 2013,rst cause:1, boot mode:(3,7)

load 0x40100000, len 28956, room 16
tail 12
chksum 0x8b
ho 0 tail 12 room 4
load 0x3ffe8000, len 1968, room 12
tail 4
chksum 0x05
load 0x3ffe87b0, len 6716, room 4
tail 8
chksum 0xc2
csum 0xc2
pp_task_hdl : 3fff1c68, prio:20, stack:512
ApiMsgMutex created
idle_task_hdl : 3fff42a8
tim_task_hdl : 3fff4500
xPortStartScheduler

OS SDK ver: 0.0.5 compiled @ Jan  4 2015 13:52:04
phy ver: 273, pp ver: 6

SDK version:0.0.5
mode : sta(18:fe:34:9c:d2:ba)
add if0
S > create socket: 0
S > bind port: 80
S > listen ok
S > wait client
scandone
add 0
aid 4
aid end
cnt

connected with OOOO, channel 1
dhcp client start...
ip:192.168.0.157
mask:255.255.255.0
gw:192.168.0.1
rm match
reconnect
scandone
add 0
aid 4
aid end
cnt

connected with OOOO, channel 1
dhcp client start...
ip:192.168.0.157
mask:255.255.255.0
gw:192.168.0.1
-----------------------------< 5 minutes later
rm match
reconnect
scandone
add 0
aid 4
aid end
cnt

connected with OOOO, channel 1
dhcp client start...
ip:192.168.0.157
mask:255.255.255.0
gw:192.168.0.1
-----------------------------< 5 minutes later
rm match
reconnect
scandone
add 0
aid 4
aid end
cnt

connected with OOOO, channel 1
dhcp client start...
ip:192.168.0.157
mask:255.255.255.0
gw:192.168.0.1
-----------------------------< 5 minutes later
rm match
reconnect
scandone
add 0
aid 4
aid end
cnt

connected with OOOO, channel 1
dhcp client start...
ip:192.168.0.157
mask:255.255.255.0
gw:192.168.0.1
-----------------------------< 5 minutes later
rm match
reconnect
b    << strange 'b' here
scandone
add 0
aid 4
aid end
cnt

connected with OOOO, channel 1
dhcp client start...
ip:192.168.0.157
mask:255.255.255.0
gw:192.168.0.1
-----------------------------< 5 minutes later
rm match
reconnect
scandone
add 0
aid 4
aid end
cnt

connected with OOOO, channel 1
dhcp client start...
ip:192.168.0.157
mask:255.255.255.0
gw:192.168.0.1
Attachments
(3.5 KiB) Downloaded 550 times
User avatar
By alonewolfx2
#6486 i am using new libmain.a from athena and i don't have same issue. its working fine for me. here is my dump.
Edit: i saw same problem after 30 minutes. My routers dhcp lease time 6 hour.
Code: Select all
 ets Jan  8 2013,rst cause:1, boot mode:(3,7)

load 0x40100000, len 30992, room 16
tail 0
chksum 0x53
load 0x3ffe8000, len 1972, room 8
tail 12
chksum 0x9a
ho 0 tail 12 room 4
load 0x3ffe87c0, len 7840, room 12
tail 4
chksum 0x74
csum 0x74
pp_task_hdl : 3fff2728, prio:20, stack:512
ApiMsgMutex created
idle_task_hdl : 3fff4d68
tim_task_hdl : 3fff4fc0
xPortStartScheduler

OS SDK ver: 0.0.5 compiled @ Jan  4 2015 13:52:04
phy ver: 273, pp ver: 6

SDK version:0.0.5
mode : sta(18:fe:34:9f:17:e3) + softAP(1a:fe:34:9f:17:e3)
add if0
add if1
bcn 100
S > create socket: 1
S > bind port: 80
S > listen ok
S > wait client
scandone
add 0
aid 6
aid end
cnt

connected with WoLFStationLVL4, channel 6
dhcp client start...
ip:192.168.2.173
mask:255.255.255.0
gw:192.168.2.1
{21:25}
{21:30}
{21:35}
{21:40}
{21:45}
ip:192.168.2.173
mask:255.255.255.0
gw:192.168.2.1
{21:55}
User avatar
By alonewolfx2
#6538 The problem is dhcp lease time. i changed my routers lease time 6 hours to 7 days and here is new dump. but i saw some dhcp lease difference between rtos and router. its not same.
Code: Select all ets Jan  8 2013,rst cause:1, boot mode:(3,1)

load 0x40100000, len 30992, room 16
tail 0
chksum 0x53
load 0x3ffe8000, len 1972, room 8
tail 12
chksum 0x9a
ho 0 tail 12 room 4
load 0x3ffe87c0, len 7840, room 12
tail 4
chksum 0x74
csum 0x74
pp_task_hdl : 3fff2728, prio:20, stack:512
ApiMsgMutex created
idle_task_hdl : 3fff4d68
tim_task_hdl : 3fff4fc0
xPortStartScheduler

OS SDK ver: 0.0.5 compiled @ Jan  4 2015 13:52:04
phy ver: 273, pp ver: 6

SDK version:0.0.5
mode : sta(18:fe:34:9f:17:e3) + softAP(1a:fe:34:9f:17:e3)
add if0
add if1
bcn 100
S > create socket: 1
S > bind port: 80
S > listen ok
S > wait client
scandone
add 0
aid 1
aid end
cnt

connected with WoLFStationLVL4, channel 6
dhcp client start...
ip:192.168.2.173
mask:255.255.255.0
gw:192.168.2.1
{13:07}
{13:17}
{13:27}
{13:37}
{13:47}
{13:47}
{13:57}
{14:07}
{14:17}
{14:27}
{14:37}
{14:47}
{14:57}