← index #5439Issue #4786
Related · high · value 1.995
QUERY · ISSUE

Can not ppp success on esp32

openby zhangxq87opened 2019-12-19updated 2024-08-14

Hi,
My esp32 is running this build(MicroPython v1.11-665-gfb0141559 on 2019-12-14; ESP32 module with ESP32)
I can ppp success on raspberry with GSM module but cannot success on ESP32 board.
Commands as below, anyone can help on it? thanks.

`

from machine import UART
import network
GSM = UART(1, baudrate=115200, rx=18, tx=19)
I (31450) uart: ALREADY NULL
GSM.write('AT\r\n')
4
GSM.read()
b'AT\r\n\r\nOK\r\n'
GSM.write('AT+CGDCONT=1,"IP","3GNET"\r\n')
27
GSM.read()
b'AT+CGDCONT=1,"IP","3GNET"\r\n\r\nOK\r\n'
GSM.write('AT+CGDATA="PPP",1\r\n')
19
GSM.read()
b'AT+CGDATA="PPP",1\r\n\r\nCONNECT\r\n'
GPRS=network.PPP(GSM)
GPRS.active(True)
True
GPRS.connect()
GPRS.isconnected()
False
GPRS.ifconfig()
('0.0.0.0', '0.0.0.0', '255.255.255.255', '0.0.0.0')`

CANDIDATE · ISSUE

esp32: uart deinit missing

closedby nedoskivopened 2019-05-14updated 2019-05-17
port-esp32

Hello,

I was trying to start internet connection using GSM module and run into some troubles. A part from network.PPP stability there is kind a device restarts when comunicating with modem over serial after network.PPP link is deactivated, https://github.com/micropython/micropython/issues/4708 so I decided to deinit uart and init it again with hope it gonna solve that issue,but for my surprise uart.deinit is not available.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied