Fipy LTE Won't Attach
-
Hey everyone!
I'm relatively new to Pycom and am currently developing some ADC -> I2C -> LTE-M devices on Fipy / Pybytes.
I'm using Telia in Norway and have ordered 50 LTE-M/NB-IoT sims that I'm having issues with.
Before ordering these SIMS I had been given a test LTE-M/NB-IoT sim that I'm having no issues with connecting using the https://docs.pycom.io/tutorials/networks/lte/ tutorial (works on Pybytes as well).
If I try any of the 50 Sims from Telia we received I can't attach at all to the network and am now stuck wondering if it's me or something with my sims specifically.
Any input how how to debug this further would be greatly appreciated!
Here's some logs from the sim that does connect:
>>> import sqnsupgrade >>> sqnsupgrade.info() <<< Welcome to the SQN3330 firmware updater [1.2.6] >>> >>> FiPy with firmware version 1.20.2.r1 Your modem is in application mode. Here is the current version: UE5.0.0.0d LR5.1.1.0-47510 Attaching... SYSTEM FSM ========== +--------------------------+--------------------+ | FSM | STATE | +--------------------------+--------------------+ | RRC TOP FSM |SYNCING | | RRC SEARCH FSM |WAIT_SYNC | | RRC ACTIVE FSM |NULL | | PMM PLMN FSM |NORM_CAMPED | | EMM MAIN FSM |REGISTERED | | EMM AUTH FSM |KASME_DEFINED | | EMM CONN FSM |EMM_IDLE | | EMM TAU FSM |NULL | | EMM TEST FSM |NULL | | ESM BEARER FSM |BEARER_ACTIVE | | SMS MT FSM |IDLE | | SMS MO FSM |IDLE | | HP MAIN FSM |IDLE | | HP USIM FSM |READY | | HP SMS MO FSM |IDLE | | HP SMS MT FSM |IDLE | | HP CAT FSM |IDLE | +--------------------------+--------------------+ OK DL SYNCHRO STATISTICS ===================== Synchro state : CELL_ACQUIRED PPU SIB1 ACQ watchdog : 0 Frequency Hypothesis RF (Hz) : 0 RSRP (dBm) : -85.71 RSRQ (dB) : -9.90 Channel estimation state (Cell-spec.) : LOW CINR Channel estimation state (UE-spec.) : LOW CINR Channel estimation state (MBSFN) : LOW CINR Channel estimation CINR : 5.05 Channel length : SHORT AGC AGC RX gain (dB) : 44.78 RX PSD BO (dBFs) : -20.81 RX PSD (dBm) : -86.98 Noise level RS (dBm) : -90.19 Digital gain (dB) : 5.61 CINR RS (dB) : 4.48 NARROWBANDS Last DL NB : Central Last UL NB : N/A AFC Frequency offset RF (Hz) : -187 Frequency offset BB (Hz) : 0 PBCH MIB received quantity : 56 MIB timeout quantity : 0 OK ----
And swapping the sims where it won't ever attach:
SYSTEM FSM ========== +--------------------------+--------------------+ | FSM | STATE | +--------------------------+--------------------+ | RRC TOP FSM |SCANNING | | RRC SEARCH FSM |WAIT_RSSI | | RRC ACTIVE FSM |NULL | | PMM PLMN FSM |NORM_WAITCELL | | EMM MAIN FSM |NULL | | EMM AUTH FSM |NULL | | EMM CONN FSM |NULL | | EMM TAU FSM |NULL | | EMM TEST FSM |NULL | | ESM BEARER FSM |BEARER_NULL | | SMS MT FSM |IDLE | | SMS MO FSM |IDLE | | HP MAIN FSM |IDLE | | HP USIM FSM |READY | | HP SMS MO FSM |IDLE | | HP SMS MT FSM |IDLE | | HP CAT FSM |IDLE | +--------------------------+--------------------+ OK DL SYNCHRO STATISTICS ===================== Synchro state : FAST SCAN PPU SIB1 ACQ watchdog : 0 Frequency Hypothesis RF (Hz) : 0 RSRP (dBm) : -21474836.00 RSRQ (dB) : -9.51 Channel estimation state (Cell-spec.) : LOW CINR Channel estimation state (UE-spec.) : LOW CINR Channel estimation state (MBSFN) : LOW CINR Channel estimation CINR : -7.55 Channel length : SHORT AGC AGC RX gain (dB) : 26.94 RX PSD BO (dBFs) : -23.91 RX PSD (dBm) : -97.12 Noise level RS (dBm) : -128.24 Digital gain (dB) : 3.06 CINR RS (dB) : 10.15 NARROWBANDS Last DL NB : Central Last UL NB : 7 AFC Frequency offset RF (Hz) : 0 Frequency offset BB (Hz) : 0 PBCH MIB received quantity : 815 MIB timeout quantity : 0 OK SYSTEM FSM ========== +--------------------------+--------------------+ | FSM | STATE | +--------------------------+--------------------+ | RRC TOP FSM |SCANNING | | RRC SEARCH FSM |WAIT_CELL_ID | | RRC ACTIVE FSM |NULL | | PMM PLMN FSM |NORM_WAITCELL | | EMM MAIN FSM |NULL | | EMM AUTH FSM |NULL | | EMM CONN FSM |NULL | | EMM TAU FSM |NULL | | EMM TEST FSM |NULL | | ESM BEARER FSM |BEARER_NULL | | SMS MT FSM |IDLE | | SMS MO FSM |IDLE | | HP MAIN FSM |IDLE | | HP USIM FSM |READY | | HP SMS MO FSM |IDLE | | HP SMS MT FSM |IDLE | | HP CAT FSM |IDLE | +--------------------------+--------------------+ OK DL SYNCHRO STATISTICS ===================== Synchro state : CELL_SEARCH PPU SIB1 ACQ watchdog : 0 Frequency Hypothesis RF (Hz) : -2000 RSRP (dBm) : -21474836.00 RSRQ (dB) : -9.51 Channel estimation state (Cell-spec.) : LOW CINR Channel estimation state (UE-spec.) : LOW CINR Channel estimation state (MBSFN) : LOW CINR Channel estimation CINR : -12.31 Channel length : SHORT AGC AGC RX gain (dB) : 26.92 RX PSD BO (dBFs) : -21.60 RX PSD (dBm) : -89.30 Noise level RS (dBm) : -119.30 Digital gain (dB) : 3.08 CINR RS (dB) : 10.15 NARROWBANDS Last DL NB : Central Last UL NB : 7 AFC Frequency offset RF (Hz) : 0 Frequency offset BB (Hz) : 0 PBCH MIB received quantity : 861 MIB timeout quantity : 0 OK . SYSTEM FSM ========== +--------------------------+--------------------+ | FSM | STATE | +--------------------------+--------------------+ | RRC TOP FSM |CAMPED | | RRC SEARCH FSM |CAMPED_ANY | | RRC ACTIVE FSM |IDLE | | PMM PLMN FSM |ANY_CAMPED | | EMM MAIN FSM |NULL | | EMM AUTH FSM |NULL | | EMM CONN FSM |NULL | | EMM TAU FSM |NULL | | EMM TEST FSM |NULL | | ESM BEARER FSM |BEARER_NULL | | SMS MT FSM |IDLE | | SMS MO FSM |IDLE | | HP MAIN FSM |IDLE | | HP USIM FSM |READY | | HP SMS MO FSM |IDLE | | HP SMS MT FSM |IDLE | | HP CAT FSM |IDLE | +--------------------------+--------------------+ OK DL SYNCHRO STATISTICS ===================== Synchro state : DRX_SLEEP PPU SIB1 ACQ watchdog : 0 Frequency Hypothesis RF (Hz) : 0 RSRP (dBm) : -79.21 RSRQ (dB) : -8.60 Channel estimation state (Cell-spec.) : HIGH CINR Channel estimation state (UE-spec.) : LOW CINR Channel estimation state (MBSFN) : LOW CINR Channel estimation CINR : 13.25 Channel length : SHORT AGC AGC RX gain (dB) : 44.82 RX PSD BO (dBFs) : -21.78 RX PSD (dBm) : -82.19 Noise level RS (dBm) : -89.33 Digital gain (dB) : 0.00 CINR RS (dB) : 10.12 NARROWBANDS Last DL NB : Central Last UL NB : 7 AFC Frequency offset RF (Hz) : -283 Frequency offset BB (Hz) : 0 PBCH MIB received quantity : 877 MIB timeout quantity : 0 OK . SYSTEM FSM ========== +--------------------------+--------------------+ | FSM | STATE | +--------------------------+--------------------+ | RRC TOP FSM |CAMPING | | RRC SEARCH FSM |WAIT_SIB1 | | RRC ACTIVE FSM |NULL | | PMM PLMN FSM |NORM_WAITCELL | | EMM MAIN FSM |NULL | | EMM AUTH FSM |NULL | | EMM CONN FSM |NULL | | EMM TAU FSM |NULL | | EMM TEST FSM |NULL | | ESM BEARER FSM |BEARER_NULL | | SMS MT FSM |IDLE | | SMS MO FSM |IDLE | | HP MAIN FSM |IDLE | | HP USIM FSM |READY | | HP SMS MO FSM |IDLE | | HP SMS MT FSM |IDLE | | HP CAT FSM |IDLE | +--------------------------+--------------------+ OK DL SYNCHRO STATISTICS ===================== Synchro state : SIB1_ACQ PPU SIB1 ACQ watchdog : 0 Frequency Hypothesis RF (Hz) : 0 RSRP (dBm) : -21474836.00 RSRQ (dB) : -10.11 Channel estimation state (Cell-spec.) : HIGH CINR Channel estimation state (UE-spec.) : LOW CINR Channel estimation state (MBSFN) : LOW CINR Channel estimation CINR : -11.16 Channel length : SHORT AGC AGC RX gain (dB) : 44.82 RX PSD BO (dBFs) : -21.12 RX PSD (dBm) : -85.40 Noise level RS (dBm) : -128.24 Digital gain (dB) : 3.99 CINR RS (dB) : 9.18 NARROWBANDS Last DL NB : Central Last UL NB : 7 AFC Frequency offset RF (Hz) : -249 Frequency offset BB (Hz) : 0 PBCH MIB received quantity : 928 MIB timeout quantity : 0 OK . SYSTEM FSM ========== +--------------------------+--------------------+ | FSM | STATE | +--------------------------+--------------------+ | RRC TOP FSM |SCANNING | | RRC SEARCH FSM |WAIT_CELL_ID | | RRC ACTIVE FSM |NULL | | PMM PLMN FSM |NORM_WAITCELL | | EMM MAIN FSM |NULL | | EMM AUTH FSM |NULL | | EMM CONN FSM |NULL | | EMM TAU FSM |NULL | | EMM TEST FSM |NULL | | ESM BEARER FSM |BEARER_NULL | | SMS MT FSM |IDLE | | SMS MO FSM |IDLE | | HP MAIN FSM |IDLE | | HP USIM FSM |READY | | HP SMS MO FSM |IDLE | | HP SMS MT FSM |IDLE | | HP CAT FSM |IDLE | +--------------------------+--------------------+ OK DL SYNCHRO STATISTICS ===================== Synchro state : CELL_SEARCH PPU SIB1 ACQ watchdog : 0 Frequency Hypothesis RF (Hz) : 0 RSRP (dBm) : -21474836.00 RSRQ (dB) : -10.11 Channel estimation state (Cell-spec.) : LOW CINR Channel estimation state (UE-spec.) : LOW CINR Channel estimation state (MBSFN) : LOW CINR Channel estimation CINR : -13.89 Channel length : SHORT AGC AGC RX gain (dB) : 26.89 RX PSD BO (dBFs) : -21.00 RX PSD (dBm) : -87.18 Noise level RS (dBm) : -117.18 Digital gain (dB) : 3.11 CINR RS (dB) : 9.18 NARROWBANDS Last DL NB : Central Last UL NB : 7 AFC Frequency offset RF (Hz) : -254 Frequency offset BB (Hz) : 0 PBCH MIB received quantity : 990 MIB timeout quantity : 0 OK
Appreciate any tips on where to look next!
Scott
-
Updates
I guess my sims aren't activated for LTE-M (they should be) but only NB-IoT. I upgraded my modem to NB1-41019 and it works now :)