Hi misc, I'm encountering an issue with a Quectel EM120R-GL LTE module with dual SIM slots on OpenBSD. The system (ifconfig umb0) consistently displays the error "SIM not inserted, PIN required," despite attempts to set the APN, reboot, and bring the interface up. I’m 100% certain that the PIN is disabled.
Here are some key command outputs and troubleshooting steps: (// are my comments) - AT+QSIMSTAT? → +QSIMSTAT: 0,0 // (SIM not detected) - AT+CPIN? → +CME ERROR: 10 // (SIM not ready) - AT+CIMI → +CME ERROR: // 3 (operation not allowed) - AT+QSIMDET=1,1 → OK // (SIM detection enabled) - AT+QSIMSEL=1 or AT+QSIMSEL=2 → ERROR // (cannot switch SIM slot) I also tried the following configurations with reboots after each change, but neither resolved the issue: - AT+QSIMDET=0,0 followed by reboot - AT+QSIMDET=1,0 followed by reboot - The AT+QSIMDET=0,0 command disables SIM detection for both slots, meaning the module will not check for the presence of a SIM card in either slot. Conversely, the AT+QSIMDET=1,0 command enables detection for the first SIM slot while disabling it for the second, allowing the module to check only the first slot for a SIM card. Neither configuration, however, successfully resolves the issue. In each case, AT+QSIMSTAT? consistently returns +QSIMSTAT: 0,0; showing that the SIM is not detected. It appears that OpenBSD cannot detect or manage SIM slots in this MBIM mode, and the umb driver might not fully support dual-SIM functionality in this context. Has anyone else encountered a similar issue or found a workaround for managing dual-SIM LTE modules on OpenBSD? Thanks in advance for any insights! P.S. Some useful command outputs: openbsd76# usbdevs -a 3 -vv addr 03: 2c7c:0620 Quectel, EM120R-GL super speed, power 224 mA, config 1, rev 4.09, iSerial e40fc2ef driver: umsm0 driver: umsm1 driver: umsm2 driver: umsm3 It would be beneficial to add the Quectel EM120R-GL to the man umb(4) page. Especially if we can resolve this dual SIM issue. I’m also prepared to provide any additional outputs you need and to perform further actions as required. Also dmesg is attached via this email. Thanks in advance. -- Barbaros
OpenBSD 7.6 (GENERIC.MP) #338: Mon Sep 30 08:55:35 MDT 2024 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8492650496 (8099MB) avail mem = 8212013056 (7831MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x7c51c000 (35 entries) bios0: vendor INSYDE Corp. version "CORDOBA-03.00.00.03-SLt" date 2023-05-16 bios0: Silicom 80500-0214-G03-VS00A efi0 at bios0: UEFI 2.5 efi0: Insyde May 3 2022 11:32:00 rev 0x0 acpi0 at bios0: ACPI 5.0 acpi0: sleep states S0 S4 S5 acpi0: tables DSDT FACP UEFI UEFI BDAT BOOT HPET APIC MCFG SSDT DMAR DBG2 acpi0: wakeup devices VRP2(S4) PXSX(S4) PEX0(S4) PXSX(S4) PEX1(S4) PXSX(S4) PEX2(S4) PXSX(S4) PEX3(S4) PXSX(S4) PEX4(S4) PXSX(S4) PEX5(S4) PXSX(S4) PEX6(S4) PXSX(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 23999999 Hz acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 4 (boot processor) cpu0: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz, 2200.01 MHz, 06-5f-01, patch 0000003e cpu0: cpuid 1 edx=bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> ecx=47f8ebbf<SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND> cpu0: cpuid 6 eax=55<SENSOR,ARAT> ecx=9<EFFFREQ> cpu0: cpuid 7.0 ebx=2294e283<FSGSBASE,TSC_ADJUST,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA> edx=ac000400<MD_CLEAR,IBRS,IBPB,STIBP,SSBD> cpu0: cpuid a vers=4, gp=4, gpwidth=48, ff=3, ffwidth=48 cpu0: cpuid d.1 eax=f<XSAVEOPT,XSAVEC,XGETBV1,XSAVES> cpu0: cpuid 80000001 edx=2c100800<NXE,PAGE1GB,RDTSCP,LONG> ecx=101<LAHF,3DNOWP> cpu0: cpuid 80000007 edx=100<ITSC> cpu0: msr 10a=14000c69<SKIP_L1DFL,MDS_NO,IF_PSCHANGE,MISC_PKG_CT,ENERGY_FILT,GDS_NO,RFDS_CLEAR> cpu0: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 2MB 64b/line 16-way L2 cache cpu0: smt 0, core 2, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 25MHz cpu0: mwait min=64, max=64, C-substates=0.2.0.2, IBE cpu1 at mainbus0: apid 12 (application processor) cpu1: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz, 2200.02 MHz, 06-5f-01, patch 0000003e cpu1: smt 0, core 6, package 0 cpu2 at mainbus0: apid 16 (application processor) cpu2: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz, 2200.02 MHz, 06-5f-01, patch 0000003e cpu2: smt 0, core 8, package 0 cpu3 at mainbus0: apid 24 (application processor) cpu3: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz, 2200.02 MHz, 06-5f-01, patch 0000003e cpu3: smt 0, core 12, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xe0000000, bus 0-255 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (VRP2) acpiprt2 at acpi0: bus -1 (PEX0) acpiprt3 at acpi0: bus 17 (PEX1) acpiprt4 at acpi0: bus 8 (PEX2) acpiprt5 at acpi0: bus 4 (PEX3) acpiprt6 at acpi0: bus 5 (PEX4) acpiprt7 at acpi0: bus 6 (PEX5) acpiprt8 at acpi0: bus 7 (PEX6) acpiprt9 at acpi0: bus 9 (PEX7) acpiprt10 at acpi0: bus 3 (VRP0) acpiprt11 at acpi0: bus 2 (VRP1) acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000 "PNP0003" at acpi0 not configured acpicmos0 at acpi0 com0 at acpi0 IUR3 addr 0x3f8/0x8 irq 16: ns16550a, 16 byte fifo com0: console com1 at acpi0 IUR4 addr 0x2f8/0x8 irq 17: ns16550a, 16 byte fifo "PNP0C33" at acpi0 not configured acpibtn0 at acpi0: PWRB "PNP0C0B" at acpi0 not configured tpm0 at acpi0 TPM_ 1.2 (TIS) addr 0xfed40000/0x5000, device 0x001d15d1 rev 0x36 "INTC3000" at acpi0 not configured acpicpu0 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpicpu1 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpicpu2 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpicpu3 at acpi0: C2(10@50 mwait.1@0x21), C1(1000@1 mwait.1@0x1), PSS acpipwrres0 at acpi0: FN00, resource for FAN0 acpitz0 at acpi0: critical temperature is 100 degC cpu0: using VERW MDS workaround cpu0: Enhanced SpeedStep 2200 MHz: speeds: 2200, 2100, 2000, 1900, 1800, 1700, 1600, 1500, 1400, 1300, 1200, 1100, 1000, 900, 800 MHz pci0 at mainbus0 bus 0 0:31:5: mem address conflict 0xfe010000/0x1000 pchb0 at pci0 dev 0 function 0 "Intel C3000 Host" rev 0x11 pchb1 at pci0 dev 4 function 0 "Intel C3000 GLREG" rev 0x11 "Intel C3000 RCEC" rev 0x11 at pci0 dev 5 function 0 not configured ppb0 at pci0 dev 6 function 0 "Intel C3000 PCIE" rev 0x11 pci1 at ppb0 bus 1 "Intel C3000 QAT" rev 0x11 at pci1 dev 0 function 0 not configured ppb1 at pci0 dev 10 function 0 "Intel C3000 PCIE" rev 0x11 pci2 at ppb1 bus 17 ppb2 at pci0 dev 11 function 0 "Intel C3000 PCIE" rev 0x11 pci3 at ppb2 bus 8 nvme0 at pci3 dev 0 function 0 unknown vendor 0x1bc0 product 0x1002 rev 0x01: msix, NVMe 1.3 nvme0: M.2 (P80) 3TE6, firmware V21118, serial YCA12301160241178 scsibus1 at nvme0: 2 targets, initiator 0 sd0 at scsibus1 targ 1 lun 0: <NVMe, M.2 (P80) 3TE6, V211> sd0: 114473MB, 512 bytes/sector, 234441648 sectors ppb3 at pci0 dev 12 function 0 "Intel C3000 PCIE" rev 0x11 pci4 at ppb3 bus 4 igc0 at pci4 dev 0 function 0 "Intel I225-V" rev 0x03, msix, 4 queues, address 90:ec:77:87:5b:53 ppb4 at pci0 dev 14 function 0 "Intel C3000 PCIE" rev 0x11 pci5 at ppb4 bus 5 igc1 at pci5 dev 0 function 0 "Intel I225-V" rev 0x03, msix, 4 queues, address 90:ec:77:87:5b:54 ppb5 at pci0 dev 15 function 0 "Intel C3000 PCIE" rev 0x11 pci6 at ppb5 bus 6 igc2 at pci6 dev 0 function 0 "Intel I225-V" rev 0x03, msix, 4 queues, address 90:ec:77:87:5b:55 ppb6 at pci0 dev 16 function 0 "Intel C3000 PCIE" rev 0x11 pci7 at ppb6 bus 7 igc3 at pci7 dev 0 function 0 "Intel I225-V" rev 0x03, msix, 4 queues, address 90:ec:77:87:5b:56 ppb7 at pci0 dev 17 function 0 "Intel C3000 PCIE" rev 0x11 pci8 at ppb7 bus 9 "Intel C3000 SMBus" rev 0x11 at pci0 dev 18 function 0 not configured xhci0 at pci0 dev 21 function 0 "Intel C3000 xHCI" rev 0x11: msi, xHCI 1.0 usb0 at xhci0: USB revision 3.0 uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1 ppb8 at pci0 dev 22 function 0 "Intel C3000 PCIE" rev 0x11 pci9 at ppb8 bus 3 ix0 at pci9 dev 0 function 0 "Intel X553 SFP+" rev 0x11, msix, 4 queues, address 90:ec:77:87:5b:51 ix1 at pci9 dev 0 function 1 "Intel X553 SFP+" rev 0x11, msix, 4 queues, address 90:ec:77:87:5b:52 ppb9 at pci0 dev 23 function 0 "Intel C3000 PCIE" rev 0x11 pci10 at ppb9 bus 2 ix2 at pci10 dev 0 function 0 "Intel X553 SGMII" rev 0x11, msix, 4 queues, address 90:ec:77:87:5b:50 ix3 at pci10 dev 0 function 1 "Intel X553 SGMII" rev 0x11, msix, 4 queues, address 90:ec:77:87:5b:4f "Intel C3000 ME HECI" rev 0x11 at pci0 dev 24 function 0 not configured sdhc0 at pci0 dev 28 function 0 "Intel C3000 eMMC" rev 0x11: apic 2 int 16 sdhc0: SDHC 3.00, 200 MHz base clock sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, ddr52, dma pcib0 at pci0 dev 31 function 0 "Intel C3000 LPC" rev 0x11 "Intel C3000 PMC" rev 0x11 at pci0 dev 31 function 2 not configured ichiic0 at pci0 dev 31 function 4 "Intel C3000 SMBus" rev 0x11: apic 2 int 23 iic0 at ichiic0 "eeprom" at iic0 addr 0x50 not configured "Intel C3000 SPI" rev 0x11 at pci0 dev 31 function 5 not configured vendor "Intel", unknown product 0x19e1 (class instrumentation unknown subclass 0x00, rev 0x11) at pci0 dev 31 function 7 not configured isa0 at pcib0 isadma0 at isa0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 vmm0 at mainbus0: VMX/EPT efifb at mainbus0 not configured umass0 at uhub0 port 6 configuration 1 interface 0 "Samsung Flash Drive" rev 3.10/11.00 addr 2 umass0: using SCSI over Bulk-Only scsibus2 at umass0: 2 targets, initiator 0 sd1 at scsibus2 targ 1 lun 0: <Samsung, Flash Drive, 1100> removable serial.090c1000923100005320 sd1: 61188MB, 512 bytes/sector, 125313283 sectors umsm0 at uhub0 port 8 configuration 1 interface 0 "Quectel EM120R-GL" rev 3.20/4.09 addr 3 ucom0 at umsm0: usb0.0.00008.0 umsm1 at uhub0 port 8 configuration 1 interface 1 "Quectel EM120R-GL" rev 3.20/4.09 addr 3 ucom1 at umsm1: usb0.0.00008.1 umsm2 at uhub0 port 8 configuration 1 interface 2 "Quectel EM120R-GL" rev 3.20/4.09 addr 3 ucom2 at umsm2: usb0.0.00008.2 umsm3 at uhub0 port 8 configuration 1 interface 3 "Quectel EM120R-GL" rev 3.20/4.09 addr 3 ucom3 at umsm3: usb0.0.00008.3 umb0 at uhub0 port 8 configuration 1 interface 4 "Quectel EM120R-GL" rev 3.20/4.09 addr 3 sdmmc0: can't enable card vscsi0 at root scsibus3 at vscsi0: 256 targets softraid0 at root scsibus4 at softraid0: 256 targets root on sd0a (c70e3ab57698974c.a) swap on sd0b dump on sd0b