Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to resolve address #3

Open
muman613 opened this issue May 31, 2023 · 0 comments
Open

Failed to resolve address #3

muman613 opened this issue May 31, 2023 · 0 comments

Comments

@muman613
Copy link

Hello,

I found this project useful to demonstrate connecting to a wifi ap... Unfortunately that is about all the code does at this time.

For me the part which tries to resolve the hostname to ipv4 address constantly fails. Here is the log:

--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun  8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6604
ho 0 tail 12 room 4
load:0x40078000,len:15224
ho 0 tail 12 room 4
load:0x40080400,len:3992
entry 0x40080634
I (30) boot: ESP-IDF 8d8d537fa 2nd stage bootloader
I (30) boot: compile time 09:43:37
I (30) boot: chip revision: 1
I (33) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (41) boot.esp32: SPI Speed      : 40MHz
I (45) boot.esp32: SPI Mode       : DIO
I (50) boot.esp32: SPI Flash Size : 4MB
I (54) boot: Enabling RNG early entropy source...
I (60) boot: Partition Table:
I (63) boot: ## Label            Usage          Type ST Offset   Length
I (71) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (78) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (85) boot:  2 factory          factory app      00 00 00010000 00100000
I (93) boot: End of partition table
I (97) boot_comm: chip revision: 1, min. application chip revision: 0
I (104) esp_image: segment 0: paddr=00010020 vaddr=00000020 size=0001ch (    28) 
I (113) esp_image: segment 1: paddr=00010044 vaddr=3ffb0000 size=0168ch (  5772) load
I (123) esp_image: segment 2: paddr=000116d8 vaddr=3ffb168c size=00550h (  1360) load
I (130) esp_image: segment 3: paddr=00011c30 vaddr=40080000 size=07f60h ( 32608) load
I (152) esp_image: segment 4: paddr=00019b98 vaddr=00000000 size=064a0h ( 25760) 
I (161) esp_image: segment 5: paddr=00020040 vaddr=3f400040 size=09040h ( 36928) map
I (175) esp_image: segment 6: paddr=00029088 vaddr=00000000 size=06f90h ( 28560) 
I (186) esp_image: segment 7: paddr=00030020 vaddr=400d0020 size=4d9c0h (317888) map
I (306) boot: Loaded app from partition at offset 0x10000
I (306) boot: Disabling RNG early entropy source...
*** Booting Zephyr OS build v3.4.0-rc1 ***
WiFi Example
Board: esp32
Connecting to SSID: softwaremagic
Connected
SSID: softwaremagic                   
Band: 2.4GHz
Channel: 11
Security: WPA2-PSK
RSSI: -52
IPv4 address: 192.168.0.116
Subnet: 255.255.255.0
Router: 192.168.0.1
Ready...
Looking up IP addresses:
getaddrinfo() failed, err 12


Backtrace:0x400d63d5:0x3ffe9470 0x400d669d:0x3ffe94d0 0x40083ecf:0x3ffe9500 0x400d685b:0x3ffe9520 
0x400d63d5: print_addrinfo_results at /home/michael_uman/gitroot/Zephyr_WiFi/build/../src/http_get.c:41

0x400d669d: main at /home/michael_uman/gitroot/Zephyr_WiFi/build/../src/wifi.c:192

0x40083ecf: bg_thread_main at /home/michael_uman/zephyrproject/zephyr/kernel/init.c:344

0x400d685b: z_thread_entry at /home/michael_uman/zephyrproject/zephyr/lib/os/thread_entry.c:36



getaddrinfo() fails with code 12 (not sure what it means). Has anyone else resolved this problem?

I believe I am using Zephyr tag v3.4.0-rc1 at the moment...

Thank you,
Michael Uman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant