pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
198 stars 167 forks source link

GPy and Fipy Failure to register in Rohde & Schwarz R&S®CMW500 for LTE and NB-IOT #304

Open DavidIdentidad opened 5 years ago

DavidIdentidad commented 5 years ago

running os.uname(): (sysname='GPy', nodename='GPy', release='1.18.2.r7', version='v1.8.6-849-df9f237 on 2019-05-14', machine='GPy with ESP32')

Issue description:

It is not possible to register in CAT-M1, NB Iot laboratory equipment, reference Rohde & Schwarz R&S®CMW500. Bechmark reference module from Quectel, can establish a successful connection.

The testing code is the folling:

import socket import ssl import time import os from network import LTE

print ("inicializado") lte = LTE() # instantiate the LTE object print ("obteniendo IMEI") response = lte.send_at_cmd('AT+CGSN=1') print(response) print ("Seteando full funcionalidad") response = lte.send_at_cmd('AT+CFUN=1') print(response) print ("rssi =") response = lte.send_at_cmd('AT+CSQ') print(response) response = lte.send_at_cmd('AT+CSQ=?') print(response) print ("informacion operador=") response = lte.send_at_cmd('AT+SQNCTM=?') print(response)

print ("iniciando conexion CAT'M") lte = LTE() # instantiate the LTE object

print ("Atachando....") lte.attach(band=2, apn="internet.comcel.com.co") response = lte.send_at_cmd('AT+CEREG?') print(" estado de la conexion:") print(response)

while not lte.isattached(): time.sleep(0.5) print(".", end="")

print("\nAttached!") print(lte.send_at_cmd("AT+CSQ"))

print(" iniciando sesio de datos") lte.connect() # start a data session and obtain an IP address while not lte.isconnected(): time.sleep(0.25) print(".", end="")

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() lte.disconnect() lte.dettach()


unfortunately the response is always as follow:

obteniendo IMEI +CGSN: "354347093084595" OK Seteando full funcionalidad OK rssi = +CSQ: 99,99 OK +CSQ: (0-31,99),(0-7,99) OK

informacion operador= +SQNCTM: ("3gpp-conformance", "att", "docomo", "kt", "lgu", "softbank", "standard", "telstra", "verizon")

OK iniciando conexion LTE-M Atachando.... estado de la conexion:

+CEREG: 2,0 OK ...............................................................................................................................................................................................................

So that means that device tried at least 40 times, but it is not able to attach to LTE network, because the response command +CEREG: 2,0 , the 2 mean " not registered, but MT is currently trying to attach or searching an operator to register to"

Is there any additional command that we should implement to test in this laboratory equipment? we are testing band 2 for CAT m1, and band 5 for NB-iot.

Is there any reference script from Sequans that we can get and test in the operator laboratory, please see next pictures:

cuatro doas tres uno

DavidIdentidad commented 5 years ago

hi @iwahdan88 , is there any feedback about this issue?