linuxarchlinuxsim-card

Modem Fibocom L850-GL on ThinkPad X1 Carbon not detecting SIM on Arch Linux (ModemManager serial command timeout)


I have a Fibocom L850-GL LTE modem on my ThinkPad X1 Carbon 6th gen running Arch Linux. The modem is recognized, but the SIM is not detected. Here's what I've tried and the relevant information:

Hardware and context :

Actions have already been completed:

Points to clarify:


Summary

Relevant logs:

ModemManager[14586]: [modem0] processing user request to run AT command 'ATI3'... ModemManager[14586]: [wwan0at0/at] opening serial port... ModemManager[14586]: [wwan0at0/at] device open count is 1 (open) ModemManager[14586]: [wwan0at0/at] --> 'ATI3<CR><LF>' ModemManager[14586]: [modem0] failed running AT command 'ATI3': Serial command timed out ModemManager[14586]: [wwan0at0/at] device open count is 0 (close)

What could be causing this serial command timeout, and why is the SIM not being detected? Is there an issue with the iosm driver, or could it be a configuration problem with ModemManager or the serial interface?


Solution

  • The modem was stuck with repeated errors such as SIM not inserted and timeouts on serial ports with ModemManager.

    Solution:

    1. I used the script open_xdatachannel.py from the xmm7360-pci library to open the serial port that was blocked xmm7360-pci GitHub Repository once this script was executed, the serial port opened correctly.

    2. After that, I restarted ModemManager with the command :

      sudo systemctl restart ModemManager

    3. The modem then correctly detected the SIM card and connected to the network.

    Conclusion

    The problem was linked to the opening of the modem's serial port, which prevented ModemManager from operating correctly. Running this script solved the problem and established the connection.