Hi Daniel,
The logs don't contain the debug output. Only the info output.
There
should be a lot more log entries.
Hmm, that might be caused by running the following command in a shell
script in systemd service, the reason I had to run it in systemd
service because I could not get faulty occurred when I run following
command in console command line, running in command line seems much
stable than to run it in systemd service.
CONNMAN_DHCP_DEBUG=1 connmand -n -d
src/dhpc.c:src/network.c:plugins/ofono.c > /data/log/connman.log 2>&1
When it is working, this log pattern repeats?
Yes, here is I run tail -f /data/log/connman.log:
Disconnect antenna (No IP)
[14138.869278] ieee80211 phy0: mwifiex_cfg80211_sched_scan_start : Invalid Sched
_scan parameters
connmand[1272]: wwan0 {del} route 0.0.0.0 gw 10.116.101.194 scope 0 <UNIVERSE
connmand[1272]: wwan0 {del} route 10.4.149.70 gw 10.116.101.194
scope 0 <UNIVERS
E
connmand[1272]: wwan0 {del} route 10.4.27.70 gw 10.116.101.194
scope 0 <UNIVERSE
connmand[1272]: wwan0 {del} route 10.116.101.194 gw 0.0.0.0
scope 253 <LINK
connmand[1272]: wwan0 {del} address
10.116.101.193/30 label wwan0
connmand[1272]: wwan0 {del} route 10.116.101.192 gw 0.0.0.0 scope 253 <LINK
Connect antenna
connmand[1272]: ipconfig state 3 ipconfig method 1
connmand[1272]: wwan0 {add} address 10.116.101.193/30 label wwan0 family 2
connmand[1272]: wwan0 {add} route 10.116.101.192 gw 0.0.0.0 scope 253 <LINK
connmand[1272]: wwan0 {add} route 10.116.101.194 gw 0.0.0.0
scope 253 <LINK
connmand[1272]: wwan0 {add} route
10.4.149.70 gw 10.116.101.194 scope 0 <UNIVERS
E
connmand[1272]: wwan0 {add} route 10.4.27.70 gw 10.116.101.194
scope 0 <UNIVERSE
connmand[1272]: wwan0 {add} route 0.0.0.0 gw 10.116.101.194
scope 0 <UNIVERSE
connmand[1272]: wwan0 {del} route
0.0.0.0 gw 10.116.101.194 scope 0 <UNIVERSE
connmand[1272]: wwan0 {del} route 10.4.149.70 gw 10.116.101.194 scope 0 <UNIVERS
E
connmand[1272]: wwan0 {del} route 10.4.27.70 gw 10.116.101.194
scope 0 <UNIVERSE
connmand[1272]: wwan0 {del} route 10.116.101.194 gw 0.0.0.0
scope 253 <LINK
connmand[1272]: wwan0 {del} address
10.116.101.193/30 label wwan0
connmand[1272]: wwan0 {del} route 10.116.101.192 gw 0.0.0.0 scope 253 <LINK
connmand[1272]: ipconfig state 3 ipconfig method 1
connmand[1272]: wwan0 {add} address 10.116.101.193/30 label wwan0 family 2
connmand[1272]: wwan0 {add} route 10.116.101.192 gw 0.0.0.0 scope 253 <LINK
connmand[1272]: wwan0 {add} route 10.116.101.194 gw 0.0.0.0
scope 253 <LINK
connmand[1272]: wwan0 {add} route
10.4.149.70 gw 10.116.101.194 scope 0 <UNIVERS
E
connmand[1272]: wwan0 {add} route 10.4.27.70 gw 10.116.101.194
scope 0 <UNIVERSE
connmand[1272]: wwan0 {add} route 0.0.0.0 gw 10.116.101.194
scope 0 <UNIVERSE
connmand[1272]: wwan0 {add} route
212.227.81.55 gw 10.116.101.194 scope 0 <UNIVE
RSE
connmand[1272]: wwan0 {del} route 212.227.81.55 gw
10.116.101.194 scope 0 <UNIVE
RSE
Repeated ... until no IP address comming, there was no more output of
above messages either, looks like some connman polling or callback
process stopped despite connmand was still running:
# systemctl status connman
* connman.service - Connection service
Loaded: loaded (8;;file://solar/lib/systemd/system/connman.service/lib/system
d/system/connman.service8;;; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-12-30 09:15:32 UTC; 14min ago
Main PID: 1271 (sa_connman_debu)
CGroup: /system.slice/connman.service
|-1271 /bin/sh /data/bin/sa_connman_debug.sh
`-1272 connmand -n -d src/dhpc.c:src/network.c:plugins/ofono.c
Dec 30 09:26:37 solar connmand[1272]: wwan0 {add} route 10.4.27.70 gw 10.116.101
.194 scope 0 <UNIVERSE
Dec 30 09:26:37 solar
connmand[1272]: wwan0 {add} route 0.0.0.0 gw 10.116.101.19
4 scope 0 <UNIVERSE
Dec 30 09:26:39 solar
connmand[1272]: wwan0 {add} route 212.227.81.55 gw 10.116.
101.194 scope 0 <UNIVERSE
Dec 30 09:26:41 solar
connmand[1272]: wwan0 {del} route 212.227.81.55 gw 10.116.
101.194 scope 0 <UNIVERSE
Dec 30 09:29:39 solar
connmand[1272]: wwan0 {del} route 0.0.0.0 gw 10.116.101.19
4 scope 0 <UNIVERSE
Dec 30 09:29:39 solar
connmand[1272]: wwan0 {del} route 10.4.149.70 gw 10.116.10
1.194 scope 0 <UNIVERSE
Dec 30 09:29:39 solar
connmand[1272]: wwan0 {del} route 10.4.27.70 gw 10.116.101
.194 scope 0 <UNIVERSE
Dec 30 09:29:39 solar
connmand[1272]: wwan0 {del} route 10.116.101.194 gw 0.0.0.
0 scope 253 <LINK
Dec 30 09:29:39 solar
connmand[1272]: wwan0 {del} address 10.116.101.193/30 labe
l wwan0
Dec 30 09:29:39 solar connmand[1272]: wwan0 {del} route 10.116.101.192 gw 0.0.0.
0 scope 253 <LINK
Thank you.
Kind regards,
Jupiter