Modem's radio showphy, all zeros, is bad?



  • One of my pycom units stopped attaching.
    It seems like the modem module is responsive but maybe radio is dead, or stuck.

    I would not expect all zeros

    My question is it stuck or fried?

    Ran this:

    def send_at_cmd_pretty(cmd):
      needResume = False
      if lte.isconnected():
        lte.pppsuspend()
        needResume = True
    
      response = lte.send_at_cmd(cmd).split('\r\n')
    
      if needResume:
        lte.pppresume()
    
    
      for line in response:
        print(line)
    
    lte = LTE()
    lte.init()
    send_at_cmd_pretty('AT!="showphy"')
    

    Got This:

    DL SYNCHRO STATISTICS
    =====================
        Synchro state                         : IDLE
        PPU SIB1 ACQ watchdog                 : 0
        Frequency Hypothesis RF  (Hz)         : 0
        RSRP (dBm)                            : 0.00
        RSRQ  (dB)                            : 0.00
        Channel estimation state (Cell-spec.) : LOW CINR
        Channel estimation state (UE-spec.)   : LOW CINR
        Channel estimation state (MBSFN)      : LOW CINR
        Channel estimation CINR               : 0.00
        Channel length                        : SHORT
      AGC
        AGC RX gain (dB)                      : 0.00
        RX PSD BO (dBFs)                      : 0.00
        RX PSD (dBm)                          : 0.00
        Noise level RS (dBm)                  : 0.00
        Digital gain (dB)                     : 0.00
        CINR RS (dB)                          : 0.00
      NARROWBANDS
        Last DL NB                            : 0
        Last UL NB                            : 0
      AFC
        Frequency offset RF  (Hz)             : 0
        Frequency offset BB  (Hz)             : 0
      PBCH
        MIB received quantity                 : 0
        MIB timeout quantity                  : 0```


  • @xykon said in Modem's radio showphy, all zeros, is bad?:

    print(lte.send_at_cmd('AT+CFUN?'))

    the print(lte.send_at_cmd('AT+CFUN?')) reported 4 before the attach and 1 after

    lte.iccid() reports:

    8944501810180163302"
    

    i noticed a funny double-quote at the end but it did that before the modem firmware update and worked fine


  • administrators

    @jason_gladen Is the SIM card inserted the correct way? https://docs.pycom.io/gettingstarted/connection/fipy.html#sim-card-

    To check if the radio is enabled please run print(lte.send_at_cmd('AT+CFUN?'))



  • @xykon

    I had tried it with and without an attach after a 10 second power off/on.

    That run did include an lte.attach() just prior. I thought I pasted it.. I tried it again just to be sure.

    If the radio is not enabled. What could cause that?

    Is there anything else I should try?


  • administrators

    @jason_gladen You need to run lte.attach() first to enable the radio. The modem might restart when using this command so it's necessary to check with lte.isattached() if the radio needs to be re-enabled after the reset.



  • @jordan-reyes said in Modem's radio showphy, all zeros, is bad?:

    AT!="showphy"

    >> print(lte.send_at_cmd('AT+SQNMONI=9'))
    
    ERROR
    
    >>> lte.isattached()
    False
    >>> lte.isattached()
    False
    >>> lte.isattached()
    False
    >>> lte.isattached()
    False
    >>> lte.isattached()
    False
    >>> print(lte.send_at_cmd('AT!="showphy"'))
    
    DL SYNCHRO STATISTICS
    =====================
        Synchro state                         : OFF
        PPU SIB1 ACQ watchdog                 : 0
        Frequency Hypothesis RF  (Hz)         : 0
        RSRP (dBm)                            : 0.00
        RSRQ  (dB)                            : 0.00
        Channel estimation state (Cell-spec.) : LOW CINR
        Channel estimation state (UE-spec.)   : LOW CINR
        Channel estimation state (MBSFN)      : LOW CINR
        Channel estimation CINR               : 0.00
        Channel length                        : SHORT
      AGC
        AGC RX gain (dB)                      : 0.00
        RX PSD BO (dBFs)                      : 0.00
        RX PSD (dBm)                          : 0.00
        Noise level RS (dBm)                  : 0.00
        Digital gain (dB)                     : 0.00
        CINR RS (dB)                          : 0.00
      NARROWBANDS
        Last DL NB                            : 0
        Last UL NB                            : 0
      AFC
        Frequency offset RF  (Hz)             : 0
        Frequency offset BB  (Hz)             : 0
      PBCH
        MIB received quantity                 : 0
        MIB timeout quantity                  : 0
    
    OK
    
    >>> lte.init();
    >>> lte.init()
    >>> lte.isattached()
    False
    >>> lte.isattached()
    False
    >>> lte.isattached()
    False
    >>> lte.isattached()
    False
    >>> print(lte.send_at_cmd('AT!="showphy"'))
    
    DL SYNCHRO STATISTICS
    =====================
        Synchro state                         : OFF
        PPU SIB1 ACQ watchdog                 : 0
        Frequency Hypothesis RF  (Hz)         : 0
        RSRP (dBm)                            : 0.00
        RSRQ  (dB)                            : 0.00
        Channel estimation state (Cell-spec.) : LOW CINR
        Channel estimation state (UE-spec.)   : LOW CINR
        Channel estimation state (MBSFN)      : LOW CINR
        Channel estimation CINR               : 0.00
        Channel length                        : SHORT
      AGC
        AGC RX gain (dB)                      : 0.00
        RX PSD BO (dBFs)                      : 0.00
        RX PSD (dBm)                          : 0.00
        Noise level RS (dBm)                  : 0.00
        Digital gain (dB)                     : 0.00
        CINR RS (dB)                          : 0.00
      NARROWBANDS
        Last DL NB                            : 0
        Last UL NB                            : 0
      AFC
        Frequency offset RF  (Hz)             : 0
        Frequency offset BB  (Hz)             : 0
      PBCH
        MIB received quantity                 : 0
        MIB timeout quantity                  : 0
    
    OK
    
    >>>
    >>> print(lte.send_at_cmd('AT+SQNMONI=9'))
    
    ERROR
    
    >>> print(lte.send_at_cmd('AT+SQNMONI=9'))
    
    ERROR
    
    >>>
    
    

  • administrators

    @jordan-reyes That output is normal when the radio is disabled (it's not enabled automatically during init. Also lte.init() is run when you instantiate the LTE class (lte = LTE()) so running it again has no effect.

    You first need to run lte.attach() in order to activate the radio. Then please run lte.isattached() several times before trying the showphy command again.

    Can you please also run send_at_cmd_pretty('AT+SQNMONI=9') after trying to attach?


Log in to reply
 

Pycom on Twitter