Fresh installation on Bookworm fails to connect to cellular

Hello Sixfab-Team,

I am having issues with a fresh installation on a Raspberry Pi 4 with Bookworm installed. I have set up everything as I usually do, set up my code and everything and everything else works fine. But after installation of the hat using the installation code, the wwan0 interface fails to get a connection to cellular network.
I have already tried troubleshooting a bit myself but didnt find any issues.

Environment:

  • Raspberry Pi Model 4
  • OS: Raspbian 12 Bookworm
  • HAT: 3G/4G LTE Base Hat
  • Antenna: Default Antenna delivered from Sixfab
  • Mini PCIe Module: Telit LE910C4-EU
  • SIM: Sixfab SIM
  • Connection Type: Sixfab CORE

Service or Script Logs:
/home/sixfab/.core/logs/cm-log:

2024-11-24 19:07:55,464 --> default.py         INFO     Checking the network is ready...
2024-11-24 19:07:55,779 --> cm.py              ERROR    check_network() -> ('Network not registered: ', ('\n\n+CREG: 0,0\n\n\n\nOK\n\n\n', '', 0))
2024-11-24 19:08:00,879 --> default.py         INFO     Checking the network is ready...
2024-11-24 19:08:01,188 --> cm.py              ERROR    check_network() -> ('Network not registered: ', ('\n\n+CREG: 0,0\n\n\n\nOK\n\n\n', '', 0))
2024-11-24 19:08:06,289 --> default.py         INFO     Checking the network is ready...
2024-11-24 19:08:06,663 --> cm.py              ERROR    check_network() -> ('Network not registered: ', ('\n\n+CREG: 0,0\n\n\n\nOK\n\n\n', '', 0))
2024-11-24 19:08:11,763 --> default.py         INFO     Checking the network is ready...
2024-11-24 19:08:12,120 --> cm.py              ERROR    check_network() -> ('Network not registered: ', ('\n\n+CREG: 0,0\n\n\n\nOK\n\n\n', '', 0))
2024-11-24 19:08:17,221 --> default.py         INFO     Checking the network is ready...
2024-11-24 19:08:17,589 --> cm.py              ERROR    check_network() -> ('Network not registered: ', ('\n\n+CREG: 0,0\n\n\n\nOK\n\n\n', '', 0))
2024-11-24 19:08:22,689 --> default.py         INFO     Checking the network is ready...
2024-11-24 19:08:23,064 --> cm.py              ERROR    check_network() -> ('Network not registered: ', ('\n\n+CREG: 0,0\n\n\n\nOK\n\n\n', '', 0))
2024-11-24 19:08:28,165 --> default.py         INFO     Checking the network is ready...
2024-11-24 19:08:28,493 --> default.py         INFO     Network is registered
2024-11-24 19:08:34,288 --> monitor.py         INFO     Monitoring data updated with changes.
2024-11-24 19:08:34,290 --> default.py         INFO     Checking the ECM initialization...
2024-11-24 19:08:34,643 --> default.py         INFO     ECM Connection is initiating...
2024-11-24 19:08:37,774 --> default.py         INFO     ECM is initiated.
2024-11-24 19:08:47,981 --> cm.py              ERROR    check_internet() -> No internet!
2024-11-24 19:08:48,182 --> diagnostic.py      INFO     Diagnostic is working...
2024-11-24 19:08:49,477 --> default.py         INFO     Checking the network is ready...
2024-11-24 19:08:49,788 --> default.py         INFO     Network is registered
2024-11-24 19:08:50,735 --> diagnostic.py      INFO     Creating diagnostic report on --> /home/sixfab/.core/diagnostics/diagnostic.yaml
2024-11-24 19:08:50,936 --> default.py         INFO     Connection interface is reset...
2024-11-24 19:08:50,951 --> default.py         INFO     Interface wwan0 is down.
2024-11-24 19:08:55,969 --> default.py         INFO     Interface wwan0 is up.
2024-11-24 19:09:16,053 --> cm.py              ERROR    reset_connection_interface() -> Modem interface couln't be detected.
2024-11-24 19:09:18,177 --> default.py         INFO     Connection interface is reset...
2024-11-24 19:09:18,207 --> default.py         INFO     Interface wwan0 is down.
2024-11-24 19:09:23,228 --> default.py         INFO     Interface wwan0 is up.
2024-11-24 19:09:43,311 --> cm.py              ERROR    reset_connection_interface() -> Modem interface couln't be detected.
2024-11-24 19:09:45,349 --> default.py         INFO     Connection interface is reset...
2024-11-24 19:09:45,366 --> default.py         INFO     Interface wwan0 is down.
2024-11-24 19:09:50,397 --> default.py         INFO     Interface wwan0 is up.
2024-11-24 19:10:10,485 --> cm.py              ERROR    reset_connection_interface() -> Modem interface couln't be detected.
2024-11-24 19:10:11,616 --> default.py         INFO     USB interface is reset...
2024-11-24 19:10:12,976 --> cm.py              ERROR    check_internet() -> No internet!
2024-11-24 19:10:13,177 --> default.py         INFO     Modem is resetting softly...
2024-11-24 19:10:13,623 --> default.py         INFO     Modem is deregistered from network
2024-11-24 19:10:55,114 --> monitor.py         INFO     Monitoring data updated with changes.
2024-11-24 19:10:56,120 --> identify.py        INFO     Tyring to detect modem...
2024-11-24 19:10:58,239 --> identify.py        INFO     [?] System identifying...
2024-11-24 19:10:59,860 --> identify.py        WARNING  System setup has changed!
2024-11-24 19:11:03,861 --> default.py         INFO     Modem configuration started.
2024-11-24 19:11:04,180 --> default.py         INFO     Network auto-registering is enabling
2024-11-24 19:11:04,510 --> default.py         INFO     Modem network auto-registering is enabled
2024-11-24 19:11:24,836 --> default.py         INFO     APN is up-to-date.
2024-11-24 19:11:25,150 --> default.py         INFO     Modem mode for EPS is OK
2024-11-24 19:11:25,151 --> default.py         INFO     Checking the mode of modem...
2024-11-24 19:11:27,573 --> default.py         INFO     Checking the SIM is ready...

/home/sixfab/.core/agent-log:

2024-11-24 19:10:45,555 --> monitoring.py  DEBUG    [CONFIGURATOR] Configs folder not found, skip for now
2024-11-24 19:10:45,558 --> monitoring.py  DEBUG    Skipping data_monitoring, couldn't find any changes.
2024-11-24 19:10:45,562 --> monitoring.py  DEBUG    Skipping data_system, couldn't find any changes.
2024-11-24 19:10:45,564 --> monitoring.py  DEBUG    Skipping data_config, couldn't find any changes.
2024-11-24 19:10:45,565 --> monitoring.py  DEBUG    Skipping data_geolocation, couldn't find any changes.
2024-11-24 19:11:15,566 --> monitoring.py  DEBUG    [CONFIGURATOR] Configs folder not found, skip for now
2024-11-24 19:11:15,569 --> monitoring.py  DEBUG    Sending new data_monitoring : (0, 20), only_changed_values=True
2024-11-24 19:11:15,573 --> monitoring.py  DEBUG    Skipping data_system, couldn't find any changes.
2024-11-24 19:11:15,575 --> monitoring.py  DEBUG    Skipping data_config, couldn't find any changes.
2024-11-24 19:11:15,576 --> monitoring.py  DEBUG    Skipping data_geolocation, couldn't find any changes.
2024-11-24 19:11:15,706 --> monitoring.py  DEBUG    Updated last monitoring data
2024-11-24 19:11:45,577 --> monitoring.py  DEBUG    [CONFIGURATOR] Configs folder not found, skip for now
2024-11-24 19:11:45,580 --> monitoring.py  DEBUG    Skipping data_monitoring, couldn't find any changes.
2024-11-24 19:11:45,584 --> monitoring.py  DEBUG    Skipping data_system, couldn't find any changes.
2024-11-24 19:11:45,586 --> monitoring.py  DEBUG    Skipping data_config, couldn't find any changes.
2024-11-24 19:11:45,588 --> monitoring.py  DEBUG    Skipping data_geolocation, couldn't find any changes.
2024-11-24 19:12:15,588 --> monitoring.py  DEBUG    [CONFIGURATOR] Configs folder not found, skip for now
2024-11-24 19:12:15,591 --> monitoring.py  DEBUG    Skipping data_monitoring, couldn't find any changes.
2024-11-24 19:12:15,595 --> monitoring.py  DEBUG    Skipping data_system, couldn't find any changes.
2024-11-24 19:12:15,596 --> monitoring.py  DEBUG    Skipping data_config, couldn't find any changes.
2024-11-24 19:12:15,598 --> monitoring.py  DEBUG    Skipping data_geolocation, couldn't find any changes.

Output of commands:
cat /etc/os-release

PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
NAME="Raspbian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

uname -a:

Linux raspberrypi 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux

lsusb:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 008: ID 1bc7:1206 Telit Wireless Solutions LE910C4-EU
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb -t:

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 9, If 0, Class=Vendor Specific Class, Driver=option, 480M
        |__ Port 1: Dev 9, If 1, Class=Vendor Specific Class, Driver=, 480M
        |__ Port 1: Dev 9, If 2, Class=Communications, Driver=cdc_ether, 480M
        |__ Port 1: Dev 9, If 3, Class=CDC Data, Driver=cdc_ether, 480M
        |__ Port 1: Dev 9, If 4, Class=Vendor Specific Class, Driver=option, 480M
        |__ Port 1: Dev 9, If 5, Class=Vendor Specific Class, Driver=option, 480M
        |__ Port 1: Dev 9, If 6, Class=Vendor Specific Class, Driver=option, 480M
        |__ Port 1: Dev 9, If 7, Class=Vendor Specific Class, Driver=option, 480M

usb-devices:


T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=06.06
S:  Manufacturer=Linux 6.6.51+rpt-rpi-v8 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:01:00.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 4
D:  Ver= 2.10 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2109 ProdID=3431 Rev=04.21
S:  Product=USB2.0 Hub
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  9 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1bc7 ProdID=1206 Rev=03.18
S:  Manufacturer=Android
S:  Product=LE910C4-EU
S:  SerialNumber=0123456789ABCDEF
C:  #Ifs= 8 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:  If#= 2 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether
E:  Ad=84(I) Atr=03(Int.) MxPS=  16 Ivl=32ms
I:  If#= 3 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:  If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=86(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
I:  If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=88(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
I:  If#= 6 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=8a(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
I:  If#= 7 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=07(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=8b(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=8c(I) Atr=03(Int.) MxPS=  10 Ivl=32ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 4
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev=06.06
S:  Manufacturer=Linux 6.6.51+rpt-rpi-v8 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:01:00.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

dmesg | grep tty:

 1334.967160] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
[ 1334.972961] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
[ 1334.973329] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2
[ 1334.973703] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB3
[ 1334.974055] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB4
[ 1541.172187] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 1541.232780] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 1541.233101] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 1541.233361] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[ 1541.233654] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
[ 1541.426990] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
[ 1541.437996] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
[ 1541.440897] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2
[ 1541.442736] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB3
[ 1541.444295] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB4
[ 1551.369550] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 1551.394943] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 1551.395236] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 1551.395524] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[ 1551.395773] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
[ 1565.038774] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
[ 1565.045987] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
[ 1565.046714] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2
[ 1565.047504] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB3
[ 1565.048498] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB4

ls -l /sys/bus/usb-serial/devices:

lrwxrwxrwx 1 root root 0 Nov 24 19:16 ttyUSB0 -> ../../../devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/ttyUSB0
lrwxrwxrwx 1 root root 0 Nov 24 19:16 ttyUSB1 -> ../../../devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.4/ttyUSB1
lrwxrwxrwx 1 root root 0 Nov 24 19:16 ttyUSB2 -> ../../../devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.5/ttyUSB2
lrwxrwxrwx 1 root root 0 Nov 24 19:16 ttyUSB3 -> ../../../devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.6/ttyUSB3
lrwxrwxrwx 1 root root 0 Nov 24 19:16 ttyUSB4 -> ../../../devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.7/ttyUSB4

ls -l /dev/serial/by-id:

lrwxrwxrwx 1 root root 13 Nov 24 19:14 usb-Android_LE910C4-EU_0123456789ABCDEF-if00-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13 Nov 24 19:14 usb-Android_LE910C4-EU_0123456789ABCDEF-if04-port0 -> ../../ttyUSB1
lrwxrwxrwx 1 root root 13 Nov 24 19:14 usb-Android_LE910C4-EU_0123456789ABCDEF-if05-port0 -> ../../ttyUSB2
lrwxrwxrwx 1 root root 13 Nov 24 19:14 usb-Android_LE910C4-EU_0123456789ABCDEF-if06-port0 -> ../../ttyUSB3
lrwxrwxrwx 1 root root 13 Nov 24 19:14 usb-Android_LE910C4-EU_0123456789ABCDEF-if07-port0 -> ../../ttyUSB4

AT Commands:

(pitomat) root@raspberrypi:/home/pi# atcom AT
AT
OK

(pitomat) root@raspberrypi:/home/pi# atcom ATI

332

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT+CGMR

M0F.670010

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT+CGM

ERROR

(pitomat) root@raspberrypi:/home/pi# atcom AT+CPIN?

+CPIN: READY

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT+CPAS

+CPAS: 0

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT+CFUN?

+CFUN: 1

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT+COPS?

+COPS: 0

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT#USBCFG?

#USBCFG: 4

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT#BND?

#BND: 0,15,80800C5

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT+CREG?

+CREG: 0,0

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT+CGDCONT?

+CGDCONT: 1,"IPV4V6","super","",0,0,0,0
+CGDCONT: 2,"IPV4V6","ims","",0,0,0,0
+CGDCONT: 3,"IPV4V6","sos","",0,0,0,1

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT+CSQ

+CSQ: 99,99

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT+CGATT?

+CGATT: 0

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT+GMM

LE910C4-EU

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT#SWPKGV

25.21.670-P0F.671803
M0F.670010
P0F.671803
A0F.670010

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT#FWSWITCH?

ERROR

(pitomat) root@raspberrypi:/home/pi# atcom AT+CGREG?

+CGREG: 0,5

OK

(pitomat) root@raspberrypi:/home/pi# atcom AT#CGPADDR=

#CGPADDR: 1,"100.73.232.102"
#CGPADDR: 2,""
#CGPADDR: 3,""

OK

Thanks in advance for your support.

Hi,

Thank you for providing detailed logs and additional information.

It is strongly recommended to use this module with the 64-bit Raspberry Pi OS based on Debian Bookworm, version released on March 15, 2024.