Sixfab going up and down

Hello. I have asked about a similar issue previously but it continues to occur on new devices. The issue is with the sixfab not establishing a cellular connection and the cm-logs are shown below. This has happened to me in the past and I was told to use an older version of the OS. I have used multiple of these HATS and used new images of the Lite version recently (yesterday) and I was able to get the device working fine with cellular. I am setting up a new device with the same OS and clean image and this problem occurred again. This also happened last week but the day after I simply retried and it worked again. I would like to have a repeatable solution that ideally does not require I use an old image as it seems it’s possible to have it working with the newer OS. Let me know if you need more information. Thank you


2024-11-15 16:09:11,848 --> sbc_support.py     ERROR    gpio_init -->
Traceback (most recent call last):
  File "/opt/sixfab/core/manager/core_manager/helpers/sbc_support.py", line 34, in gpio_init
    check_output(comm, shell=True)
  File "/usr/lib/python3.11/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'echo out > /sys/class/gpio/gpio26/direction' returned non-zero exit status 2.
2024-11-15 16:09:11,962 --> sbc_support.py     ERROR    modem_power_disable -->
Traceback (most recent call last):
  File "/opt/sixfab/core/manager/core_manager/helpers/sbc_support.py", line 61, in modem_power_disable
    check_output(comm, shell=True)
  File "/usr/lib/python3.11/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'echo 1 > /sys/class/gpio/gpio26/value' returned non-zero exit status 2.
2024-11-15 16:09:13,968 --> sbc_support.py     WARNING  gpio_init --> export gpio
2024-11-15 16:09:14,170 --> sbc_support.py     ERROR    gpio_init -->
Traceback (most recent call last):
  File "/opt/sixfab/core/manager/core_manager/helpers/sbc_support.py", line 34, in gpio_init
    check_output(comm, shell=True)
  File "/usr/lib/python3.11/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'echo out > /sys/class/gpio/gpio26/direction' returned non-zero exit status 2.
2024-11-15 16:09:14,273 --> sbc_support.py     ERROR    modem_power_enable -->
Traceback (most recent call last):
  File "/opt/sixfab/core/manager/core_manager/helpers/sbc_support.py", line 52, in modem_power_enable
    check_output(comm, shell=True)
  File "/usr/lib/python3.11/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'echo 0 > /sys/class/gpio/gpio26/value' returned non-zero exit status 2.
2024-11-15 16:09:15,376 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:15,398 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:15,399 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:15,399 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:17,501 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:17,523 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:17,524 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:17,524 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:18,080 --> monitor.py         ERROR    monitor() @modem -> Error occured on --> get_signal_quality
2024-11-15 16:09:18,294 --> monitor.py         ERROR    monitor() @modem -> Error occured on --> get_roaming_operator
2024-11-15 16:09:18,510 --> monitor.py         ERROR    monitor() @modem -> Error occured on --> get_active_lte_tech
2024-11-15 16:09:18,520 --> monitor.py         INFO     Monitoring data updated with changes.
2024-11-15 16:09:19,625 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:19,634 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:19,634 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:19,634 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:21,735 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:21,744 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:21,744 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:21,745 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:23,847 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:23,869 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:23,869 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:23,869 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:25,972 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:25,994 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:25,994 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:25,994 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:28,097 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:28,118 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:28,119 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:28,119 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:30,223 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:30,245 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:30,245 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:30,245 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:32,349 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:32,371 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:32,371 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:32,372 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:34,475 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:34,497 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:34,498 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:34,498 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:36,601 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:36,623 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:36,624 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:36,624 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:38,727 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:38,750 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:38,750 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:38,750 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:40,853 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:40,876 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:40,876 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:40,876 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:42,979 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:43,002 --> identify.py        WARNING  Modem don't exist in list of supported modems!
2024-11-15 16:09:43,002 --> identify.py        WARNING  Modem vendor couldn't be found!
2024-11-15 16:09:43,002 --> cm.py              ERROR    identify_modem -> Modem vendor couldn't be found!
2024-11-15 16:09:43,848 --> monitor.py         ERROR    monitor() @modem -> Error occured on --> get_signal_quality
2024-11-15 16:09:44,062 --> monitor.py         ERROR    monitor() @modem -> Error occured on --> get_roaming_operator
2024-11-15 16:09:44,275 --> monitor.py         ERROR    monitor() @modem -> Error occured on --> get_active_lte_tech
2024-11-15 16:09:45,104 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:09:47,218 --> identify.py        INFO     [?] System identifying...
2024-11-15 16:09:58,898 --> cm.py              ERROR    identify_setup -> Error occured turning of AT echo : send_at_com -> ATE0
2024-11-15 16:10:02,900 --> identify.py        INFO     [?] System identifying...
2024-11-15 16:10:04,626 --> identify.py        WARNING  System setup has changed!
2024-11-15 16:10:08,627 --> default.py         INFO     Modem configuration started.
2024-11-15 16:10:08,945 --> default.py         INFO     Network auto-registering is already enabled
2024-11-15 16:10:09,324 --> default.py         INFO     APN is up-to-date.
2024-11-15 16:10:09,642 --> default.py         INFO     Modem mode for EPS is OK
2024-11-15 16:10:09,642 --> default.py         INFO     Checking the mode of modem...
2024-11-15 16:10:11,004 --> monitor.py         INFO     Monitoring data updated with changes.
2024-11-15 16:10:12,006 --> default.py         INFO     Checking the SIM is ready...
2024-11-15 16:10:12,324 --> default.py         INFO     SIM is ready.
2024-11-15 16:10:13,424 --> default.py         INFO     Checking the network is ready...
2024-11-15 16:10:13,739 --> default.py         INFO     Network is registered
2024-11-15 16:10:18,840 --> default.py         INFO     Checking the ECM initialization...
2024-11-15 16:10:19,239 --> default.py         INFO     ECM Connection is initiating...
2024-11-15 16:10:21,339 --> default.py         INFO     ECM is initiated.
2024-11-15 16:10:31,548 --> cm.py              ERROR    check_internet() -> No internet!
2024-11-15 16:10:31,749 --> diagnostic.py      INFO     Diagnostic is working...
2024-11-15 16:10:33,095 --> default.py         INFO     Checking the network is ready...
2024-11-15 16:10:33,408 --> default.py         INFO     Network is registered
2024-11-15 16:10:34,269 --> diagnostic.py      INFO     Creating diagnostic report on --> /home/sixfab/.core/diagnostics/diagnostic.yaml
2024-11-15 16:10:34,471 --> default.py         INFO     Connection interface is reset...
2024-11-15 16:10:34,489 --> default.py         INFO     Interface wwan0 is down.
2024-11-15 16:10:39,523 --> default.py         INFO     Interface wwan0 is up.
2024-11-15 16:10:59,665 --> cm.py              ERROR    reset_connection_interface() -> Modem interface couln't be detected.
2024-11-15 16:11:01,748 --> default.py         INFO     Connection interface is reset...
2024-11-15 16:11:01,764 --> default.py         INFO     Interface wwan0 is down.
2024-11-15 16:11:06,798 --> default.py         INFO     Interface wwan0 is up.
2024-11-15 16:11:26,941 --> cm.py              ERROR    reset_connection_interface() -> Modem interface couln't be detected.
2024-11-15 16:11:29,002 --> default.py         INFO     Connection interface is reset...
2024-11-15 16:11:29,018 --> default.py         INFO     Interface wwan0 is down.
2024-11-15 16:11:34,052 --> default.py         INFO     Interface wwan0 is up.
2024-11-15 16:11:54,180 --> cm.py              ERROR    reset_connection_interface() -> Modem interface couln't be detected.
2024-11-15 16:11:55,376 --> default.py         INFO     USB interface is reset...
2024-11-15 16:11:56,787 --> cm.py              ERROR    check_internet() -> No internet!
2024-11-15 16:11:56,988 --> default.py         INFO     Modem is resetting softly...
2024-11-15 16:11:57,332 --> default.py         INFO     Modem is deregistered from network
2024-11-15 16:12:33,184 --> monitor.py         INFO     Monitoring data updated with changes.
2024-11-15 16:12:34,190 --> identify.py        INFO     Tyring to detect modem...
2024-11-15 16:12:36,312 --> identify.py        INFO     [?] System identifying...
2024-11-15 16:12:37,970 --> identify.py        WARNING  System setup has changed!
2024-11-15 16:12:41,971 --> default.py         INFO     Modem configuration started.
2024-11-15 16:12:42,349 --> default.py         INFO     Network auto-registering is enabling
2024-11-15 16:12:42,681 --> default.py         INFO     Modem network auto-registering is enabled
2024-11-15 16:13:03,068 --> default.py         INFO     APN is up-to-date.
2024-11-15 16:13:03,386 --> default.py         INFO     Modem mode for EPS is OK
2024-11-15 16:13:03,386 --> default.py         INFO     Checking the mode of modem...
2024-11-15 16:13:05,751 --> default.py         INFO     Checking the SIM is ready...
2024-11-15 16:13:06,071 --> default.py         INFO     SIM is ready.
2024-11-15 16:13:07,171 --> default.py         INFO     Checking the network is ready...
2024-11-15 16:13:07,490 --> cm.py              ERROR    check_network() -> ('Network not registered: ', ('\n\n+CREG: 0,0\n\n\n\nOK\n\n\n', '', 0))
2024-11-15 16:13:12,591 --> default.py         INFO     Checking the network is ready...
2024-11-15 16:13:12,971 --> cm.py              ERROR    check_network() -> ('Network not registered: ', ('\n\n+CREG: 0,0\n\n\n\nOK\n\n\n', '', 0))
2024-11-15 16:13:18,072 --> default.py         INFO     Checking the network is ready...
2024-11-15 16:13:18,446 --> cm.py              ERROR    check_network() -> ('Network not registered: ', ('\n\n+CREG: 0,0\n\n\n\nOK\n\n\n', '', 0))
2024-11-15 16:13:23,547 --> default.py         INFO     Checking the network is ready...
2024-11-15 16:13:23,932 --> default.py         INFO     Network is registered
2024-11-15 16:13:29,032 --> default.py         INFO     Checking the ECM initialization...
2024-11-15 16:13:29,436 --> default.py         INFO     ECM Connection is initiating...
2024-11-15 16:13:31,516 --> default.py         INFO     ECM is initiated.
2024-11-15 16:13:42,584 --> monitor.py         INFO     Monitoring data updated with changes.
2024-11-15 16:13:42,690 --> cm.py              ERROR    check_internet() -> No internet!
2024-11-15 16:13:42,891 --> diagnostic.py      INFO     Diagnostic is working...
2024-11-15 16:13:44,176 --> default.py         INFO     Checking the network is ready...
2024-11-15 16:13:44,497 --> default.py         INFO     Network is registered
2024-11-15 16:13:45,360 --> diagnostic.py      INFO     Creating diagnostic report on --> /home/sixfab/.core/diagnostics/diagnostic.yaml
2024-11-15 16:13:45,561 --> default.py         INFO     Connection interface is reset...
2024-11-15 16:13:45,575 --> default.py         INFO     Interface wwan0 is down.
2024-11-15 16:13:50,604 --> default.py         INFO     Interface wwan0 is up.
2024-11-15 16:14:10,748 --> cm.py              ERROR    reset_connection_interface() -> Modem interface couln't be detected.
2024-11-15 16:14:12,812 --> default.py         INFO     Connection interface is reset...
2024-11-15 16:14:12,830 --> default.py         INFO     Interface wwan0 is down.
2024-11-15 16:14:17,865 --> default.py         INFO     Interface wwan0 is up.
2024-11-15 16:14:38,008 --> cm.py              ERROR    reset_connection_interface() -> Modem interface couln't be detected.
2024-11-15 16:14:40,089 --> default.py         INFO     Connection interface is reset...
2024-11-15 16:14:40,105 --> default.py         INFO     Interface wwan0 is down.
2024-11-15 16:14:45,139 --> default.py         INFO     Interface wwan0 is up.

I am not exactly sure how this issue was fixed but following this (Getting Started with ECM Mode) I was eventually able to get it working. I will be trying to replicate the problem and solution for a better understanding.