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

    Keep getting 'Not Attached' with LTE-M in Netherlands on KPN network.

    Scheduled Pinned Locked Moved FiPy
    fipylte-mkpn
    13 Posts 5 Posters 2.8k Views 7 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.
    • M Offline
      mronday
      last edited by

      Hi Guys,

      I'm trying to get the FiPy online by using the LTE-M network from KPN in Holland. But I keep getting 'not attached'.

      I also drove the different place but I can't attache anywhere. Also I've tried 2 different sims, 2 different FiPy's and 2 different atanna's.

      Can anyone help me? Suggest a new thing to try? Thanks already!

      Code I'm using at the moment:

      import socket
      import pycom
      import ssl
      import time
      from network import LTE
      
      # Colors
      off = 0x000000
      red = 0xff0000
      green = 0x00ff00
      blue = 0x0000ff
      yellow = 0xffff00
      
      # Turn off hearbeat LED
      pycom.heartbeat(False)
      
      lte = LTE()
      
      #set the apn
      lte.send_at_cmd('AT+CGDCONT=1,"IP","ltem.internet.m2m"')
      
      lte.attach()
      # wait for the attach flag to set and use the connect call
      # the modem will auto connect from the previous call regardless but still need to call this otherwise the unit does not know it's connected
      while not lte.isattached():
          pycom.rgbled(red)
          time.sleep(0.25)
          pycom.rgbled(off)
          print("not attached")
      
      lte.connect()
      while not lte.isconnected():
          pycom.rgbled(yellow)
          time.sleep(0.25)
          pycom.rgbled(off)
          print("not connected")
      
      pycom.rgbled(blue)
      s = socket.socket()
      s = ssl.wrap_socket(s)
      s.connect(socket.getaddrinfo('www.google.com', 443)[0][-1])
      s.send(b"GET / HTTP/1.0\r\n\r\n")
      print(s.recv(4096))
      s.close()
      pycom.rgbled(green)
      
      J P 2 Replies Last reply Reply Quote 0
      • J Offline
        jmarcelino @mronday
        last edited by

        @mronday
        KPN Cat-M1 is not supported yet. The Eindhoven team is looking into it, should come in a near future update.

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          mronday @jmarcelino
          last edited by

          @jmarcelino

          Ahh, that explains a lot :)

          Where can I keep updated about the support for KPN?

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jmarcelino @mronday
            last edited by jmarcelino

            @mronday

            Yes sorry about that.
            All Announcements (Firmware, Network updates, etc) come in the Announcements part of the forum:

            https://forum.pycom.io/category/1/announcements-news

            Thanks

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              mronday @jmarcelino
              last edited by

              @jmarcelino said in Keep getting 'Not Attached' with LTE-M in Netherlands on KPN network.:

              https://forum.pycom.io/category/1/announcements-news

              Thanks :)

              1 Reply Last reply Reply Quote 0
              • P Offline
                pmb_nl @mronday
                last edited by

                @mronday Any progress? I also have FIPYs that I want to connect to the KPN LTE-M network.
                Perhaps also good to ask help in the KPN LTE-M Forum . This is a forum in startup mode but questions will be read by the KPN IoT team and hopefully with good solutions.

                Best regards,

                Peter

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

                  From what we're told you'll need a special SIM card from KPN but we're still waiting for more details.

                  We were supposed to meet with KPN today but unfortunately this has been postponed. We're hoping to receive more information next week.

                  Christian Ehlers

                  P 1 Reply Last reply Reply Quote 0
                  • P Offline
                    pmb_nl @Xykon
                    last edited by

                    @xykon They have the process in place to supply SIM cards for the LTE-M network. I also used it to connect via a Sodaq board with uBlox but are also eager to testdrive with my two FIPY boards. I understood from this forum that there is work to be done from the firmware side. Any clarification would be welcome.

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

                      @pmb_nl I am not working directly on the LTE side of things, I was just relaying a message from the team. I will post more information once they are available.

                      Christian Ehlers

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        flo242
                        last edited by flo242

                        To get pycom to attach to KPN we needed to use the following AT-Commands before lte.attach()

                        lte.send_at_cmd('AT+CFUN=0') # disable modem
                        lte.send_at_cmd('AT!="clearscanconfig"') # clear scanned frequencies
                        lte.send_at_cmd('AT!="addscanfreq band=20 dl-earfcn=6400"') # set scanned frequency
                        lte.send_at_cmd('AT+CFUN=1') # enable modem
                        

                        Maybe this helps. It worked for us but we ran into other difficulties later (at some point the Modem doesn't seem to receive any more UDP packets from our server, but sending still works)..

                        M P 2 Replies Last reply Reply Quote 1
                        • M Offline
                          mronday @flo242
                          last edited by

                          @flo242

                          Thanks will try next week !

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            pmb_nl @flo242
                            last edited by

                            @flo242 FiPy works without problems on the KPN NL network?

                            F 1 Reply Last reply Reply Quote 0
                            • F Offline
                              flo242 @pmb_nl
                              last edited by

                              @pmb_nl Yes it works without any problems the last few weeks so far

                              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