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

  • 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
    lte = LTE()
    #set the apn
    # 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():
        print("not attached")
    while not lte.isconnected():
        print("not connected")
    s = socket.socket()
    s = ssl.wrap_socket(s)
    s.connect(socket.getaddrinfo('', 443)[0][-1])
    s.send(b"GET / HTTP/1.0\r\n\r\n")

  • @flo242

    Thanks will try next week !

  • 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)..

  • administrators

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

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

  • administrators

    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.

  • @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,


  • @mronday

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


  • @jmarcelino

    Ahh, that explains a lot :)

    Where can I keep updated about the support for KPN?

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


Pycom on Twitter