Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

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

    Scheduled Pinned Locked Moved FiPy
    modemzerosissue
    7 Posts 3 Posters 682 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      Jordan Reyes
      last edited by

      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```
      X 1 Reply Last reply Reply Quote 2
      • X Offline
        Xykon administrators @Jordan Reyes
        last edited by

        @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?

        Christian Ehlers

        1 Reply Last reply Reply Quote 1
        • J Offline
          jason_gladen
          last edited by

          @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
          
          >>>
          
          
          X 1 Reply Last reply Reply Quote 1
          • X Offline
            Xykon administrators @jason_gladen
            last edited by

            @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.

            Christian Ehlers

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jason_gladen @Xykon
              last edited by

              @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?

              X 1 Reply Last reply Reply Quote 1
              • X Offline
                Xykon administrators @jason_gladen
                last edited by

                @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?'))

                Christian Ehlers

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  jason_gladen @Xykon
                  last edited by

                  @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

                  1 Reply Last reply Reply Quote 1

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 1 / 1
                  • First post
                    Last post

                  Pycom on Twitter

                  Pycom