How to handle carrier disconnections?

Hello.
I’ve some Quectel EG25-G and i’m having some problems with carrier disconnections.
The modem is plugged on linux and works with qmi mode.

On boot, the wwan interface up with

qmicli -p -d /dev/cdc-wdm0 --wds-set-autoconnect-settings=enabled
qmicli -p -d /dev/cdc-wdm0 --device-open-net='net-raw-ip|net-no-qos-header' --wds-start-network="apn=internet.com, username=, password=" --client-no-release-cid
udhcpc -q -f -n -i wwan0

Is there any additional configuration required for the connection to be reestablished automatically?

Thanks

Therefore, there is no problem in establishing a normal data connection. Isn’t it? But you can’t reconnect automatically. You may want to consider using quectel’s Quectel-CM tool, which supports automatic reconnection.

As I know, if you try the libqmi, it does not support auto reconnect.

Thank you @Bean.Wang-Q

Can you share with me any link about Quectel-CM tool to download it?

Please try it. I have sent it via message.

Please discuss here.

qcm.service
[Unit]
Description=just for quectel-CM
After=Network.service Resolv.service

[Service]
ExecStart=/usr/bin/quectel-CM

[Install]
WantedBy=multi-user.target

# sudo systemctl daemon-reload            
# sudo systemctl enable cm.service        


I was testing with this service and seems works fine

[Unit]
Description=Quectel-CM tool
Wants=sys-devices-virtual-net-wwan0.device
After=sys-devices-virtual-net-wwan0.device

[Service]
Type=simple
Restart=always
RestartSec=30
RemainAfterExit=no
ExecStart=/usr/bin/quectel-CM

[Install]
WantedBy=multi-user.target

I’ve another reaetd question.
How can I the signal strength using quectel-CM tool, for example, that I previously requested with qmicli -p -d /dev/cdc-wdm0 --nas-get-signal-strength ?

Please check the source code of quectel-CM.
Try open the MICRO
QMIThread.h
9://#define CONFIG_SIGNALINFO
Or you can send AT
AT+QCSQ
AT+QENG=“servingcell”

Perfect!
I see the signal info on the log.

Thanks for the quick support

Can you send me the cm tools too? Thanks!

Please check the message.

1 Like