Keep getting 'Not Attached' with LTE-M in Netherlands on KPN network.
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)[-1]) s.send(b"GET / HTTP/1.0\r\n\r\n") print(s.recv(4096)) s.close() pycom.rgbled(green)
@pmb_nl Yes it works without any problems the last few weeks so far
@flo242 FiPy works without problems on the KPN NL network?
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)..
Xykon administrators 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.
@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.
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.
@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.
@jmarcelino said in Keep getting 'Not Attached' with LTE-M in Netherlands on KPN network.:
jmarcelino last edited by jmarcelino
Yes sorry about that.
All Announcements (Firmware, Network updates, etc) come in the Announcements part of the forum:
Ahh, that explains a lot :)
Where can I keep updated about the support for KPN?
jmarcelino last edited by
KPN Cat-M1 is not supported yet. The Eindhoven team is looking into it, should come in a near future update.