The modem setup is OK, from reseting it to configure APN.
Is not clear if PPP needs to be called after we dial ATD*99# or PPP will dial itself.
No error is shown with the following code
Code: Select all
print(f'[MODM] CSQ: {rssi} {ber}')
wait_sim_card_ready(modem, timeout=60000)
wait_register_network(modem, timeout=30000)
set_apn(modem, apn='my_apn')
print(modem.AT("operator"))
print(modem.AT("dial", '*99#'))
ppp = network.PPP(modem.uart)
ppp.active(True)
ppp.connect("sl2sfr", "")
while True:
status = ppp.status()
print(ppp.ifconfig())
connection_state = ppp.isconnected()
print(f'[PPP] Connection state: {connection_state}. Status {status}')
sleep(5)
Connection state is always False
Code: Select all
('0.0.0.0', '0.0.0.0', '255.255.255.255', '0.0.0.0')
[PPP] Connection state: False. Status None
Is there any working code available, examples, etc?
Thank you in advance.