ESP32 DHCP 获取不到IP

liutao
Posts: 24
Joined: Fri Feb 25, 2022 3:11 am

ESP32 DHCP 获取不到IP

Postby liutao » Fri Feb 25, 2022 3:22 am

使用的是ESP32C3芯片,换过不同厂家的模块,不同的工程,AT指令固件也不能获取到公司路由器IP。之前调了很久都是可以获取到IP,连接其他路由器可以获取到IP。公司路由器手机电脑都能正常获取到IP正常上网。路由器型号“TL-XDR3230易展版”,路由器日志里有“13days, 00:29:40,DHCPS: Send OFFER with ip 192.168.0.125.”貌似路由器有收到并回应DHCP请求,以下部分日志
  • etharp_timer
    dhcp_coarse_tmr()
    I (506838) BLUFI_EXAMPLE: rssi:-38
    I (506838) Protocol: 0x3fcb85e8 fa 00 00 00 00 02 00 11 8c e7 04 1f |............|
    I (506838) BLUFI_EXAMPLE: mac:MAC34b4724e30c0
    I (507278) WIFI: wait to get IP
    etharp_timer
    dhcp_coarse_tmr()
    I (508278) WIFI: wait to get IP
    etharp_timer
    dhcp_coarse_tmr()
    I (509278) WIFI: wait to get IP
    etharp_timer
    dhcp_coarse_tmr()
    I (510278) WIFI: wait to get IP
    etharp_timer
    dhcp_coarse_tmr()
    I (510738) BLUFI_EXAMPLE: set rssi threshold
    dhcp_fine_tmr(): request timeout
    dhcp_timeout()
    dhcp_timeout(): restarting discovery
    dhcp_discover()
    dhcp_discover(): dhcp state is DISCOVER
    dhcp_select: could not allocate DHCP request
    pbuf_alloc(length=308)
    pbuf_alloc(length=308) == 0x3fcbf6e4
    transaction id xid(99999105)
    dhcp_discover: making request
    dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)
    pbuf_add_header: old 0x3fcbf734 new 0x3fcbf72c (8)
    pbuf_add_header: old 0x3fcbf72c new 0x3fcbf718 (20)
    ip4_output_if: st1
    IP header:
    +-------------------------------+
    | 4 | 5 | 0x00 | 336 | (v, hl, tos, len)
    +-------------------------------+
    | 38 |000| 0 | (id, flags, offset)
    +-------------------------------+
    | 255 | 17 | 0xba77 | (ttl, proto, chksum)
    +-------------------------------+
    | 0 | 0 | 0 | 0 | (src)
    +-------------------------------+
    | 255 | 255 | 255 | 255 | (dest)
    +-------------------------------+
    ip4_output_if: call netif->output()
    pbuf_add_header: old 0x3fcbf718 new 0x3fcbf70a (14)
    ethernet_output: sending packet 0x3fcbf6e4
    dhcp_discover: deleting()ing
    pbuf_free(0x3fcbf6e4)
    pbuf_free: deallocating 0x3fcbf6e4
    dhcp_discover: SELECTING
    dhcp_discover(): set request timeout 15000 msecs
    I (511278) WIFI: wait to get IP
    I (511338) BLUFI_EXAMPLE: rssi:-38
    I (511338) Protocol: 0x3fcb85e8 fa 00 00 00 00 02 00 11 8c e7 04 1f |............|
    I (511338) BLUFI_EXAMPLE: mac:MAC34b4724e30c0
    etharp_timer
    dhcp_coarse_tmr()
    I (512278) WIFI: wait to get IP
    etharp_timer
    dhcp_coarse_tmr()
    I (513278) WIFI: wait to get IP
    etharp_timer
    dhcp_coarse_tmr()
    I (514278) WIFI: wait to get IP
    etharp_timer
    dhcp_coarse_tmr()
    I (515278) WIFI: wait to get IP
    etharp_timer
    dhcp_coarse_tmr()
    I (515738) BLUFI_EXAMPLE: set rssi threshold
    I (515848) BLUFI_EXAMPLE: rssi:-38
    I (515848) Protocol: 0x3fcb85e8 fa 00 00 00 00 02 00 11 8c e7 04 1f |............|
    I (515848) BLUFI_EXAMPLE: mac:MAC34b4724e30c0
    I (516278) WIFI: wait to get IP

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: ESP32 DHCP 获取不到IP

Postby ESP_YJM » Mon Feb 28, 2022 3:22 am

看样子 LWIP 没有打印 dhcp offer 报文,应该没有收到该报文,你能否抓取空中包看看路由器有没有回复 dhcp offer。

liutao
Posts: 24
Joined: Fri Feb 25, 2022 3:11 am

Re: ESP32 DHCP 获取不到IP

Postby liutao » Mon Feb 28, 2022 5:40 am

ESP_YJM wrote:
Mon Feb 28, 2022 3:22 am
看样子 LWIP 没有打印 dhcp offer 报文,应该没有收到该报文,你能否抓取空中包看看路由器有没有回复 dhcp offer。
1646026137(1).png
1646026137(1).png (58.01 KiB) Viewed 6781 times
不知道这样操作对不对,用的笔记本无线网卡抓的包,前面65秒前的应该都是回应esp32-c3的offer,没看到esp32-c3的request。65秒开始的是用手机连的,能正常走完DHCP。

liutao
Posts: 24
Joined: Fri Feb 25, 2022 3:11 am

Re: ESP32 DHCP 获取不到IP

Postby liutao » Mon Feb 28, 2022 5:44 am

ESP_YJM wrote:
Mon Feb 28, 2022 3:22 am
看样子 LWIP 没有打印 dhcp offer 报文,应该没有收到该报文,你能否抓取空中包看看路由器有没有回复 dhcp offer。
1646026996(1).png
1646026996(1).png (71.93 KiB) Viewed 6808 times
用电脑共享的wifi,能正常获取到IP。

liutao
Posts: 24
Joined: Fri Feb 25, 2022 3:11 am

Re: ESP32 DHCP 获取不到IP

Postby liutao » Mon Feb 28, 2022 6:54 am

回复提交了快2个小时了,还没审核通过吗

liutao
Posts: 24
Joined: Fri Feb 25, 2022 3:11 am

Re: ESP32 DHCP 获取不到IP

Postby liutao » Mon Feb 28, 2022 7:21 am

我应该提交了吧

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: ESP32 DHCP 获取不到IP

Postby ESP_YJM » Mon Feb 28, 2022 8:45 am

能否把 UDP_DEBUG 也打开

liutao
Posts: 24
Joined: Fri Feb 25, 2022 3:11 am

Re: ESP32 DHCP 获取不到IP

Postby liutao » Mon Feb 28, 2022 8:52 am

ESP_YJM wrote:
Mon Feb 28, 2022 8:45 am
能否把 UDP_DEBUG 也打开
debug.png
debug.png (106.28 KiB) Viewed 6866 times
没有找到UDP_DEBUG选项

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: ESP32 DHCP 获取不到IP

Postby ESP_YJM » Tue Mar 01, 2022 2:07 am

你可以在 lwipopts.h(components/lwip/port/esp32/include)里搜一下 UDP_DEBUG,如果没有,你去 opt.h(components/lwip/lwip/src/include/lwip) 里搜一下,把 #define UDP_DEBUG LWIP_DBG_OFF 改为 LWIP_DBG_ON

liutao
Posts: 24
Joined: Fri Feb 25, 2022 3:11 am

Re: ESP32 DHCP 获取不到IP

Postby liutao » Tue Mar 01, 2022 2:29 am

ESP_YJM wrote:
Tue Mar 01, 2022 2:07 am
你可以在 lwipopts.h(components/lwip/port/esp32/include)里搜一下 UDP_DEBUG,如果没有,你去 opt.h(components/lwip/lwip/src/include/lwip) 里搜一下,把 #define UDP_DEBUG LWIP_DBG_OFF 改为 LWIP_DBG_ON

Code: Select all

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x189c
load:0x403ce000,len:0x8d4
load:0x403d0000,len:0x2dc0
entry 0x403ce000
I (30) boot: ESP-IDF v4.3.2-dirty 2nd stage bootloader
I (30) boot: compile time 17:21:58
I (30) boot: chip revision: 3
I (32) boot.esp32c3: SPI Speed      : 80MHz
I (37) boot.esp32c3: SPI Mode       : DIO
I (42) boot.esp32c3: SPI Flash Size : 4MB
I (47) boot: Enabling RNG early entropy source...
I (52) boot: Partition Table:
I (56) boot: ## Label            Usage          Type ST Offset   Length
I (63) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (70) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (78) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (85) boot:  3 ota_0            OTA app          00 10 00010000 00180000
I (93) boot:  4 ota_1            OTA app          00 11 00190000 00180000
I (100) boot:  5 settings         unknown          40 00 00310000 00001000
I (108) boot:  6 file             unknown          40 00 00311000 000ef000
I (115) boot: End of partition table
I (120) esp_image: segment 0: paddr=00010020 vaddr=3c0e0020 size=312a8h (201384) mapI (158) esp_image: segment 1: paddr=000412d0 vaddr=3fc8fe00 size=03c10h ( 15376) load
I (161) esp_image: segment 2: paddr=00044ee8 vaddr=40380000 size=0b130h ( 45360) load
I (172) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=ddc64h (908388) mapI (309) esp_image: segment 4: paddr=0012dc8c vaddr=4038b130 size=04b18h ( 19224) load
I (313) esp_image: segment 5: paddr=001327ac vaddr=50000000 size=00010h (    16) load
I (319) boot: Loaded app from partition at offset 0x10000
I (321) boot: Disabling RNG early entropy source...
I (338) cpu_start: Pro cpu up.
I (350) cpu_start: Pro cpu start user code
I (350) cpu_start: cpu freq: 160000000
I (350) cpu_start: Application information:
I (353) cpu_start: Project name:     blufi_demo
I (358) cpu_start: App version:      1
I (362) cpu_start: Compile time:     Feb 28 2022 09:42:15
I (369) cpu_start: ELF file SHA256:  df397a116b55b271...
I (375) cpu_start: ESP-IDF:          v4.3.2-dirty
I (380) heap_init: Initializing. RAM available for dynamic allocation:
I (387) heap_init: At 3FC9B890 len 00024770 (145 KiB): DRAM
I (393) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM
I (400) heap_init: At 50000010 len 00001FF0 (7 KiB): RTCRAM
I (407) spi_flash: detected chip: generic
I (411) spi_flash: flash io: dio
I (416) sleep: Configure to isolate all GPIO pins in sleep state
I (422) sleep: Enable automatic switching of GPIO sleep configuration
I (429) cpu_start: Starting scheduler.
netif: netmask of interface  set to 255.0.0.0
netif: GW address of interface  set to 127.0.0.1
netif_set_ipaddr: netif address being changed
netif: added interface lo IP addr 127.0.0.1 netmask 255.0.0.0 gw 127.0.0.1
I (458) coexist: coexist rom version 9387209
I (458) pp: pp rom version: 9387209
I (458) net80211: net80211 rom version: 9387209
I (478) wifi:wifi driver task: 3fca4630, prio:23, stack:6656, core=0
I (478) system_api: Base MAC address is not set
I (478) system_api: read default base MAC address from EFUSE
I (488) wifi:wifi firmware version: eb52264
I (488) wifi:wifi certification version: v7.0
I (488) wifi:config NVS flash: enabled
I (498) wifi:config nano formating: disabled
I (498) wifi:Init data frame dynamic rx buffer num: 32
I (508) wifi:Init management frame dynamic rx buffer num: 32
I (508) wifi:Init management short buffer num: 32
I (518) wifi:Init dynamic tx buffer num: 32
I (518) wifi:Init static tx FG buffer num: 2
I (518) wifi:Init static rx buffer size: 1600
I (528) wifi:Init static rx buffer num: 10
I (528) wifi:Init dynamic rx buffer num: 32
I (538) wifi_init: rx ba win: 6
I (538) wifi_init: tcpip mbox: 32
I (538) wifi_init: udp mbox: 6
I (548) wifi_init: tcp mbox: 6
I (548) wifi_init: tcp tx win: 5744
I (558) wifi_init: tcp rx win: 5744
I (558) wifi_init: tcp mss: 1440
I (558) wifi_init: WiFi IRAM OP enabled
I (568) wifi_init: WiFi RX IRAM OP enabled
I (568) phy_init: phy_version 905,7b93cd2,Oct 25 2021,15:05:11
I (618) wifi:set rx active PTI: 0, rx ack PTI: 12, and default PTI: 1
I (618) wifi:mode : sta (60:55:f9:28:88:c4)
I (618) wifi:enable tsf
netif: added interface st IP addr 0.0.0.0 netmask 0.0.0.0 gw 0.0.0.0
I (628) BLUFI_EXAMPLE: WIFI_EVENT_STA_START

W (628) BTDM_INIT: esp_bt_controller_mem_release not implemented, return OK
I (638) wifi:new:<1,1>, old:<1,0>, ap:<255,255>, sta:<1,1>, prof:1
I (648) wifi:state: init -> auth (b0)
I (648) BTDM_INIT: BT controller compile version [3e61eea]
I (658) coexist: coexist rom version 9387209
I (658) BTDM_INIT: Bluetooth MAC: 60:55:f9:28:88:c5

I (668) wifi:state: auth -> assoc (0)
I (678) BLUFI_EXAMPLE: BD ADDR: 60:55:f9:28:88:c5

I (678) BLUFI_EXAMPLE: BLUFI init finish

W (678) BT_BTM: BTM_BleWriteAdvData, Partial data write into ADV
I (688) BLUFI_EXAMPLE: BLUFI VERSION 0102

I (688) Protocol: 0x3fcb74fc   fa 00 00 00 00 02 00 11  8c ff 05 00              |............|
I (698) : start tcp_client_task
I (708) WIFI: wait to get IP
I (708) : start tcp_client_recv_task
I (708) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (718) gpio: GPIO[5]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (728) wifi:state: assoc -> run (10)
I (738) : start state_led_task
W (738) wifi:<ba-add>idx:0 (ifx:0, 58:41:20:09:d9:62), tid:5, ssn:0, winSize:64     
I (748) : start get_RSSI_task
I (748) BLUFI_EXAMPLE: set rssi threshold
I (838) wifi:connected with TP-LINK_JSB_WZ, aid = 2, channel 1, 40U, bssid = 58:41:20:09:d9:62
I (838) wifi:security: WPA2-PSK, phy: bgn, rssi: -47
I (838) wifi:pm start, type: 1

I (838) wifi:set rx beacon pti, rx_bcn_pti: 14, bcn_timeout: 14, mt_pti: 25000, mt_time: 10000
netif: setting default interface st
dhcp_start(netif=0x3fca1d44) st1
I (848) wifi:BcnInt:102400, DTIM:1
dhcp_start(): restarting DHCP configuration
dhcp_start(): starting DHCP configuration
udp_bind(ipaddr = 0.0.0.0, port = 68)
udp_bind: bound to 0.0.0.0, port 68)
udp_connect: connected to 0.0.0.0, port 67)
dhcp_discover()
dhcp_discover(): dhcp state is DISCOVER
dhcp_select: could not allocate DHCP request
pbuf_alloc(length=308)
pbuf_alloc(length=308) == 0x3fc9d888
transaction id xid(572430c2)
dhcp_discover: making request
dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)
pbuf_add_header: old 0x3fc9d8d8 new 0x3fc9d8d0 (8)
udp_send: added header in given pbuf 0x3fc9d888
udp_send: sending datagram of length 316
udp_send: UDP packet length 316
udp_send: UDP checksum 0xa5f1
udp_send: ip_output_if (,,,,0x11,)
pbuf_add_header: old 0x3fc9d8d0 new 0x3fc9d8bc (20)
ip4_output_if: st1
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |       336     | (v, hl, tos, len)
+-------------------------------+
|        0      |000|       0   | (id, flags, offset)
+-------------------------------+
|  255  |   17  |    0xba9d     | (ttl, proto, chksum)
+-------------------------------+
|    0  |    0  |    0  |    0  | (src)
+-------------------------------+
|  255  |  255  |  255  |  255  | (dest)
+-------------------------------+
ip4_output_if: call netif->output()
pbuf_add_header: old 0x3fc9d8bc new 0x3fc9d8ae (14)
ethernet_output: sending packet 0x3fc9d888
dhcp_discover: deleting()ing
pbuf_free(0x3fc9d888)
pbuf_free: deallocating 0x3fc9d888
dhcp_discover: SELECTING
dhcp_discover(): set request timeout 500 msecs
I (998) BLUFI_EXAMPLE: WIFI_EVENT_STA_CONNECTED

I (998) BLUFI_EXAMPLE: rssi:-47
I (1008) Protocol: 0x3fcbc8d4   fa 00 00 00 00 02 00 11  8c e7 04 1f              |............|
I (1018) BLUFI_EXAMPLE: mac:MAC6055f92888c4
dhcp_fine_tmr(): request timeout
dhcp_timeout()
dhcp_timeout(): restarting discovery
dhcp_discover()
dhcp_discover(): dhcp state is DISCOVER
dhcp_select: could not allocate DHCP request
pbuf_alloc(length=308)
pbuf_alloc(length=308) == 0x3fc9d888
transaction id xid(572430c2)
dhcp_discover: making request
dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)      
pbuf_add_header: old 0x3fc9d8d8 new 0x3fc9d8d0 (8)
udp_send: added header in given pbuf 0x3fc9d888
udp_send: sending datagram of length 316
udp_send: UDP packet length 316
udp_send: UDP checksum 0xa5f1
udp_send: ip_output_if (,,,,0x11,)
pbuf_add_header: old 0x3fc9d8d0 new 0x3fc9d8bc (20)
ip4_output_if: st1
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |       336     | (v, hl, tos, len)
+-------------------------------+
|        1      |000|       0   | (id, flags, offset)
+-------------------------------+
|  255  |   17  |    0xba9c     | (ttl, proto, chksum)
+-------------------------------+
|    0  |    0  |    0  |    0  | (src)
+-------------------------------+
|  255  |  255  |  255  |  255  | (dest)
+-------------------------------+
ip4_output_if: call netif->output()
pbuf_add_header: old 0x3fc9d8bc new 0x3fc9d8ae (14)
ethernet_output: sending packet 0x3fc9d888
dhcp_discover: deleting()ing
pbuf_free(0x3fc9d888)
pbuf_free: deallocating 0x3fc9d888
dhcp_discover: SELECTING
dhcp_discover(): set request timeout 1000 msecs
etharp_timer
dhcp_coarse_tmr()
I (1708) WIFI: wait to get IP
dhcp_fine_tmr(): request timeout
dhcp_timeout()
dhcp_timeout(): restarting discovery
dhcp_discover()
dhcp_discover(): dhcp state is DISCOVER
dhcp_select: could not allocate DHCP request
pbuf_alloc(length=308)
pbuf_alloc(length=308) == 0x3fc9d888
transaction id xid(572430c2)
dhcp_discover: making request
dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)
pbuf_add_header: old 0x3fc9d8d8 new 0x3fc9d8d0 (8)
udp_send: added header in given pbuf 0x3fc9d888
udp_send: sending datagram of length 316
udp_send: UDP packet length 316
udp_send: UDP checksum 0xa5f1
udp_send: ip_output_if (,,,,0x11,)
pbuf_add_header: old 0x3fc9d8d0 new 0x3fc9d8bc (20)
ip4_output_if: st1
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |       336     | (v, hl, tos, len)
+-------------------------------+
|        2      |000|       0   | (id, flags, offset)
+-------------------------------+
|  255  |   17  |    0xba9b     | (ttl, proto, chksum)
+-------------------------------+
|    0  |    0  |    0  |    0  | (src)
+-------------------------------+
|  255  |  255  |  255  |  255  | (dest)
+-------------------------------+
ip4_output_if: call netif->output()
pbuf_add_header: old 0x3fc9d8bc new 0x3fc9d8ae (14)
ethernet_output: sending packet 0x3fc9d888
dhcp_discover: deleting()ing
pbuf_free(0x3fc9d888)
pbuf_free: deallocating 0x3fc9d888
dhcp_discover: SELECTING
dhcp_discover(): set request timeout 2000 msecs
etharp_timer
dhcp_coarse_tmr()
I (2708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (3708) WIFI: wait to get IP
dhcp_fine_tmr(): request timeout
dhcp_timeout()
dhcp_timeout(): restarting discovery
dhcp_discover()
dhcp_discover(): dhcp state is DISCOVER
dhcp_select: could not allocate DHCP request
pbuf_alloc(length=308)
pbuf_alloc(length=308) == 0x3fc9d888
transaction id xid(572430c2)
dhcp_discover: making request
dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)      
pbuf_add_header: old 0x3fc9d8d8 new 0x3fc9d8d0 (8)
udp_send: added header in given pbuf 0x3fc9d888
udp_send: sending datagram of length 316
udp_send: UDP packet length 316
udp_send: UDP checksum 0xa5f1
udp_send: ip_output_if (,,,,0x11,)
pbuf_add_header: old 0x3fc9d8d0 new 0x3fc9d8bc (20)
ip4_output_if: st1
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |       336     | (v, hl, tos, len)
+-------------------------------+
|        3      |000|       0   | (id, flags, offset)
+-------------------------------+
|  255  |   17  |    0xba9a     | (ttl, proto, chksum)
+-------------------------------+
|    0  |    0  |    0  |    0  | (src)
+-------------------------------+
|  255  |  255  |  255  |  255  | (dest)
+-------------------------------+
ip4_output_if: call netif->output()
pbuf_add_header: old 0x3fc9d8bc new 0x3fc9d8ae (14)
ethernet_output: sending packet 0x3fc9d888
dhcp_discover: deleting()ing
pbuf_free(0x3fc9d888)
pbuf_free: deallocating 0x3fc9d888
dhcp_discover: SELECTING
dhcp_discover(): set request timeout 4000 msecs
etharp_timer
dhcp_coarse_tmr()
I (4708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (5708) WIFI: wait to get IP
I (5748) BLUFI_EXAMPLE: set rssi threshold
I (6178) BLUFI_EXAMPLE: rssi:-37
I (6178) Protocol: 0x3fcbc8d4   fa 00 00 00 00 02 00 11  8c e7 04 1f              |............|
I (6178) BLUFI_EXAMPLE: mac:MAC6055f92888c4
etharp_timer
dhcp_coarse_tmr()
I (6708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (7708) WIFI: wait to get IP
dhcp_fine_tmr(): request timeout
dhcp_timeout()
dhcp_timeout(): restarting discovery
dhcp_discover()
dhcp_discover(): dhcp state is DISCOVER
dhcp_select: could not allocate DHCP request
pbuf_alloc(length=308)
pbuf_alloc(length=308) == 0x3fc9d888
transaction id xid(572430c2)
dhcp_discover: making request
dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)
pbuf_add_header: old 0x3fc9d8d8 new 0x3fc9d8d0 (8)
udp_send: added header in given pbuf 0x3fc9d888
udp_send: sending datagram of length 316
udp_send: UDP packet length 316
udp_send: UDP checksum 0xa5f1
udp_send: ip_output_if (,,,,0x11,)
pbuf_add_header: old 0x3fc9d8d0 new 0x3fc9d8bc (20)
ip4_output_if: st1
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |       336     | (v, hl, tos, len)
+-------------------------------+
|        4      |000|       0   | (id, flags, offset)
+-------------------------------+
|  255  |   17  |    0xba99     | (ttl, proto, chksum)
+-------------------------------+
|    0  |    0  |    0  |    0  | (src)
+-------------------------------+
|  255  |  255  |  255  |  255  | (dest)
+-------------------------------+
ip4_output_if: call netif->output()
pbuf_add_header: old 0x3fc9d8bc new 0x3fc9d8ae (14)
ethernet_output: sending packet 0x3fc9d888
dhcp_discover: deleting()ing
pbuf_free(0x3fc9d888)
pbuf_free: deallocating 0x3fc9d888
dhcp_discover: SELECTING
dhcp_discover(): set request timeout 8000 msecs
etharp_timer
dhcp_coarse_tmr()
I (8708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (9708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (10708) WIFI: wait to get IP
I (10748) BLUFI_EXAMPLE: set rssi threshold
etharp_timer
dhcp_coarse_tmr()
I (11708) WIFI: wait to get IP
I (11808) BLUFI_EXAMPLE: rssi:-34
I (11808) Protocol: 0x3fcbc8d4   fa 00 00 00 00 02 00 11  8c e7 04 1f              |............|
I (11808) BLUFI_EXAMPLE: mac:MAC6055f92888c4
etharp_timer
dhcp_coarse_tmr()
I (12708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (13708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (14708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (15708) WIFI: wait to get IP
I (15748) BLUFI_EXAMPLE: set rssi threshold
dhcp_fine_tmr(): request timeout
dhcp_timeout()
dhcp_timeout(): restarting discovery
dhcp_discover()
dhcp_discover(): dhcp state is DISCOVER
dhcp_select: could not allocate DHCP request
pbuf_alloc(length=308)
pbuf_alloc(length=308) == 0x3fc9d888
transaction id xid(572430c2)
dhcp_discover: making request
dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)
pbuf_add_header: old 0x3fc9d8d8 new 0x3fc9d8d0 (8)
udp_send: added header in given pbuf 0x3fc9d888
udp_send: sending datagram of length 316
udp_send: UDP packet length 316
udp_send: UDP checksum 0xa5f1
udp_send: ip_output_if (,,,,0x11,)
pbuf_add_header: old 0x3fc9d8d0 new 0x3fc9d8bc (20)
ip4_output_if: st1
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |       336     | (v, hl, tos, len)
+-------------------------------+
|        5      |000|       0   | (id, flags, offset)
+-------------------------------+
|  255  |   17  |    0xba98     | (ttl, proto, chksum)
+-------------------------------+
|    0  |    0  |    0  |    0  | (src)
+-------------------------------+
|  255  |  255  |  255  |  255  | (dest)
+-------------------------------+
ip4_output_if: call netif->output()
pbuf_add_header: old 0x3fc9d8bc new 0x3fc9d8ae (14)
ethernet_output: sending packet 0x3fc9d888
dhcp_discover: deleting()ing
pbuf_free(0x3fc9d888)
pbuf_free: deallocating 0x3fc9d888
dhcp_discover: SELECTING
dhcp_discover(): set request timeout 15000 msecs
I (16308) BLUFI_EXAMPLE: rssi:-34
I (16308) Protocol: 0x3fcbc8d4   fa 00 00 00 00 02 00 11  8c e7 04 1f              |............|
I (16318) BLUFI_EXAMPLE: mac:MAC6055f92888c4
etharp_timer
dhcp_coarse_tmr()
I (16708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (17708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (18708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (19708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (20708) WIFI: wait to get IP
I (20748) BLUFI_EXAMPLE: set rssi threshold
I (20918) BLUFI_EXAMPLE: rssi:-32
I (20918) Protocol: 0x3fcbc8d4   fa 00 00 00 00 02 00 11  8c e7 04 1f              |............|
I (20928) BLUFI_EXAMPLE: mac:MAC6055f92888c4
etharp_timer
dhcp_coarse_tmr()
I (21708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (22708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (23708) WIFI: wait to get IP
etharp_timer
dhcp_coarse_tmr()
I (24708) WIFI: wait to get IP

Who is online

Users browsing this forum: No registered users and 104 guests