← index #4708Issue #4786
Related · high · value 0.623
QUERY · ISSUE

network.PPP troubles

openby nedoskivopened 2019-04-20updated 2024-12-21
port-esp32

Hello,

I finally managed to connect my GSM modem and start PPP link, but when decide to drop the link in order to control modem again prompt/system hangs (froze the promp) for unlimited time, but can be interrupted with control-C and the link is down after interruption.

That happen even without actially connect to internet:

>>> import machine
>>> import network
>>> gsm = machine.UART(1,tx=22, rx=21, timeout=1000,  baudrate=9600)
>>> ppp=network.PPP(gsm)
>>> ppp.active(True)
True
>>> ppp.active(False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyboardInterrupt: 
>>> 
>>> 

Sometimes it reset module when interrupt with ctrl-c. I'm using:

MicroPython v1.10-290-g8402c26cf on 2019-04-20; ESP32 module with ESP32

P.S.

I can add that ppp.status() never return anything to me, connected, disconnected does not matter, it always prompt nothing.

P.S.1
ppp.isconnected() , start show True when it get IP address, but I do a little test, unplug my GSM modem, and let some time passes, so far it is 15 minutes and it still returns True

P.S.2
Noticed that DNS server is not set from ppp.ifconfig()

`>>> ppp.ifconfig()
('10.164.62.94', '192.168.254.254', '255.255.255.255', '0.0.0.0')

ppp.ifconfig("8.8.8.8")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: object 'str' isn't a tuple or list
ppp.ifconfig(dns="8.8.8.8")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: function doesn't take keyword arguments`
Do not know how to set it UP since there is no documentation.

  • tested there is no internet on the board, without DNS
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