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

    CAT M1

    Scheduled Pinned Locked Moved FiPy
    cat m1lte fipy simsimfipy
    2 Posts 1 Posters 533 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.
    • B Offline
      Burgeh
      last edited by Burgeh

      Greetings,

      I am having issues attaching to the services. My SIM and IMEI are both registered. My code is below, any advice? I have both antennas attached and the SIM card inserted.

      It seemed to work once, it got to for sure the first green RGB blink, but hasn't since

      import socket
      import ssl
      import time
      from network import LTE
      import pycom
      ​
      pycom.heartbeat(False)
      
      pycom.rgbled(0x7f0000) # red
      time.sleep(2)
      pycom.rgbled(0x7f0000) # red
      lte = LTE()         # instantiate the LTE object
      lte.attach()        # attach the cellular modem to a base station
      while not lte.isattached():
          time.sleep(0.25)
          print("Not Attached")
      lte.connect()       # start a data session and obtain an IP address
      while not lte.isconnected():
          time.sleep(0.25)
          print("not Connect")
      s = socket.socket()
      s = ssl.wrap_socket(s)
      s.connect(socket.getaddrinfo('www.google.com', 443)[0][-1])
      pycom.rgbled(0xff00)           # turn on the RGB LED in green colour
      time.sleep(2)
      s.send(b"GET / HTTP/1.0\r\n\r\n")
      print(s.recv(4096))
      pycom.rgbled(0x0000FF)           # turn on the RGB LED in green colour
      time.sleep(2)
      s.close()
      
      lte.disconnect()
      lte.dettach()
      
      B 1 Reply Last reply Reply Quote 0
      • B Offline
        Burgeh @Burgeh
        last edited by Burgeh

        Update: Some more information...

        I am in the USA, and registered the SIM card on a verizon network that mentioned it was compatible with the FiPY IMEI. Below is a screenshot of some commands. Firmware is 33080, this is old...could this be the issue?, but it seems Pycom is releasing a new modem update fix soon?

        Do I need to set the APN manually, or is there something I am missing?

        I have a CATM1 modem with the same kind of SIM card and it gets signal just fine here.

        0_1534859175225_dd2f561e-2edc-4d5e-bedc-133837e0bb1b-image.png

        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