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

    Verizon LTE-CATM1 FiPy + Pytrack

    Scheduled Pinned Locked Moved Support & Troubleshooting
    verizonfipylte m1
    4 Posts 2 Posters 724 Views 2 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.
    • W Offline
      wghirakawa
      last edited by

      Has anbody got this to work at all? I'm a little frustrated....ok ill be honest a lot. Was so excited to get this thinking that it would just work, but Its not tried, updating the firmware to the modem, tried updating FiPy firmware to no avail.

      I posted my code and my output on this post here https://forum.pycom.io/post/23793

      Please I need to get this working. Time is ticking and I need to finish my proof of concept.

      Thank you all for all your help!

      If everyone in the world could do their passion, the world would be an unbelievable place!

      1 Reply Last reply Reply Quote 0
      • W Offline
        wghirakawa
        last edited by

        So I finally got it to work. I used the following docs, and commands to gain some insight into my issues, that I was having and now I am properly connected using the following code.

        This document for making sure APN information is being received and proper PDP context is established.

        This document for making sure the proper internet context is activated starting on page 7.

        import socket
        import ssl
        import time
        from network import LTE
        import pycom
        pycom.heartbeat(False)
        debug = True
        
        def at(cmd):
            ("modem command: {}".format(cmd))
            response = lte.send_at_cmd(cmd).split('\r\n')
            for line in response:
                print(line)
        
        if (debug) : print('creating LTE object - carrier verizon')
        # lte = LTE()
        lte = LTE(carrier="verizon")
        pycom.rgbled(0x7f0000) #red to show LTE established
        # lte = LTE(carrier="at&t")         # instantiate the LTE object
        if (debug) : print('resetting modem, may take up to 5 secs...')
        if (debug) : print('attaching...')
        lte.attach()        # attach the cellular modem to a base station
        # lte.attach(band=13)        # attach the cellular modem to a base station
        
        while not lte.isattached():
            if (debug) : print('waiting for isattached...')
            time.sleep_ms(1000)
        pycom.rgbled(0x7f7f00) #yellow to show LTE attached
        if (debug) : print('connecting...')
        # lte.connect()       # start a data session and obtain an IP address
        lte.connect(cid=1)    # cid=3 for verizon - start a data session and obtain an IP address
        while not lte.isconnected():
            if (debug) : print('waiting for isconnected...')
            time.sleep_ms(500)
        pycom.rgbled(0x00007f) #blue to show LTE attached
        if (debug) : print('create socket')
        s = socket.socket()
        
        if (debug) : print("Connect to: www.ces-web.com")
        sockaddr = socket.getaddrinfo('www.google.com', 80)[0][-1]
        
        #print("Connect to: www.google.com")
        #s = ssl.wrap_socket(s)
        #sockaddr = socket.getaddrinfo('www.google.com', 443)[0][-1]
        
        if (debug) : print("socket address: {}".format(sockaddr))
        
        s.connect(socket.getaddrinfo('www.google.com', 80)[0][-1])
        pycom.rgbled(0x007f00) #green to show LTE attached
        if (debug) : print("send GET request")
        s.send(b"GET / HTTP/1.0\r\n\r\n")
        if (debug) : print("receive response")
        if (debug) : print(s.recv(16))
        s.close()
        if (debug) : print("socket closed")
        pycom.heartbeat(True)
        

        If everyone in the world could do their passion, the world would be an unbelievable place!

        1 Reply Last reply Reply Quote 0
        • W Offline
          wghirakawa
          last edited by

          Here's the AT Commands I use to verify if the settings are correct.

          >>> at('AT+CEREG?')
          
          +CEREG: 2,1,"0701","001B6201",7
          
          OK
          
          >>> at('AT+CGCONTRDP')
          
          +CGCONTRDP: 3,5,"vzwadmin.mnc480.mcc311.gprs","10.129.230.28.255.255.255.255","","198.224.165.129","198.224.167.135","",""
          +CGCONTRDP: 3,5,"vzwadmin.mnc480.mcc311.gprs","38.0.16.19.240.12.34.75.0.0.0.72.126.39.107.1.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255","","32.1.72.136.0.86.255.0.5.41.0.13.0.0.0.0","32.1.72.136.0.82.255.0.5.40.0.13.0.0.0.0","",""
          
          OK
          
          >>> at('AT+CGDCONT?')
          
          +CGDCONT: 2,"IPV4V6","VZWADMIN",,,,0,0,0,0,0,0
          +CGDCONT: 3,"IPV4V6","VZWINTERNET",,,,0,0,0,0,0,0
          +CGDCONT: 4,"IPV4V6","VZWAPP",,,,0,0,0,0,0,0
          +CGDCONT: 6,"IPV4V6","VZWCLASS6",,,,0,0,0,0,0,0
          +CGDCONT: 7,"IPV4V6","VZWIOTTS",,,,0,0,0,0,0,0
          
          OK
          
          >>> at('AT+CGPADDR')
          
          +CGPADDR: 2
          +CGPADDR: 3,"10.129.230.28","38.0.16.19.240.12.34.75.0.0.0.72.126.39.107.1"
          +CGPADDR: 4
          +CGPADDR: 6
          +CGPADDR: 7
          
          OK
          
          >>> at('AT+CGACT?')
          
          +CGACT: 2,0
          +CGACT: 3,1
          +CGACT: 4,0
          +CGACT: 6,0
          +CGACT: 7,0
          
          OK
          
          >>>```

          If everyone in the world could do their passion, the world would be an unbelievable place!

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            kevin @wghirakawa
            last edited by

            @wghirakawa Related to a different question (https://forum.pycom.io/topic/4118/gpy-or-fipy-using-lte-in-the-us), could I please ask you to check the result of 'AT+SQNHPLMN?'. I am trying to find out if Sequans supports 6-digit PLMNs in the US.

            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