Unable to connect socket over PPPOS
Posted: Fri Oct 02, 2020 1:58 pm
HI,
I'm using esp-idf 4.1 with custom hardware with a Ublox Sara-R4 modem. Previously I was using esp-idf 3.3 and that is working.
My problem is that I can not communicate using standard sockets functions. All the PPPOS stages are ok. Im getting the IP address from the modem. It seams that the socket layer is not attatch with the PPPOS layer in some way. If I call i.e connect I get the error message "Host is unreachable". I have placed som dubug prints in the functions "modem_netif_receive_cb" and "esp_modem_dte_transmit" in the file "esp_modem_netif.c" but these callbacks are not being called when i.e call connect (lwip/sockets.h).
I'm using esp-idf 4.1 with custom hardware with a Ublox Sara-R4 modem. Previously I was using esp-idf 3.3 and that is working.
My problem is that I can not communicate using standard sockets functions. All the PPPOS stages are ok. Im getting the IP address from the modem. It seams that the socket layer is not attatch with the PPPOS layer in some way. If I call i.e connect I get the error message "Host is unreachable". I have placed som dubug prints in the functions "modem_netif_receive_cb" and "esp_modem_dte_transmit" in the file "esp_modem_netif.c" but these callbacks are not being called when i.e call connect (lwip/sockets.h).