【Close】基于esp_iot_sdk_v1.5.1测试APP_IR_TxRx_Demo的GEN_IR_CLK_FROM_IIS问题
Posted: Sat Apr 09, 2016 6:53 pm
我在使用基于esp_iot_sdk_v1.5.1版本的SDK,测试APP_IR_TxRx_Demo例程,其中要使用IIS产生38K的载波,即在头文件中定义GEN_IR_CLK_FROM_IIS为1。
在单STA模式下,会出现死机的情况,死机的现象是串口没有正常打印出信息,过了一段时间后会发现串口打印WiFi重连的信息(或重启的信息)。
打印信息如下:
?rl湗r??#鈔?堗?傡p寍巶??8掃菕茕lp騨n??;騨膾茕?b?$ rrp騨嗝?鄠嚴l???b?n忏n滥瀕??8岒nn?牧寧l`鼝?#俷?巖nr帓?;睦?鄉rp騨嗝軃鄏?廛?pp捾<泥l?b??>~騨?酿r??#俷?rnr帓?;睦?俵8rp騨嗝?鄏?廛??pp捾<哪庁b??>~騨?睦r??#俷??;nr帓?;睦?捾;?r熪抧?庎鉁抈黵?霉*K疘仮曂褋jR敃j╆奣T媀$'H.]X擫湞fe:34:a1:33:0e)
add if0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt
connected with TP-LINK_0D3E, channel 11
dhcp client start...
rep = 0 end
ip:192.168.0.111,mask:255.255.255.0,gw:192.168.0.1
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
pm open,type:2 0
r?霉-K疘仮曂褋jR敃j╆奣T媀$'H.]X擫湞fe:34:a1:33:0e)
add if0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt
connected with TP-LINK_0D3E, channel 11
dhcp client start...
ip:192.168.0.111,mask:255.255.255.0,gw:192.168.0.1
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
pm open,type:2 0
---?r?霉*K疘仮曂褋jR敃j╆奣T媀$'H.]X擫湞fe:34:a1:33:0e)
add if0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt
connected with TP-LINK_0D3E, channel 11
dhcp client start...
ip:192.168.0.111,mask:255.255.255.0,gw:192.168.0.1
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
pm open,type:2 0
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
r?霉-K疘仮曂褋jR敃j╆奣T媀$'H.]X擫湞fe:34:a1:33:0e)
add if0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt
connected with TP-LINK_0D3E, channel 11
dhcp client start...
ip:192.168.0.111,mask:255.255.255.0,gw:192.168.0.1
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
pm open,type:2 0
========================================================================================
在其他模式下(NULL_MODE、SOFTAP_MODE、STATIONAP_MODE)并不会出现重启现象。
STATIONAP_MODE模式下打印出的信息:
?rl溫r??#鈔???傡p寍巶??8掃菕茕lp騨n??;騨膾茕?b?$塺rp騨嗝軃鄠抢l???b?n忏n滥瀕??8岒nn?牧寧l`鼝?#俷?巖nr帓?;睦鉁;p騨鄡?鄏?廛?pp挏<泥l?b滥緙騨?酿r??#俷?rnr帓?;睦??rp騨嗝?鄏?廛??pp捾<哪庁b滥緙騨?睦r??#俷?巤nr帓?;睦?忪xrr咣抧???8rr??9l滥?b咪倢br鉨pb忏窍?l恖靫~抧?n軖??l坂駈?垶?倢?l鄬?庝l庁l`>`能捾腷??b?線能捾腷鈱b?$`$`麼K蓙⑨綊醽脱乯R敃j╆奣T媀$'H.]X擫湞fe:34:a1:33:0e) + softAP(1a:fe:34:a1:33:0e)
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt
connected with TP-LINK_0D3E, channel 11
dhcp client start...
rep = 0 end
ip:192.168.0.111,mask:255.255.255.0,gw:192.168.0.1
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
====================================================================================
请问,为什么在STATION_MODE模式下,APP_IR_TxRx_Demo中使用IIS产生38K载波会出现死机的情况?
硬件环境为ESP-LAUNCHER 开发板
在单STA模式下,会出现死机的情况,死机的现象是串口没有正常打印出信息,过了一段时间后会发现串口打印WiFi重连的信息(或重启的信息)。
打印信息如下:
?rl湗r??#鈔?堗?傡p寍巶??8掃菕茕lp騨n??;騨膾茕?b?$ rrp騨嗝?鄠嚴l???b?n忏n滥瀕??8岒nn?牧寧l`鼝?#俷?巖nr帓?;睦?鄉rp騨嗝軃鄏?廛?pp捾<泥l?b??>~騨?酿r??#俷?rnr帓?;睦?俵8rp騨嗝?鄏?廛??pp捾<哪庁b??>~騨?睦r??#俷??;nr帓?;睦?捾;?r熪抧?庎鉁抈黵?霉*K疘仮曂褋jR敃j╆奣T媀$'H.]X擫湞fe:34:a1:33:0e)
add if0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt
connected with TP-LINK_0D3E, channel 11
dhcp client start...
rep = 0 end
ip:192.168.0.111,mask:255.255.255.0,gw:192.168.0.1
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
pm open,type:2 0
r?霉-K疘仮曂褋jR敃j╆奣T媀$'H.]X擫湞fe:34:a1:33:0e)
add if0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt
connected with TP-LINK_0D3E, channel 11
dhcp client start...
ip:192.168.0.111,mask:255.255.255.0,gw:192.168.0.1
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
pm open,type:2 0
---?r?霉*K疘仮曂褋jR敃j╆奣T媀$'H.]X擫湞fe:34:a1:33:0e)
add if0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt
connected with TP-LINK_0D3E, channel 11
dhcp client start...
ip:192.168.0.111,mask:255.255.255.0,gw:192.168.0.1
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
pm open,type:2 0
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
r?霉-K疘仮曂褋jR敃j╆奣T媀$'H.]X擫湞fe:34:a1:33:0e)
add if0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt
connected with TP-LINK_0D3E, channel 11
dhcp client start...
ip:192.168.0.111,mask:255.255.255.0,gw:192.168.0.1
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
pm open,type:2 0
========================================================================================
在其他模式下(NULL_MODE、SOFTAP_MODE、STATIONAP_MODE)并不会出现重启现象。
STATIONAP_MODE模式下打印出的信息:
?rl溫r??#鈔???傡p寍巶??8掃菕茕lp騨n??;騨膾茕?b?$塺rp騨嗝軃鄠抢l???b?n忏n滥瀕??8岒nn?牧寧l`鼝?#俷?巖nr帓?;睦鉁;p騨鄡?鄏?廛?pp挏<泥l?b滥緙騨?酿r??#俷?rnr帓?;睦??rp騨嗝?鄏?廛??pp捾<哪庁b滥緙騨?睦r??#俷?巤nr帓?;睦?忪xrr咣抧???8rr??9l滥?b咪倢br鉨pb忏窍?l恖靫~抧?n軖??l坂駈?垶?倢?l鄬?庝l庁l`>`能捾腷??b?線能捾腷鈱b?$`$`麼K蓙⑨綊醽脱乯R敃j╆奣T媀$'H.]X擫湞fe:34:a1:33:0e) + softAP(1a:fe:34:a1:33:0e)
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt
connected with TP-LINK_0D3E, channel 11
dhcp client start...
rep = 0 end
ip:192.168.0.111,mask:255.255.255.0,gw:192.168.0.1
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
-----------------------
ir rx
==================
ir tx..
addr:55h;cmd:28h;repeat:10;
rep = 0 end
====================================================================================
请问,为什么在STATION_MODE模式下,APP_IR_TxRx_Demo中使用IIS产生38K载波会出现死机的情况?
硬件环境为ESP-LAUNCHER 开发板