Modem connection is unstable after a few hours

when my modem is up for about 20 hours it always gets a log like this.

[7/28/2023, 8:06:05 AM] hostapd: nl80211: nl80211_recv_beacons->nl_recvmsgs failed: -5
[7/28/2023, 8:06:05 AM] hostapd: nl80211: nl80211_recv_beacons->nl_recvmsgs failed: -5
[7/28/2023, 8:04:59 AM] gsmd[2215]: [ubus_call_hotplug:262] error: [MODEM_UBUS] Failed to invoke ubus hotplug.d gsm method for `1-1.4 [2c7c:0125]` modem!
[7/28/2023, 8:04:59 AM] gsmd[2215]: [ubus_call_hotplug:262] error: [MODEM_UBUS] Failed to invoke ubus hotplug.d gsm method for `1-1.4 [2c7c:0125]` modem!
[7/28/2023, 8:04:59 AM] hostapd: nl80211: nl80211_recv_beacons->nl_recvmsgs failed: -5
[7/28/2023, 8:04:59 AM] hostapd: nl80211: nl80211_recv_beacons->nl_recvmsgs failed: -5
[7/28/2023, 8:04:59 AM] gsmd[2215]: [ubus_call_hotplug:262] error: [MODEM_UBUS] Failed to invoke ubus hotplug.d gsm method for `1-1.4 [2c7c:0125]` modem!
[7/28/2023, 8:04:59 AM] gsmd[2215]: [ubus_call_hotplug:262] error: [MODEM_UBUS] Failed to invoke ubus hotplug.d gsm method for `1-1.4 [2c7c:0125]` modem!
[7/28/2023, 8:04:19 AM] hostapd: nl80211: nl80211_recv_beacons->nl_recvmsgs failed: -5
[7/28/2023, 8:04:19 AM] hostapd: nl80211: nl80211_recv_beacons->nl_recvmsgs failed: -5`Preformatted text`

what is causing this log to appear?

what openwrt device, what modem (Quectel EG25-GC ?), what openwrt version ?

1 Like

I use Teltonika RUT955 (Quectel EC25-EU), openwrt version:

DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='21.02.0'
DISTRIB_REVISION='r16279-5cc0535800'
DISTRIB_TARGET='ath79/generic'
DISTRIB_ARCH='mips_24kc'
DISTRIB_DESCRIPTION='OpenWrt 21.02.0 r16279-5cc0535800'
DISTRIB_TAINTS='no-all busybox'

I suggest upgrading to 22.03 first and checking the modem firmware version. Maybe upgrading both already fixes your issue?

okay thanks, i will try to upgrade firmware version

According to your logs, it looks like, you are running Teltonikas special adaption of openwrt. So you should better ask on their forum, in case the problem persists. Although we are glad to help them out :slight_smile:

1 Like

matches https://openwrt.org/releases/21.02/notes-21.02.0

7/28/2023, 8:04:59 AM] gsmd[2215]:
Which package of official openwrt matches this ?
This is part of Teltonikas modemmanagement.

are you referring to the daemon ?

Yes. Teltonikas stuff is based on openwrt, but with quite a few additions/mods. Which are not open-source.

I see, my bad then ...

In that case @izalul, install proper openwrt by reading https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=1f06144cdec1487122201faa9350825ed565d99c

or ...

It appears you are using firmware that is not from the official OpenWrt project.

When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.

You may find that the best options are:

  1. Install an official version of OpenWrt, if your device is supported (see https://firmware-selector.openwrt.org).
  2. Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
  3. Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).

If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.