Hi Daniel,
Thanks for your response.
Before running CONNMAN_DHCP_DEBUG=1 connmand -n -d
src/dhcp.c:src/network.c, I did a a debug to examine connman logs, it
looks like that the connman stopped polling DHCP or callback, no
further logs when the IP address could not be resumed, you can see the
time difference, the connman was still running:
# date
Tue Dec 29 20:29:22 UTC 2020
# journalctl -u connman
.....
Dec 29 19:43:32 solar connmand[173]: wwan0 {del} address 10.114.31.107/29 label
wwan0
Dec 29 19:43:32 solar connmand[173]: wwan0 {del} route 10.114.31.104 gw 0.0.0.0
scope 253 <LINK>
# systemctl status connman -l
* 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 Sat 2020-12-26 23:21:09 UTC; 2 days ago
Main PID: 173 (connmand)
CGroup: /system.slice/connman.service
`-173 /usr/sbin/connmand -n
Here is the procedures I was doing debug:
- Connect LTE antenna, connected
- Disconnect LTE antenna, lost LTE IP
- Connect LTE antenna, resumed
- Repeat above until no IP
Please see attached two debug files, one resumed IP address well, one
failed to resume, there is one ofono error in the log file when it
failed to resume, but I checked the AT command at time, the modem was
connected. Could connman stop polling DHCP or callback when it
encountered an error?
Thank you.
Kind regards,
Jupiter
On 12/29/20, Daniel Wagner <wagi(a)monom.org> wrote:
Hi,
On Tue, Dec 29, 2020 at 06:50:49PM +1100, Jupiter wrote:
> I am running 4G LTE managed by ofono version 1.30 and connman version
> 1.37, it works well most of the time, but occasionally, the 4G modem
> is connected, there is no IP address so I have to run systemctl
> restart connman to bring the IP address back. As it is intermittent
> and random, it is hard to debug, any insight advice what I could be
> missing, why couldn't connman pick up the 4G LTE IP reliably?
ConnMan continues to do send out DHCP Request until it has a valid DHCP
lease. It's hard to tell anything from your description. One thing I
would try is to enable ConnMan's debug log but limit it to the
interesting parts, e.g.
CONNMAN_DHCP_DEBUG=1 connmand -n -d src/dhcp.c:src/network.c
HTH,
Daniel
--
"A man can fail many times, but he isn't a failure until he begins to
blame somebody else."
-- John Burroughs