完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用 IDF_V4.4.1
我尝试使用 WIFI 发送一些文件 我使用 2AP(wifi 路由器) 首先我的 esp 已连接 AP(wifi 路由器)-A 并将文件发送到目的地。 1 分钟后,我的 esp 已连接 AP(wifi 路由器)-B 并将文件发送到目标(相同的目标)但目标 ip 没有更新.. 我的 esp 有 172.20.10.2 但目标 ip 有 192.168.1.72(以前的 ip)。如何解决这个问题???请帮我 代码:全选 I (21753) wifi:AP's beacon interval = 102400 us, DtiM period = 3 I (24253) esp_netif_handlers: sta ip: 192.168.0.5, mask: 255.255.255.0, gw: 192.168.0.1 I (24253) BF_WIFI*: got ip:192.168.0.5 I (24253) BF_WIFI*: WI-FI connect bit result: 0x1 I (24253) BF_WIFI*: connected to ap SSID:RnD_Office password:body_rnd W (24263) APP_MAIN: [BleWifiConnTask]Success to connect WIFI I (24273) APP_MAIN: WIFI_Total_SendJson W (24273) HTTP_CLIENT: max_redirection_count 50 I (24283) APP_MAIN: [WIFI_Total_Http_Send]success to esp_http_client_init W (24283) HTTP_CLIENT: set post file length = 36 W (24293) HTTP_CLIENT: Begin connect to: https://log.bodyfriend.co.kr:443 W (24303) esp-tls: host:log.bodyfriend.co.kr: strlen 20 W (24323) wifi: W (24333) esp-tls: addrinfo->ai_family == AF_INET W (24333) esp-tls: [sock=-1] Resolved IPv4 address: 192.168.1.72 W (24343) esp-tls: [esp_tcp_connect]fd 54 addrinfo->ai_addrlen 28 W (24343) esp-tls: connecting... W (24513) esp-tls: handshake in progress... W (25523) HTTP_CLIENT: Begin connect to: https://log.bodyfriend.co.kr:443 W (25523) esp-tls: handshake in progress... W (27353) HTTP_CLIENT: Begin connect to: https://log.bodyfriend.co.kr:443 W (27353) esp-tls: handshake in progress... W (27353) BF_WIFI*: HTTP_EVENT_ON_CONNECTED W (27353) BF_WIFI*: HTTP_EVENT_HEADER_SENT W (28713) BF_WIFI*: HTTP_EVENT_ON_HEADER, key=Server, value=nginx W (28713) BF_WIFI*: HTTP_EVENT_ON_HEADER, key=Date, value=Wed, 28 Dec 2022 10:23:01 GMT W (28713) BF_WIFI*: HTTP_EVENT_ON_HEADER, key=Content-Type, value=application/json;charset=UTF-8 W (28723) BF_WIFI*: HTTP_EVENT_ON_HEADER, key=Transfer-Encoding, value=chunked W (28733) BF_WIFI*: HTTP_EVENT_ON_HEADER, key=Connection, value=keep-alive W (28743) BF_WIFI*: HTTP_EVENT_ON_DATA, len=57 W (28743) BF_WIFI*: HTTP_EVENT_ON_FINISH I (28753) APP_MAIN: HTTPS Status = 200, content_length = -1 I (28753) BF_WIFI*: bf_wifi_connect.c -http_event_handler(): -HTTP_EVENT_DISCONNECTED: E (28773) APP_MAIN: Success to send testdata W (28773) APP_MAIN: [BleWifiConnTask]Success to send data to server I (28783) wifi:state: run -> init (0) I (28783) wifi:pm stop, total sleep time: 5397351 us / 7101130 us W (28783) wifi: I (28793) wifi:new:<3,0>, old:<3,1>, ap:<255,255>, sta:<3,1>, prof:1 W (28803) wifi:hmac tx: ifx0 stop, discard W (28803) wifi:hmac tx: ifx0 stop, discard I (28853) wifi:flush txq I (28853) wifi:stop sw txq I (28853) wifi:lmac stop hw txq I (28853) wifi:Deinit lldesc rx mblock:10 I (28863) APP_MAIN: [WIFI_Total_Stop]Destroy g_bf_myAP W (28863) APP_MAIN: Delete BleWifiConnTask I (94753) BLE_APP: ESP_GATTS_RESPONSE_EVT handle 0x00, status 0 I (94763) RECV BLE DATA: 0x3f815f70 24 41 44 01 07 01 b2 |$AD....| W (94763) RUN_MODE1: [BLE] BleHead1 : 0, packet size: 7 W (94773) RUN_MODE1: [BLE] BleHead2 : 0 msg.data_len: 7, msg.checksum: 178, cal.checksum: 178 I (94783) COPY BLE DATA: 0x3ffc47d4 24 41 44 01 07 01 b2 |$AD....| W (94783) RUN_MODE1: [BLE] Data : $AD² W (94793) RUN_MODE1: [BLE] Run process, 0x1 W (94793) esp_netif_lwip: esp-netif has been successfully initialized W (94803) event: created task for loop 0x3ffe3a40 W (94813) event: created event loop 0x3ffe3a40 I (94823) wifi:wifi driver task: 3ffcf600, prio:23, stack:6656, core=0 I (94833) wifi:wifi firmware version: eb52264 I (94833) wifi:wifi certification version: v7.0 I (94833) wifi:config NVS flash: enabled I (94833) wifi:config nano formating: disabled I (94843) wifi:Init data frame dynamic rx buffer num: 32 I (94843) wifi:Init management frame dynamic rx buffer num: 32 I (94853) wifi:Init management short buffer num: 32 I (94853) wifi:Init static tx buffer num: 16 I (94863) wifi:Init tx cache buffer num: 32 I (94863) wifi:Init static rx buffer size: 1600 I (94863) wifi:Init static rx buffer num: 10 I (94873) wifi:Init dynamic rx buffer num: 32 I (94873) wifi_init: rx ba win: 16 I (94883) wifi_init: tcpip mbox: 32 I (94883) wifi_init: udp mbox: 6 I (94883) wifi_init: tcp mbox: 6 I (94893) wifi_init: tcp tx win: 5744 I (94893) wifi_init: tcp rx win: 5744 I (94903) wifi_init: tcp mss: 1436 I (94903) wifi_init: WiFi/LWIP prefer SPIRAM I (94913) wifi:mode : sta (c4:dd:57:6a:a0:0c) I (94913) wifi:enable tsf I (98113) APP_MAIN: Total APs scanned = 21 I (98113) APP_MAIN: SSID LuisIphone I (98113) APP_MAIN: RSSI -32 I (98113) APP_MAIN: Authmode WIFI_AUTH_WPA2_PSK I (98113) APP_MAIN: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP I (98123) APP_MAIN: Group Cipher WIFI_CIPHER_TYPE_CCMP I (98123) APP_MAIN: Channel 6 I (98133) APP_MAIN: SSID RnD_Office I (98133) APP_MAIN: RSSI -59 I (98143) APP_MAIN: Authmode WIFI_AUTH_WPA2_PSK I (98143) APP_MAIN: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP I (98153) APP_MAIN: Group Cipher WIFI_CIPHER_TYPE_CCMP I (98153) APP_MAIN: Channel 3 I (98163) APP_MAIN: SSID design I (98163) APP_MAIN: RSSI -60 I (98173) APP_MAIN: Authmode WIFI_AUTH_WPA2_PSK I (98173) APP_MAIN: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP I (98183) APP_MAIN: Group Cipher WIFI_CIPHER_TYPE_CCMP I (98183) APP_MAIN: Channel 1 I (98193) APP_MAIN: SSID AT_401_CST_570004_WW_ed08 I (98193) APP_MAIN: RSSI -62 I (98203) APP_MAIN: Authmode WIFI_AUTH_WPA2_PSK I (98203) APP_MAIN: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP I (98213) APP_MAIN: Group Cipher WIFI_CIPHER_TYPE_CCMP I (98213) APP_MAIN: Channel 11 I (98223) APP_MAIN: SSID AT_401_CST_570004_WW_ed14 I (98223) APP_MAIN: RSSI -71 I (98233) APP_MAIN: Authmode WIFI_AUTH_WPA2_PSK I (98233) APP_MAIN: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP I (98243) APP_MAIN: Group Cipher WIFI_CIPHER_TYPE_CCMP I (98243) APP_MAIN: Channel 11 I (98253) APP_MAIN: SSID CEO I (98253) APP_MAIN: RSSI -73 I (98263) APP_MAIN: Authmode WIFI_AUTH_WPA2_PSK I (98263) APP_MAIN: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP I (98273) APP_MAIN: Group Cipher WIFI_CIPHER_TYPE_CCMP I (98273) APP_MAIN: Channel 2 I (98283) APP_MAIN: SSID AT_401_CST_570004_WW_9c39 I (98283) APP_MAIN: RSSI -74 I (98293) APP_MAIN: Authmode WIFI_AUTH_WPA2_PSK I (98293) APP_MAIN: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP I (98303) APP_MAIN: Group Cipher WIFI_CIPHER_TYPE_CCMP I (98303) APP_MAIN: Channel 11 I (98313) APP_MAIN: SSID telecop I (98313) APP_MAIN: RSSI -75 I (98323) APP_MAIN: Authmode WIFI_AUTH_WPA_WPA2_PSK I (98323) APP_MAIN: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP I (98333) APP_MAIN: Group Cipher WIFI_CIPHER_TYPE_CCMP I (98333) APP_MAIN: Channel 2 I (98343) APP_MAIN: Size: 33 I (98343) APP_MAIN: SSID LuisIphone I (98353) APP_MAIN: SSID RnD_Office I (98353) APP_MAIN: SSID design I (98353) APP_MAIN: SSID AT_401_CST_570004_WW_ed08 I (98363) APP_MAIN: SSID AT_401_CST_570004_WW_ed14 I (98373) APP_MAIN: SSID CEO I (98373) APP_MAIN: SSID AT_401_CST_570004_WW_9c39 I (98383) APP_MAIN: SSID telecop I (98383) wifi:flush txq I (98383) wifi:stop sw txq I (98383) wifi:lmac stop hw txq I (98393) wifi:Deinit lldesc rx mblock:10 I (98403) APP_MAIN: [WIFI_Total_Stop]Destroy g_bf_myAP W (98403) RUN_MODE1: [BLE] BleHead3 : 0 W (98403) RUN_MODE1: [BLE] BleHead4 : 1 I (103513) BLE_APP: ESP_GATTS_RESPONSE_EVT handle 0x226c, status 0 I (103523) RECV BLE DATA: 0x3f815f70 24 41 44 06 42 4c 75 69 73 49 70 68 6f 6e 65 ff |$AD.BLuisIphone.| I (103523) RECV BLE DATA: 0x3f815f80 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| I (103533) RECV BLE DATA: 0x3f815f90 ff ff ff 31 31 31 31 32 32 32 32 ff ff ff ff ff |...11112222.....| I (103543) RECV BLE DATA: 0x3f815fa0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| I (103553) RECV BLE DATA: 0x3f815fb0 ff 53 |.S| W (103563) RUN_MODE1: [BLE] BleHead1 : 1, packet size: 66 W (103573) RUN_MODE1: [BLE] BleHead2 : 1 msg.data_len: 66, msg.checksum: 83, cal.checksum: 83 I (103583) COPY BLE DATA: 0x3ffc4838 24 41 44 06 42 4c 75 69 73 49 70 68 6f 6e 65 ff |$AD.BLuisIphone.| I (103593) COPY BLE DATA: 0x3ffc4848 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| I (103603) COPY BLE DATA: 0x3ffc4858 ff ff ff 31 31 31 31 32 32 32 32 ff ff ff ff ff |...11112222.....| I (103613) COPY BLE DATA: 0x3ffc4868 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| I (103623) COPY BLE DATA: 0x3ffc4878 ff 53 |.S| W (103633) RUN_MODE1: [BLE] Data : $ADBLuisIphoneÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ11112222ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿS W (103643) RUN_MODE1: [BLE] Run process, 0x6 E (103643) RUN_MODE1: Start WIFI connection I (103653) APP_MAIN: BLE_TRANS_WIFI_CONN_SSID_FULL I (103653) APP_MAIN: SSID:LuisIphone PASSWORD:11112222 I (103663) APP_MAIN: Delete wifi previous infomation I (103743) APP_MAIN: bf_file write W (103763) RUN_MODE1: [BLE] BleHead3 : 1 W (103763) RUN_MODE1: [BLE] BleHead4 : 2 I (103963) BF_SDCARD*: Read from sd: '8aU_5T[ZQ ' I (103963) BF_SDCARD*: Read from sd: '' I (103963) APP_MAIN: [BleWifiConnTask]SSID:LuisIphone PASSWORD:11112222 I (103973) BF_WIFI*: esp_netif_init W (103973) esp_netif_lwip: esp-netif has been successfully initialized I (103983) BF_WIFI*: esp_event_loop_create_default W (103983) event: created task for loop 0x3ffe3e34 W (103993) event: created event loop 0x3ffe3e34 I (103993) BF_WIFI*: esp_netif_create_default_wifi_sta I (104003) BF_WIFI*: wifi_init_config_t I (104003) BF_WIFI*: esp_wifi_init I (104023) wifi:wifi driver task: 3ffe3650, prio:23, stack:6656, core=0 I (104033) wifi:wifi firmware version: eb52264 I (104033) wifi:wifi certification version: v7.0 I (104033) wifi:config NVS flash: enabled I (104033) wifi:config nano formating: disabled I (104033) wifi:Init data frame dynamic rx buffer num: 32 I (104043) wifi:Init management frame dynamic rx buffer num: 32 I (104053) wifi:Init management short buffer num: 32 I (104053) wifi:Init static tx buffer num: 16 I (104053) wifi:Init tx cache buffer num: 32 I (104063) wifi:Init static rx buffer size: 1600 I (104063) wifi:Init static rx buffer num: 10 I (104073) wifi:Init dynamic rx buffer num: 32 I (104073) wifi_init: rx ba win: 16 I (104073) wifi_init: tcpip mbox: 32 I (104083) wifi_init: udp mbox: 6 I (104083) wifi_init: tcp mbox: 6 I (104093) wifi_init: tcp tx win: 5744 I (104093) wifi_init: tcp rx win: 5744 I (104103) wifi_init: tcp mss: 1436 I (104103) wifi_init: WiFi/LWIP prefer SPIRAM I (104113) BF_WIFI*: esp_wifi_set_mode result: 0 I (104133) BF_WIFI*: esp_wifi_set_config result: 0 I (104133) wifi:mode : sta (c4:dd:57:6a:a0:0c) I (104133) wifi:enable tsf I (104133) BF_WIFI*: esp_wifi_start result: 0 I (104133) BF_WIFI*: Start wifi connect I (104153) wifi:new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1 I (104153) wifi:state: init -> auth (b0) I (104153) wifi:state: auth -> assoc (0) I (104163) wifi:state: assoc -> run (10) I (104233) wifi:connected with LuisIphone, aid = 1, channel 6, BW20, bssid = 0e:e5:f9:df:6b:31 I (104233) wifi:security: WPA2-PSK, phy: bgn, rssi: -33 I (104243) wifi:pm start, type: 1 I (104253) wifi:AP's beacon interval = 102400 us, DTIM period = 1 W (104303) wifi: I (105253) esp_netif_handlers: sta ip: 172.20.10.2, mask: 255.255.255.240, gw: 172.20.10.1 I (105253) BF_WIFI*: got ip:172.20.10.2 I (105253) BF_WIFI*: WI-FI connect bit result: 0x1 I (105253) BF_WIFI*: connected to ap SSID:LuisIphone password:11112222 W (105263) APP_MAIN: [BleWifiConnTask]Success to connect WIFI I (105273) APP_MAIN: WIFI_Total_SendJson W (105273) HTTP_CLIENT: max_redirection_count 50 I (105283) APP_MAIN: [WIFI_Total_Http_Send]success to esp_http_client_init W (105293) HTTP_CLIENT: set post file length = 36 W (105293) HTTP_CLIENT: Begin connect to: https://log.bodyfriend.co.kr:443 W (105303) esp-tls: host:log.bodyfriend.co.kr: strlen 20 W (105313) esp-tls: addrinfo->ai_family == AF_INET W (105313) esp-tls: [sock=-1] Resolved IPv4 address: 192.168.1.72 W (105323) esp-tls: [esp_tcp_connect]fd 54 addrinfo->ai_addrlen 28 W (105333) esp-tls: connecting... W (114653) esp-tls: handshake in progress... E (114653) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x4e, 0xffffffb2 I (114653) esp-tls-mbedtls: Certificate verified. E (114653) HTTP_CLIENT: Connection failed E (114663) APP_MAIN: Error perform http request ESP_ERR_HTTP_CONNECT I (114673) BF_WIFI*: bf_wifi_connect.c -http_event_handler(): -HTTP_EVENT_DISCONNECTED: I (114683) APP_MAIN: Fail to send testdata E (114683) APP_MAIN: [BleWifiConnTask]Fail to send data to server I (114693) wifi:state: run -> init (0) I (114693) wifi:pm stop, total sleep time: 8071399 us / 10453347 us |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
171个成员聚集在这个小组
加入小组341 浏览 0 评论
1186 浏览 1 评论
587浏览 6评论
484浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
468浏览 5评论
467浏览 4评论
443浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-28 06:09 , Processed in 0.812859 second(s), Total 73, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号