Page 1 of 1

pppos_client with lilygo 7000g

Posted: Thu Dec 21, 2023 12:58 pm
by postpiet
Hello,

My code is an edit version of the pppos_client example: https://github.com/espressif/esp-protoc ... pos_client

Here is my code in the platformio ESPIDF format: https://github.com/Jorin-Post/ESPIDF_PPP_MQTTs
Tried to ping and to set SNTP time without result. So my conclusion is that the connection is established, but there is no internet access.

Log returns:

Code: Select all

␛[0;32mI (526) main_task: Calling app_main()␛[0m
␛[0;32mI (3526) pppos_example: Initializing esp_modem for the SIM7000 module...␛[0m
␛[0;32mI (3526) uart: queue free spaces: 30␛[0m
␛[0;31mE (4526) pppos_example: ATI failed with 263␛[0m
-------------------------------------------------------------------------------------------------------------------------------------
␛[0;32mI (52706) pppos_example: ATI response=SIM7000G R1529␛[0m
␛[0;32mI (52746) pppos_example: Signal quality: rssi=23, ber=99␛[0m
␛[0;32mI (52746) pppos_example: Connection IP: 0.0.0.0␛[0m
␛[0;32mI (52746) pppos_example: Waiting for IP address␛[0m
␛[0;32mI (53796) pppos_example: Modem Connect to PPP Server␛[0m
␛[0;32mI (53796) pppos_example: ~~~~~~~~~~~~~~␛[0m
␛[0;32mI (53796) pppos_example: IP          : 10.127.154.187␛[0m
␛[0;32mI (53806) pppos_example: Netmask     : 255.255.255.255␛[0m
␛[0;32mI (53806) esp-netif_lwip-ppp: Connected␛[0m
␛[0;32mI (53806) pppos_example: Gateway     : 10.64.64.64␛[0m
␛[0;32mI (53816) pppos_example: Name Server1: 62.140.140.251␛[0m
␛[0;32mI (53826) pppos_example: Name Server2: 62.140.138.233␛[0m
␛[0;32mI (53836) pppos_example: ~~~~~~~~~~~~~~␛[0m
␛[0;32mI (53836) pppos_example: GOT ip event!!!␛[0m
␛[0;32mI (53846) pppos_example: Config MQTT␛[0m
␛[0;32mI (53846) pppos_example: PPP state changed event 0␛[0m
␛[0;32mI (53856) pppos_example: MQTT other event id: 7␛[0m
␛[0;31mE (67856) esp-tls: couldn't get hostname for :io.adafruit.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (67856) esp-tls: Failed to open new connection␛[0m
␛[0;31mE (67856) transport_base: Failed to open a new connection␛[0m
␛[0;31mE (67866) mqtt_client: Error transport connect␛[0m
␛[0;32mI (67866) pppos_example: MQTT_EVENT_ERROR␛[0m
␛[0;32mI (67876) pppos_example: MQTT_EVENT_DISCONNECTED␛[0m
␛[0;31mE (77766) esp-netif_lwip-ppp: Connection timeout␛[0m
␛[0;32mI (77766) pppos_example: PPP state changed event 9␛[0m
␛[0;32mI (77766) esp_modem_netif: PPP state changed event 9␛[0m
Even I enter the ip hostname of io.adafruit.com direct in hostname it gives back couldn't get hostname for :

Code: Select all

.broker.address.hostname = "ip_adress of broker" 

[0;31mE (67856) esp-tls: couldn't get hostname for :io.adafruit.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
Can someone help with this problem?
Let me know if you need more information.