能否实现PPP拨号功能+构建HTTP服务器?

Moderator: ESP_Bob

lcode-
Posts: 2
Joined: Tue Apr 26, 2022 8:45 am

能否实现PPP拨号功能+构建HTTP服务器?

Postby lcode- » Tue Apr 26, 2022 8:52 am

1、我已经通过修改usb_cdc_4g_module demo实现PPP拨号上网,但是加上HTTP服务器后,HTTP服务器会访问不了,PPP拨号上网也会异常。 :shock:
2、单独构建HTTP服务器,不使用PPP拨号上网,HTTP服务器没问题
3、日志,PPP+HTTP功能,在访问HTTP服务器会返回错误:esp-netif_lwip-ppp: pppos_input_tcpip failed with -1

Code: Select all

I (00:02:13.398) 4G_MODUAL_TASK: <     NAT is enabled!   >
I (00:02:13.398) 4G_MODUAL_TASK: <     http_server_is_open >
E (00:02:13.430) esp-netif_lwip-ppp: pppos_input_tcpip failed with -1
E (00:02:13.445) esp-netif_lwip-ppp: pppos_input_tcpip failed with -1
E (00:02:13.719) esp-netif_lwip-ppp: pppos_input_tcpip failed with -1
=================================================
wifi_mode=3

=================================================
E (00:02:13.827) esp-netif_lwip-ppp: pppos_input_tcpip failed with -1
E (00:02:14.174) esp-netif_lwip-ppp: pppos_input_tcpip failed with -1
E (00:02:14.238) esp-netif_lwip-ppp: pppos_input_tcpip failed with -1
E (00:02:14.263) esp-netif_lwip-ppp: pppos_input_tcpip failed with -1
E (00:02:14.278) esp-netif_lwip-ppp: pppos_input_tcpip failed with -1
E (00:02:14.358) esp-netif_lwip-ppp: pppos_input_tcpip failed with -1

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

Re: 能否实现PPP拨号功能+构建HTTP服务器?

Postby ESP_YJM » Mon May 09, 2022 8:29 am

-1 表示 ERR_MEM,内存不足,建议你打印下内存看看。

lcode-
Posts: 2
Joined: Tue Apr 26, 2022 8:45 am

Re: 能否实现PPP拨号功能+构建HTTP服务器?

Postby lcode- » Tue May 10, 2022 4:40 am

是的,我已经更改成ESP32-S3系列的模组了,感谢您! :D

Who is online

Users browsing this forum: No registered users and 50 guests