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

    GPy LTE Modem does not respond

    Scheduled Pinned Locked Moved GPy
    14 Posts 3 Posters 807 Views 3 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.
    • K Offline
      kjm @nakovi
      last edited by

      @nakovi Does your modem respond to

      import sqnsupgrade; sqnsupgrade.info()
      
      N 1 Reply Last reply Reply Quote 0
      • N Offline
        nakovi @kjm
        last edited by nakovi

        @kjm

        Copying the response to that command below:

        Welcome to the SQN3330 firmware updater [1.2.6]
        GPy with firmware version 1.20.1.r2
        Your modem is in application mode. Here is the current version:
        UE5.0.0.0d
        LR5.1.1.0-43818

        IMEI: 354347099617737

        1 Reply Last reply Reply Quote 0
        • N Offline
          nakovi @securigy
          last edited by

          @securigy

          If I run this, I get the same issue:

          Attaching to LTE network Traceback (most recent call last):
          File "<stdin>", line 7, in <module>
          File "<stdin>", line 44, in getLTE
          ValueError: Modem did not respond!

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            kjm @nakovi
            last edited by kjm

            @nakovi So line 43 or 44 is lte.attach() ? What happens if you insert these 2 lines before it?

            simreg=lte.send_at_cmd('at+creg?').split(',')[1][:1]; print('sim reg =', simreg, end=' ')          
            service=lte.send_at_cmd('AT+cind?').split(': ')[1][2]; print('service =', service)
            

            Have you ever had an attachment? If no, do you have a first time setup line somewhere in your code? Something like

            lte.send_at_cmd('at+cgdcont=1, "IP", "your sim supplier"')
            
            N 2 Replies Last reply Reply Quote 0
            • N Offline
              nakovi @kjm
              last edited by

              @kjm

              It's definitely the attach line, and no I've not successfully attached yet. My SIM provider is hologram. I just saw another post recommending your line, I'll stick that ahead of lte.attach and see what happens.

              1 Reply Last reply Reply Quote 0
              • N Offline
                nakovi @kjm
                last edited by

                @kjm

                Well I've graduated from the modem not responding to the modem not attaching. Progress?

                I've tried to follow some of what I found in: https://forum.pycom.io/topic/3021/gpy-with-hologram-io-sim but the thread kind of died without any resolution.

                AT+CEREG? and AT+CSQ commands in my not attached loop give me +CSQ: 26,99 and +CEREG 2,0 (not that I fully understand what those mean)

                Doesn't seem to make any difference if I let it run for 10 minutes as I've seen suggested. Just can't get it to attach. Hologram dashboard shows the SIM card as activated.

                Really wish there was some better documentation for this.

                K 1 Reply Last reply Reply Quote 0
                • K Offline
                  kjm @nakovi
                  last edited by kjm

                  @nakovi cereg=2 means 'not attached but trying to'. Do you get a '1' from either the at+cind? service availability indicator or the at+creg? registration indicator? If not lets see what mood your modem is in with

                  mood=lte.send_at_cmd('at+cpin?').split('\r\n')[1]; print('mood', mood)
                  

                  Is your lte antenna of known provenance & connected to the correct socket (the one closest to the RGB led)?

                  N 1 Reply Last reply Reply Quote 0
                  • N Offline
                    nakovi @kjm
                    last edited by

                    @kjm

                    Ha yeah the antenna came from Pycom and is connected to the LTE socket (next to LED)

                    I've let it run a while longer and seen: +CEREG 2,4 a few times (I understand it should say 2,5).

                    Putting your mood line in there gives me a return of: mood +CPIN: READY

                    Thanks for your help so far, I appreciate it.

                    K 1 Reply Last reply Reply Quote 0
                    • K Offline
                      kjm @nakovi
                      last edited by kjm

                      @nakovi And it definitely an lte antena not a wifi/loran antenna?

                      N 1 Reply Last reply Reply Quote 0
                      • N Offline
                        nakovi @kjm
                        last edited by nakovi

                        @kjm

                        Yep, LTE antenna. I finally got a connection to go through. Only thing I changed is to remove my lines specifying bands (4, 12, 13) so it may have been happier with another band.

                        To anybody that finds this post down the road, this is what I added to the LTE example documentation code to get it to work:

                        lte = LTE() 
                        lte.send_at_cmd('AT^RESET')
                        lte.send_at_cmd('AT+CFUN=0')
                        lte.send_at_cmd('AT+CEREG=2')
                        lte.send_at_cmd('AT!="clearscanconfig"')
                        lte.send_at_cmd('AT+CGDCONT=1,"IP","hologram"')
                        lte.send_at_cmd('AT+CFUN=1')
                        lte.attach()
                        
                        1 Reply Last reply Reply Quote 0

                        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